Files
Power-Pico/software/bootloader/BSP/EEPROM/BL24C02.h

26 lines
590 B
C
Raw Normal View History

2025-10-14 16:25:11 +08:00
#ifndef __BL24C02_H
#define __BL24C02_H
#include <stdint.h>
2025-10-20 20:16:11 +08:00
#include <stdbool.h>
#include <string.h>
2025-10-14 16:25:11 +08:00
#define BL24C02_ADDRESS 0x50
2025-10-18 19:23:22 +08:00
typedef struct {
uint8_t backlight_level; // 0-100
uint8_t key_sound_enable; // 0:disable, 1:enable
uint8_t language_select; // 0:English, 1:Chinese
uint16_t rotation; // 0, 90, 180, 270
} SysSettings_T;
extern SysSettings_T sys_settings;
2025-10-19 12:13:34 +08:00
uint8_t EEPROM_Init_Check(void);
2025-10-20 20:16:11 +08:00
void EEPROM_SysSetting_Save(void);
void EEPROM_SysSetting_Get(void);
void EEPROM_UpdateCommand_Write(bool is_update);
bool EEPROM_UpdateCommand_Check(void);
2025-10-14 16:25:11 +08:00
#endif