![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
Diff: xDotBridge/inc/SerialTermMgr.h
- Revision:
- 78:43f074baac34
- Parent:
- 77:176e3eb8f712
- Child:
- 91:8196900df6fe
--- a/xDotBridge/inc/SerialTermMgr.h Wed May 17 16:41:56 2017 -0600 +++ b/xDotBridge/inc/SerialTermMgr.h Mon Nov 13 09:50:49 2017 -0700 @@ -17,8 +17,10 @@ const uint8_t TERM_TIMEOUT = 30; // In seconds const float XMODEM_TIMEOUT = 10.0; +const unsigned char MAX_TIMEOUTS = 6; // multiple by TIMEOUT above. 60 total seconds const uint16_t FLASH_BIN_OFFSET = 256; // Skip first flash page const uint16_t XMODEM_PACKET_SIZE = 128; +//const char NEW_CODE [] = "NEWCODE0"; enum ScreenId { mainScreenId, @@ -48,6 +50,7 @@ void inputEnterProgMode (char in); void printEnterProgMode(); bool xmodem2Flash(); + void writeBootloaderCtrlPage(uint32_t nBytes); public: SerialTermMgr(BaseboardIO *bbio, WinbondSPIFlash *flash, float fwVersion); void regSerial (BufferedSerial *pc) {