Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISUZU
VC66_7C
Commits
9891e21a
Commit
9891e21a
authored
3 years ago
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整BUG
parent
b19aa33b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
2 deletions
+114
-2
SEG_DISPLAY.c
source/Application/APP/SEG_LCD/SEG_DISPLAY.c
+112
-0
Popups.c
source/Application/Alarm/Popups.c
+1
-1
Popups.h
source/Application/Alarm/Popups.h
+1
-1
No files found.
source/Application/APP/SEG_LCD/SEG_DISPLAY.c
View file @
9891e21a
...
...
@@ -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
This diff is collapsed.
Click to expand it.
source/Application/Alarm/Popups.c
View file @
9891e21a
...
...
@@ -1065,7 +1065,7 @@ void Popups_Polling(void)
* Return : None
* onther : None
--------------------------------------------------------------------------*/
void
Popups_Displaying
(
uint
8
_t
PopupMsg
)
void
Popups_Displaying
(
uint
16
_t
PopupMsg
)
{
if
(
PopupMsg
<
POPUP_MSG_NUMBER_TOTAL
)
{
...
...
This diff is collapsed.
Click to expand it.
source/Application/Alarm/Popups.h
View file @
9891e21a
...
...
@@ -21,7 +21,7 @@ typedef struct
void
Popups_Management_Service
(
void
);
void
Popups_Polling
(
void
);
void
Popups_Displaying
(
uint
8
_t
PopupID
);
void
Popups_Displaying
(
uint
16
_t
PopupID
);
void
Popups_Sound_Playing
(
uint8_t
PopupID
);
void
Popup_Alone_Sound_Server
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment