projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/stmf0: Toggle IN2 SW_BUF bit when sending data
[fw/altos]
/
src
/
stmf0
/
ao_usb_stm.c
diff --git
a/src/stmf0/ao_usb_stm.c
b/src/stmf0/ao_usb_stm.c
index 483d2419ad938325e63d209b76a1188d4a248c04..3d227f20641d740eeeb9cf58a72176befa936495 100644
(file)
--- a/
src/stmf0/ao_usb_stm.c
+++ b/
src/stmf0/ao_usb_stm.c
@@
-1132,6
+1132,9
@@
_ao_usb_in2_send(void)
/* Toggle our usage */
ao_usb_in_tx2_which = 1 - ao_usb_in_tx2_which;
/* Toggle our usage */
ao_usb_in_tx2_which = 1 - ao_usb_in_tx2_which;
+ /* Toggle the SW_BUF flag */
+ _ao_usb_toggle_dtog(AO_USB_IN2_EPR, 1, 0);
+
/* Mark the outgoing buffer as valid */
_ao_usb_set_stat_tx(AO_USB_IN2_EPR, STM_USB_EPR_STAT_TX_VALID);
/* Mark the outgoing buffer as valid */
_ao_usb_set_stat_tx(AO_USB_IN2_EPR, STM_USB_EPR_STAT_TX_VALID);