| 123456789101112131415161718192021 |
- #ifndef INC_FLASH_H_
- #define INC_FLASH_H_
- /* Includes ------------------------------------------------------------------*/
- #include <stdint.h>
- #include <stdbool.h>
- #include "stm32f4xx_board.h"
- int flash_erase_page(uint32_t address);
- int flash_erase_pages(uint32_t address, uint32_t size);
- int flash_erase_app(uint8_t app_num);
- void app_status_set(uint8_t app_num,bool status);
- int flash_write_page(uint32_t target_addr, uint8_t *data, uint32_t length, bool erase);
- int flash_test(void);
- void app1_copy_to_app2(void);
- void app2_copy_to_app1(void);
- void jump_to_app(uint32_t app_addr);
- #endif /* INC_FLASH_H_ */
|