[Fx2lib-devel] possible bug in setupdat.c
Status: Beta
Brought to you by:
mulicheng
|
From: Tim m. <tcm...@ya...> - 2009-05-27 23:25:20
|
I have a FX1 chip, and was having issues with the descriptor... the currrent is
void handle_hispeed(BOOL highspeed) {
__critical {
printf ( "Hi Speed or reset Interrupt\n" );
if (highspeed) {
pDevConfig=(WORD)&highspd_dscr;
pOtherConfig=(WORD)&fullspd_dscr;
} else {
pDevConfig=(WORD)&fullspd_dscr;
pDevConfig=(WORD)&highspd_dscr;
}
}
}
should this be... changed the else statement to use the fullspd descriptor... the above would always be highspeed screwing up the length of the send.
void handle_hispeed(BOOL highspeed) {
__critical {
//printf ( "Hi Speed or reset Interrupt\n" );
if (highspeed) {
pDevConfig=(WORD)&highspd_dscr;
pOtherConfig=(WORD)&fullspd_dscr;
} else {
pOtherConfig= pDevConfig=(WORD)&fullspd_dscr;
// pDevConfig=(WORD)&highspd_dscr;
}
}
}
because if it is not
|