#include "hal_interface_api.h"
#include "com_IPMIDefs.h"
#include "userinfo.h"
#include "goahead.h"


int FlushUserInfoTbl(void)
{
	sf_sector_erase(5, USERTBL_FLASH_ADDR);
	sf_write(5, USERTBL_FLASH_ADDR, (uint8_t*)UserInfoTbl, sizeof(UserInfo_T)*MAX_USER_NUM);
	return 0;
}

int UpdateUserInfoTble(void)
{
	sf_read(5, USERTBL_FLASH_ADDR, (uint8_t*)UserInfoTbl, sizeof(UserInfo_T)*MAX_USER_NUM);
	return 0;
}