Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
TY
TianYing_ty100
Commits
c9bfe9bc
Commit
c9bfe9bc
authored
May 06, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://tyw-server.synology.me:12345/ty/tianying_ty100
into lijianshuang
parents
0c2dc6b2
5079da12
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
44 deletions
+45
-44
userdefine.h
...BAT32A239/MDK_ARM/RTE/Device/BAT32A239KK64FB/userdefine.h
+1
-1
BackLight.c
Firmware/Source/Application/BackLight/BackLight.c
+25
-24
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+4
-4
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+8
-8
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+1
-1
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+6
-6
No files found.
Firmware/Project/Cmsemicon/BAT32A239/MDK_ARM/RTE/Device/BAT32A239KK64FB/userdefine.h
View file @
c9bfe9bc
...
...
@@ -18,7 +18,7 @@ User definitions
typedef
unsigned
short
MD_STATUS
;
#define HAS_BOOTLOADER (
1
u) // 仅仿真App时设置为0
#define HAS_BOOTLOADER (
0
u) // 仅仿真App时设置为0
#define APP_BASE (0x00008000ul)
/* Status list definition */
...
...
Firmware/Source/Application/BackLight/BackLight.c
View file @
c9bfe9bc
...
...
@@ -19,30 +19,31 @@ void BackLight_Process(void)
{
if
(
SYS_OPR_STAT_IGN_ON
)
{
if
(
ALS_Get_Data1
()
>
200
)
//data1 500以内,data0 3000以内
{
if
(
g_Light
.
Light_Day
<
15
)
//1.5s 1500ms
{
g_Light
.
Light_Day
++
;
//100ms
}
else
{
g_Light
.
Light_Night
=
0
;
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_DAY
);
}
}
else
{
if
(
g_Light
.
Light_Night
<
15
)
{
g_Light
.
Light_Night
++
;
}
else
{
g_Light
.
Light_Day
=
0
;
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_NIGHT
);
}
}
// if(ALS_Get_Data1() > 200)//data1 500以内,data0 3000以内
// {
// if (g_Light.Light_Day < 15)//1.5s 1500ms
// {
// g_Light.Light_Day++;//100ms
// }
// else
// {
// g_Light.Light_Night = 0;
// TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_DAY);
// }
// }
// else
// {
// if (g_Light.Light_Night < 15)
// {
// g_Light.Light_Night++;
// }
// else
// {
// g_Light.Light_Day = 0;
// TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_NIGHT);
// }
// }
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_DAY
);
}
else
{
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
c9bfe9bc
...
...
@@ -1646,7 +1646,7 @@ _Fun_Res SEG_SET_VSpeed_NUM(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG059
=
IC_SEG_ON
;
IC1_SEG058
=
IC_SEG_ON
;
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_29_MPH
,
100
);
//
LED_Driver_Channel_Set(LampChannel_0, LampCh0_29_MPH, 100);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_30_KM_H, 100);
}
else
...
...
@@ -1655,7 +1655,7 @@ _Fun_Res SEG_SET_VSpeed_NUM(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG059
=
IC_SEG_ON
;
IC1_SEG058
=
IC_SEG_ON
;
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_29_MPH
,
100
);
//
LED_Driver_Channel_Set(LampChannel_0, LampCh0_29_MPH, 100);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_30_KM_H, 100);
}
else
...
...
@@ -1664,14 +1664,14 @@ _Fun_Res SEG_SET_VSpeed_NUM(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG059
=
IC_SEG_OFF
;
IC1_SEG058
=
IC_SEG_ON
;
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_29_MPH
,
100
);
//
LED_Driver_Channel_Set(LampChannel_0, LampCh0_29_MPH, 100);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_30_KM_H, 0);
}
else
{
IC1_SEG059
=
IC_SEG_ON
;
IC1_SEG058
=
IC_SEG_OFF
;
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_29_MPH
,
0
);
//
LED_Driver_Channel_Set(LampChannel_0, LampCh0_29_MPH, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_30_KM_H, 100);
}
}
...
...
Firmware/Source/Component/Key/Key_user.c
View file @
c9bfe9bc
...
...
@@ -76,14 +76,14 @@ void Key_Operation_Right(Key_Event_en_t enKeyEvent)//Set
Key_Status_en_t
Key_Status_Read_Left
(
void
)
{
Key_Status_en_t
enKeyReal
=
KEY_REALTIME_LOOSEN
;
//if (RTE_GPIO_Get_Level(MODE_P
_IN))
//
{
//
enKeyReal = KEY_REALTIME_LOOSEN;
//
}
//
else
//
{
//
enKeyReal = KEY_REALTIME_PRESS;
//
}
if
(
RTE_GPIO_Get_Level
(
Key_MCU
_IN
))
{
enKeyReal
=
KEY_REALTIME_LOOSEN
;
}
else
{
enKeyReal
=
KEY_REALTIME_PRESS
;
}
return
enKeyReal
;
}
Key_Status_en_t
Key_Status_Read_Right
(
void
)
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
c9bfe9bc
...
...
@@ -78,7 +78,7 @@ static void Power_KL30_Init(void)
g_stRTCInformation
.
u8RTCDayOfMonth
=
1
;
g_stRTCInformation
.
u8RTCMonth
=
1
;
g_stRTCInformation
.
u8RTCYear
=
20
;
RTE_RTC_Init
(
g_stRTCInformation
);
//
RTE_RTC_Init(g_stRTCInformation);
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
WAKEUP_KL15_In
,
Trigger_Rising
);
}
...
...
Firmware/Source/System/Sys_Task_List.c
View file @
c9bfe9bc
...
...
@@ -69,12 +69,12 @@ void Sys_50ms_Tasks(void)
uint8_t
u8LEDDriverCheckCount
=
0U
;
void
Sys_100ms_Tasks
(
void
)
{
if
((
PageType
!=
Page_Time_Hour
)
&&
(
PageType
!=
Page_Time_Minute
))
{
RTE_RTC_Get_CounterValue
(
&
counter_val
);
counter_val
.
time
.
RTC_Hours
=
RTC_Bcd2ToByte
(
counter_val
.
time
.
RTC_Hours
);
counter_val
.
time
.
RTC_Minutes
=
RTC_Bcd2ToByte
(
counter_val
.
time
.
RTC_Minutes
);
}
//
if((PageType != Page_Time_Hour)&&(PageType != Page_Time_Minute))
//
{
//
RTE_RTC_Get_CounterValue(&counter_val);
//
counter_val.time.RTC_Hours = RTC_Bcd2ToByte(counter_val.time.RTC_Hours);
//
counter_val.time.RTC_Minutes = RTC_Bcd2ToByte(counter_val.time.RTC_Minutes);
//
}
Fuel_Cal_Sevice
(
100u
);
BackLight_Process
();
Services_Mileage_Callback
();
...
...
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