add basic OTA Update fucionality
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
495163060d
commit
8874fecf15
8 changed files with 333 additions and 72 deletions
|
|
@ -5,13 +5,22 @@
|
|||
#ifndef FIRMWARE_SYSTEM_H
|
||||
#define FIRMWARE_SYSTEM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void system_clear_config();
|
||||
|
||||
void system_init_config();
|
||||
|
||||
void system_otaflash_init();
|
||||
|
||||
int system_otaflash_chunk(uint8_t *data, uint16_t len, uint16_t seq, uint32_t hash);
|
||||
|
||||
int system_otaflash_verify_and_switch(uint32_t len, uint32_t hash);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue