#ifndef FRAM_H__ #define FRAM_H__ // #include "main.h" // #include "i2c.h" #include #include "esp_log.h" #include "driver/i2c.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "freertos/semphr.h" #include "esp_err.h" int fram_write(uint16_t addr, void * buf,uint32_t len); int fram_read(uint16_t addr,void * buf,uint32_t len); //extern void fram_write_para(fram_para_t *para,uint32_t len); //extern void fram_read_para(fram_para_t *para,uint32_t len); void save_para(void); void save_encode(void); void read_para(void); void clear_para(void); #endif