mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
加入EEPROM-BL24C02
This commit is contained in:
25
bootloader/BSP/EEPROM/BL24C02.h
Normal file
25
bootloader/BSP/EEPROM/BL24C02.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef __BL24C02_H
|
||||
#define __BL24C02_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#define BL24C02_ADDRESS 0x50
|
||||
|
||||
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;
|
||||
|
||||
uint8_t EEPROM_Init_Check(void);
|
||||
void EEPROM_SysSetting_Save(void);
|
||||
void EEPROM_SysSetting_Get(void);
|
||||
void EEPROM_UpdateCommand_Write(bool is_update);
|
||||
bool EEPROM_UpdateCommand_Check(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user