fiatlux/firmware/system.h

30 lines
511 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-09-12 19:55:17 +00:00
#include "types.h"
2021-08-28 21:44:01 +00:00
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();
2021-09-12 19:55:17 +00:00
enum return_code system_otaflash_chunk(uint8_t *data, uint16_t len, uint16_t seq, uint32_t hash, uint16_t *ack);
2021-08-28 21:44:01 +00:00
2021-09-12 19:55:17 +00:00
enum return_code system_otaflash_verify_and_switch(uint32_t len, uint32_t hash);
2021-08-28 21:44:01 +00:00
2021-07-02 16:45:29 +00:00
#ifdef __cplusplus
}
#endif
#endif //FIRMWARE_SYSTEM_H