diff options
author | AJM <poslathian@poslathian.(none)> | 2010-06-09 22:25:14 -0400 |
---|---|---|
committer | AJM <poslathian@poslathian.(none)> | 2010-06-09 22:25:14 -0400 |
commit | be5593982965b22518c0605ef951574b4b97c871 (patch) | |
tree | 7d2b7dc51726b73474d00e0fa189ecd81fc380b5 /libmaple/usb/usb_callbacks.h | |
parent | 8afc89be1da70c2776333b3858532c6b753e11ce (diff) | |
download | librambutan-be5593982965b22518c0605ef951574b4b97c871.tar.gz librambutan-be5593982965b22518c0605ef951574b4b97c871.zip |
added a somewhat broken version of the reset magic number scheme.
current version gets stuck in the isr somewhere. not sure why or where. must debug.
Diffstat (limited to 'libmaple/usb/usb_callbacks.h')
-rw-r--r-- | libmaple/usb/usb_callbacks.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libmaple/usb/usb_callbacks.h b/libmaple/usb/usb_callbacks.h index d77a9fd..a94de11 100644 --- a/libmaple/usb/usb_callbacks.h +++ b/libmaple/usb/usb_callbacks.h @@ -26,15 +26,14 @@ typedef struct { } USB_Line_Coding; typedef enum { - START, - NDTR_NRTS, - DTR_NRTS, - RESET_NEXT, - RESET_NOW + DTR_UNSET, + DTR_HIGH, + DTR_NEGEDGE, + DTR_LOW } RESET_STATE; extern RESET_STATE reset_state; /* tracks DTR/RTS */ -extern uint8 program_delay; +extern uint8 line_dtr_rts; extern volatile uint8 countTx; extern uint8 vcomBufferRx[VCOM_RX_EPSIZE]; /* no reason this has to be VCOM_RX_EPSIZE, could be bigger */ extern volatile uint8 recvBufIn; /* the FIFO in index to the recvbuffer */ |