pile_com_stm32/main_old/stm32/fram.h
2024-03-30 18:47:02 +08:00

32 lines
618 B
C

#ifndef FRAM_H__
#define FRAM_H__
// #include "main.h"
// #include "i2c.h"
#include <stdio.h>
#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