g0b1vetx-board/middleware/easyflash/inc/ef_api.h
2023-11-30 08:10:01 +08:00

25 lines
437 B
C

#include "stm32g0xx_hal.h"
#include <easyflash.h>
#include <stdlib.h>
#include <string.h>
// 获取uint32_t 的数值
uint32_t ef_get_integer(const char * key);
// 获取double 的数值
double ef_get_double(const char* key);
// 获取字符串的数值
char* ef_get_string(const char* key);
// 存储无符号整
void ef_save_uint(const char* key, unsigned int value);
// 存储string类型
void ef_save_string(const char* key, char* value, int size);