Commit 9891e21a authored by hu's avatar hu

调整BUG

parent b19aa33b
......@@ -1175,3 +1175,115 @@ void Seg_Display_OFF(void)
}
}
}
/*
static void BU98R10_All_ReadRam(uint8_t addr, uint8_t *data0, uint8_t *data1)
{
uint8_t i;
uint8_t Cmd = 0x09;
uint8_t wdata0 = 0;
uint8_t wdata1 = 0;
SegLCD_AllChip_Write(BU98R10_CMD, BU98R10_CMD_ADSET, BU98R10_CMD_ADSET, BU98R10_CMD_ADSET);
SegLCD_AllChip_Write(BU98R10_DATA, addr, addr, addr);
Cmd = 0x09;
// D/C = 0,表示发送命令
SegLCD_Set_SD(0);
SegLCD_Set_SCL(0);
SegLCD_Set_CSB(0);
Bu98R10_Delay(Bu98R10_Delay_TIME);
SegLCD_Set_SCL(1);
for (i = 0; i < 8; i++)
{
SegLCD_Set_SCL(0);
if (Cmd & 0x80)
{
SegLCD_Set_SD(1);
}
else
{
SegLCD_Set_SD(0);
}
Bu98R10_Delay(Bu98R10_Delay_TIME);
SegLCD_Set_SCL(1);
Cmd <<= 1;
}
SegLCD_Set_SD_Dir(0);
SegLCD_Set_SCL(0);
Bu98R10_Delay(Bu98R10_Delay_TIME);
SegLCD_Set_SCL(1);
Bu98R10_Delay(Bu98R10_Delay_TIME);
for (i = 0; i < 8; i++)
{
SegLCD_Set_SCL(0);
wdata0 <<= 1;
wdata1 <<= 1;
SegLCD_Set_SCL(1);
if (SegLCD_Get_SD0_Data)
{
wdata0 |= SegLCD_Get_SD0_Data;
}
if (SegLCD_Get_SD1_Data)
{
wdata1 |= SegLCD_Get_SD1_Data;
}
}
*data0 = wdata0;
*data1 = wdata1;
SegLCD_Set_SD_Dir(1);
SegLCD_Set_CSB(1);
}
uint8_t checkInterval = 0;
uint8_t checkCount = 0;
uint8_t checkData[2];
void checkSegTftState(void)
{
uint32_t PowerStatus = 0u;
PowerStatus = Common_Get_IG_Sts();
if (PowerStatus == COMMON_POWER_ON)
{
checkInterval++;
if (checkInterval >= 5)
{
BU98R10_All_ReadRam(30, &checkData[0], &checkData[1]);
checkInterval = 0;
if ((checkData[1] & 0x0f) != 0x07)
{
checkCount = 50;
}
}
if (checkCount)
{
checkCount--;
}
if (checkCount == 30)
{
BU98R10_Init();
}
}
else
{
checkInterval = 0;
checkCount = 0;
}
}
*/
\ No newline at end of file
......@@ -1065,7 +1065,7 @@ void Popups_Polling(void)
* Return : None
* onther : None
--------------------------------------------------------------------------*/
void Popups_Displaying(uint8_t PopupMsg)
void Popups_Displaying(uint16_t PopupMsg)
{
if (PopupMsg < POPUP_MSG_NUMBER_TOTAL)
{
......
......@@ -21,7 +21,7 @@ typedef struct
void Popups_Management_Service ( void );
void Popups_Polling ( void );
void Popups_Displaying ( uint8_t PopupID );
void Popups_Displaying ( uint16_t PopupID );
void Popups_Sound_Playing ( uint8_t PopupID );
void Popup_Alone_Sound_Server(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment