mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
OTA API refactoring: renamed files and defines
This commit is contained in:
1 parent
822b0c011a
commit
fa54a22aed
13 files changed
+536
-536
No files matched your search
+7
-7
@@ -1701,13 +1701,13 @@ bool mg_ota_rollback(void); // Rollback to the previous firmware
|
||||
|
||||
|
||||
|
||||
#define MG_SYS_NONE 0 // Dummy system
|
||||
#define MG_SYS_STM32H5 1 // STM32 H5
|
||||
#define MG_SYS_STM32H7 2 // STM32 H7
|
||||
#define MG_SYS_CUSTOM 100 // Custom implementation
|
||||
#define MG_DEVICE_NONE 0 // Dummy system
|
||||
#define MG_DEVICE_STM32H5 1 // STM32 H5
|
||||
#define MG_DEVICE_STM32H7 2 // STM32 H7
|
||||
#define MG_DEVICE_CUSTOM 100 // Custom implementation
|
||||
|
||||
#ifndef MG_SYS
|
||||
#define MG_SYS MG_SYS_NONE
|
||||
#ifndef MG_DEVICE
|
||||
#define MG_DEVICE MG_DEVICE_NONE
|
||||
#endif
|
||||
|
||||
// Flash information
|
||||
@@ -1727,7 +1727,7 @@ bool mg_flash_swap_bank(void);
|
||||
bool mg_flash_load(void *sector, uint32_t key, void *buf, size_t len);
|
||||
bool mg_flash_save(void *sector, uint32_t key, const void *buf, size_t len);
|
||||
|
||||
void mg_sys_reset(void); // Reboot device immediately
|
||||
void mg_device_reset(void); // Reboot device immediately
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user