Modularize main.c into rgb, event, database, ui, system, and app_manager modules
This commit is contained in:
18
App/database.h
Normal file
18
App/database.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __DATABASE_H__
|
||||
#define __DATABASE_H__
|
||||
|
||||
#include "config.h"
|
||||
|
||||
// 底层 IAP 接口
|
||||
void IAP_Disable(void);
|
||||
u8 IAP_ReadByte(u16 addr);
|
||||
void IAP_WriteByte(u16 addr, u8 dat);
|
||||
void IAP_EraseSector(u16 addr);
|
||||
|
||||
// 数据库持久化接口
|
||||
void Load_Database(void);
|
||||
void Save_Database(void);
|
||||
void Add_Sensor_With_Zone(u32 addr, u8 type, u8 zone);
|
||||
bit Check_Sensor_ID(u32 addr, u8 *out_slot_index);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user