-Fix that can cause USB stick to freeze up
-Add EEM Support
This commit is contained in:
parent
5e62a0dd20
commit
95d0b09954
9 changed files with 418 additions and 22 deletions
|
@ -270,7 +270,23 @@ void usb_user_endpoint_init(U8 conf_nb)
|
|||
DIRECTION_OUT, \
|
||||
SIZE_64, \
|
||||
ONE_BANK, \
|
||||
NYET_ENABLED);
|
||||
NYET_ENABLED);
|
||||
}
|
||||
|
||||
if (usb_mode == eem ) {
|
||||
usb_configure_endpoint(TX_EP, \
|
||||
TYPE_BULK, \
|
||||
DIRECTION_IN, \
|
||||
SIZE_64, \
|
||||
TWO_BANKS, \
|
||||
NYET_ENABLED);
|
||||
|
||||
usb_configure_endpoint(RX_EP, \
|
||||
TYPE_BULK, \
|
||||
DIRECTION_OUT, \
|
||||
SIZE_64, \
|
||||
TWO_BANKS, \
|
||||
NYET_ENABLED);
|
||||
}
|
||||
|
||||
|
||||
|
@ -292,6 +308,11 @@ void usb_user_endpoint_init(U8 conf_nb)
|
|||
Usb_reset_endpoint(VCP_RX_EP);
|
||||
}
|
||||
|
||||
if (usb_mode == eem){
|
||||
Usb_reset_endpoint(TX_EP);
|
||||
Usb_reset_endpoint(RX_EP);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue