Updated rboot to #75ca33b including the flash write bug.
This commit is contained in:
parent
02c35d8a71
commit
9c49134d61
9 changed files with 505 additions and 130 deletions
34
extras/rboot-ota/rboot-integration.h
Normal file
34
extras/rboot-ota/rboot-integration.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
// The rboot project provides this file for making rboot fit other projects
|
||||
|
||||
#ifndef __RBOOT_INTEGRATION_H__
|
||||
#define __RBOOT_INTEGRATION_H__
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <espressif/spi_flash.h>
|
||||
#include <espressif/esp_system.h>
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
|
||||
#define uint8 uint8_t
|
||||
#define uint16 uint16_t
|
||||
#define uint32 uint32_t
|
||||
#define int32 int32_t
|
||||
#define ICACHE_FLASH_ATTR
|
||||
#define spi_flash_read sdk_spi_flash_read
|
||||
#define spi_flash_erase_sector sdk_spi_flash_erase_sector
|
||||
#define spi_flash_write sdk_spi_flash_write
|
||||
#define os_malloc malloc
|
||||
#define os_free free
|
||||
#define system_rtc_mem_read sdk_system_rtc_mem_read
|
||||
#define system_rtc_mem_write sdk_system_rtc_mem_write
|
||||
|
||||
#if 0
|
||||
#define RBOOT_DEBUG(f_, ...) printf((f_), __VA_ARGS__)
|
||||
#else
|
||||
#define RBOOT_DEBUG(f_, ...)
|
||||
#endif
|
||||
|
||||
// Check that a valid-looking rboot image is found at this offset on the flash, and
|
||||
// takes up 'expected_length' bytes.
|
||||
bool rboot_verify_image(uint32_t offset, uint32_t expected_length, const char **error_message);
|
||||
#endif // __RBOOT_INTEGRATION_H__
|
Loading…
Add table
Add a link
Reference in a new issue