diff options
author | AJM <poslathian@poslathian.(none)> | 2010-06-09 15:52:29 -0400 |
---|---|---|
committer | AJM <poslathian@poslathian.(none)> | 2010-06-09 15:52:29 -0400 |
commit | 8afc89be1da70c2776333b3858532c6b753e11ce (patch) | |
tree | 35999d67dfd3f31f0d531f849336148f8d6c9daf /libmaple/usb/usb_callbacks.h | |
parent | a89cddd05ea3fb09513a8fb96b9cd963efbffab3 (diff) | |
download | librambutan-8afc89be1da70c2776333b3858532c6b753e11ce.tar.gz librambutan-8afc89be1da70c2776333b3858532c6b753e11ce.zip |
first approach at modding the reset scheme
now we reset from recv bytes. After receiving the DTR/RTS toggle the next byte in from usb is parsed as the program_delay. For now, this just delays the reset for a period to close the serial port gracefully. Later, this delay will perhaps inform the bootloader of how long to live for...
Diffstat (limited to 'libmaple/usb/usb_callbacks.h')
-rw-r--r-- | libmaple/usb/usb_callbacks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/usb/usb_callbacks.h b/libmaple/usb/usb_callbacks.h index ed57fa1..d77a9fd 100644 --- a/libmaple/usb/usb_callbacks.h +++ b/libmaple/usb/usb_callbacks.h @@ -34,6 +34,7 @@ typedef enum { } RESET_STATE; extern RESET_STATE reset_state; /* tracks DTR/RTS */ +extern uint8 program_delay; 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 */ |