Add SD Firmware Update capability (#12043)

Co-Authored-By: timoxd7 <timoxd7@users.noreply.github.com>
This commit is contained in:
Scott Lahteine
2018-10-09 20:00:47 -05:00
committed by GitHub
parent 0bd54392b7
commit cf5284cdf2
64 changed files with 974 additions and 2 deletions

View File

@ -701,6 +701,22 @@
#define USB_INTR_PIN SD_DETECT_PIN
#endif
/**
* When using a bootloader that supports SD-Firmware-Flashing,
* add a menu item to activate SD-FW-Update on the next reboot.
*
* Requires ATMEGA2560 (Arduino Mega)
*
* Tested with this bootloader:
* https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
*/
//#define SD_FIRMWARE_UPDATE
#if ENABLED(SD_FIRMWARE_UPDATE)
#define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF
#define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0
#define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF
#endif
#endif // SDSUPPORT
/**