fiatlux/firmware/system.h
jedi 8874fecf15
All checks were successful
continuous-integration/drone/push Build is passing
add basic OTA Update fucionality
2021-08-28 23:44:01 +02:00

28 lines
451 B
C

//
// Created by jedi on 25.06.21.
//
#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
#endif //FIRMWARE_SYSTEM_H