Re: [Fx2lib-devel] possible bug in setupdat.c
Status: Beta
Brought to you by:
mulicheng
|
From: Dennis M. <de...@ub...> - 2009-05-27 23:40:14
|
It is a bug. It should be:
__critical {
printf ( "Hi Speed or reset Interrupt\n" );
if (highspeed) {
pDevConfig=(WORD)&highspd_dscr;
pOtherConfig=(WORD)&fullspd_dscr;
} else {
pDevConfig=(WORD)&fullspd_dscr;
pOtherConfig=(WORD)&highspd_dscr;
}
}
When the device is in full speed mode, the pOtherConfig should point to
the the highspd_dscr, which is the default POR mode.
Currently, my device doesn't support full speed mode (It's on my list)
so I hadn't caught that issue yet.
-Dennis
Tim michals wrote:
> 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
>
>
>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Fx2lib-devel mailing list
> Fx2...@li...
> https://lists.sourceforge.net/lists/listinfo/fx2lib-devel
>
|