fiatlux/firmware/system.h

29 lines
451 B
C
Raw Permalink Normal View History

2021-07-02 16:45:29 +00:00
//
// Created by jedi on 25.06.21.
//
#ifndef FIRMWARE_SYSTEM_H
#define FIRMWARE_SYSTEM_H
2021-08-28 21:44:01 +00:00
#include <stdint.h>
2021-07-02 16:45:29 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2021-07-06 20:55:38 +00:00
void system_clear_config();
2021-08-28 21:44:01 +00:00
2021-07-09 19:35:41 +00:00
void system_init_config();
2021-07-06 20:55:38 +00:00
2021-08-28 21:44:01 +00:00
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);
2021-07-02 16:45:29 +00:00
#ifdef __cplusplus
}
#endif
#endif //FIRMWARE_SYSTEM_H