![](/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:
- 76:d1b20a259d8f
- Parent:
- 75:600cb3a9f126
- Child:
- 77:176e3eb8f712
--- a/xDotBridge/inc/SerialTermMgr.h Wed May 10 13:54:25 2017 -0600 +++ b/xDotBridge/inc/SerialTermMgr.h Tue May 16 15:15:58 2017 -0600 @@ -11,8 +11,12 @@ #include "mbed.h" #include "BaseboardIO.h" +const uint32_t TERM_BAUD = 115200; const uint8_t TERM_TIMEOUT = 30; // In seconds +const float XMODEM_TIMEOUT = 10.0; +const uint8_t FLASH_BIN_OFFSET = 0x20; // Skip first 32 bytes + enum ScreenId { mainScreenId, genInfoScreenId, @@ -37,6 +41,9 @@ void printMainScreen(); void inputGenInfo (char in); void printGenInfo(); + void inputEnterProgMode (char in); + void printEnterProgMode(); + bool xmodem2Flash(); public: SerialTermMgr(BaseboardIO *bbio, float fwVersion); void regSerial (Serial *pc) {