#ifndef __BKP_SRAM_H___ #define __BKP_SRAM_H___ #ifdef __cplusplus extern "C" { #endif #define MAGIC_DEV (0x4) #define MAGIC_POS (0x8) #define MAGIC_BOOT (0x424f4f54) #define MAGIC_APP (0x00415050) void bkp_sram_init(void); void bkp_sram_write(int off, unsigned int value); unsigned int bkp_sram_read(int off); #ifdef __cplusplus } #endif #endif