32 lines
489 B
C
32 lines
489 B
C
/*
|
|
* storage.c
|
|
*
|
|
* Created on: Aug 27, 2024
|
|
* Author: Thinkpad
|
|
*/
|
|
|
|
#include "storage.h"
|
|
#include "CH59x_common.h"
|
|
|
|
|
|
Loop_Balance_PlanB g_loop_balance_planB;
|
|
Loop_Cng_Unit g_loop_cng_unit;
|
|
Loop_Sens_List g_loop_sens_list;
|
|
|
|
|
|
void write_cfg_to_store(uint32_t wAddr, uint8_t * p, uint32_t len)
|
|
{
|
|
EEPROM_WRITE(wAddr, p, len);
|
|
}
|
|
|
|
|
|
void read_cfg_from_store(uint32_t addr, uint8_t *p, uint32_t len)
|
|
{
|
|
EEPROM_READ(addr, p, len);
|
|
}
|
|
|
|
|
|
|
|
|
|
|