Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
0fccac19
Commit
0fccac19
authored
Jul 15, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改为15电唤醒
parent
41ce1d60
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
74 deletions
+74
-74
CommonInterface.c
...ware/Source/Application/CommonInterface/CommonInterface.c
+1
-1
GpioUser.c
Firmware/Source/Application/GPIO_USER/GpioUser.c
+69
-69
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+3
-3
System_Monitor_User.c
...are/Source/Component/System_Monitor/System_Monitor_User.c
+1
-1
No files found.
Firmware/Source/Application/CommonInterface/CommonInterface.c
View file @
0fccac19
...
...
@@ -70,7 +70,7 @@ void Common_Input_Para(void)
Common_Set_IG_Sts
(
COMMON_POWER_ON
);
Common_Set_IG_Sts_Valid
(
COMMON_Valid
);
PowerIgnOffTimeLine
=
0ul
;
PowerIgnOnTimeLine
=
1501
ul
;
PowerIgnOnTimeLine
=
0
ul
;
}
else
{
...
...
Firmware/Source/Application/GPIO_USER/GpioUser.c
View file @
0fccac19
...
...
@@ -84,74 +84,74 @@ void Gpio_Init(_GpioUser_Enum InitMode)
}
else
{
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN00
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN01
,
RTE_GPIO_DIR_IN
);
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN02
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN03
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN04
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN05
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN06
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN00
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN01
,
RTE_GPIO_DIR_IN
);
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN02
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN03
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN04
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN05
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN06
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN07
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN00
,
GpioOut_High
);
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN01
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN02
,
RTE_GPIO_DIR_IN
);
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN03
,
RTE_GPIO_DIR_IN
);
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN04
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN05
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN06
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN07
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT03_PIN00
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT03_PIN01
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN00
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN01
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN02
,
RTE_GPIO_DIR_IN
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN03
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN00
,
RTE_GPIO_DIR_IN
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN01
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN02
,
GpioOut_
Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN03
,
GpioOut_Low
);
///
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN04
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN05
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN00
,
GpioOut_High
);
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN01
,
GpioOut_High
);
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN02
,
GpioOut_High
);
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN03
,
GpioOut_High
);
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN00
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN01
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN02
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN03
,
RTE_GPIO_DIR_IN
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN04
,
RTE_GPIO_DIR_IN
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN05
,
RTE_GPIO_DIR_IN
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN06
,
RTE_GPIO_DIR_IN
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN07
,
RTE_GPIO_DIR_IN
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN00
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN01
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN02
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN03
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN04
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT13_PIN00
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT13_PIN06
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT13_PIN07
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN00
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN01
,
GpioOut_Low
);
//
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN06
,
RTE_GPIO_DIR_IN
);
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN07
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN00
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN01
,
RTE_GPIO_DIR_IN
);
//KL15
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN02
,
RTE_GPIO_DIR_IN
);
//段码SPI10-SD-1
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN03
,
RTE_GPIO_DIR_IN
);
//段码SPI10-CSB-1
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN04
,
RTE_GPIO_DIR_IN
);
//段码SPI10-SCL-1
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN05
,
RTE_GPIO_DIR_IN
);
//按键E信号_N_IN_MCU
RTE_GPIO_Config
(
RTE_GPIO_PORT00_PIN06
,
RTE_GPIO_DIR_IN
);
//按键D信号_N_IN_MCU
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN00
,
RTE_GPIO_DIR_IN
);
//表盘背光-PWM
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN01
,
RTE_GPIO_DIR_IN
);
//RXD-ESP-IN-MCU
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN02
,
GpioOut_Low
);
//TXD-ESP-IN-MCU
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN03
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN04
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN05
,
GpioOut_Low
);
//总计工作时长统计千位_MCU_OUT
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN06
,
GpioOut_Low
);
//总计工作时长统计百十位_MCU_OUT
RTE_GPIO_Config
(
RTE_GPIO_PORT01_PIN07
,
GpioOut_Low
);
//交互指示灯_PWM_MCU_OUT
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN00
,
RTE_GPIO_DIR_IN
);
//AVDD
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN01
,
RTE_GPIO_DIR_IN
);
//GND
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN02
,
RTE_GPIO_DIR_IN
);
//KL30-AD
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN03
,
RTE_GPIO_DIR_IN
);
//KL15-AD
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN04
,
GpioOut_Low
);
//电量十位_MCU_OUT
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN05
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN06
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT02_PIN07
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT03_PIN00
,
GpioOut_Low
);
//电量百位_MCU_OUT
RTE_GPIO_Config
(
RTE_GPIO_PORT03_PIN01
,
GpioOut_Low
);
//SDB_LED_DRIVER
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN00
,
GpioOut_Low
);
//SEDIO-编程
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN01
,
GpioOut_Low
);
//OUT_EN_1
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN02
,
RTE_GPIO_DIR_IN
);
//OUT_ST
RTE_GPIO_Config
(
RTE_GPIO_PORT04_PIN03
,
GpioOut_Low
);
//OUT_EN
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN00
,
RTE_GPIO_DIR_IN
);
//CAN_MCU_RXD
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN01
,
GpioOut_Low
);
//CAN_MCU_TXD
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN02
,
GpioOut_
High
);
//CAN_STB_MCU
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN03
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN04
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT05_PIN05
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN00
,
GpioOut_High
);
//存储SCL
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN01
,
GpioOut_High
);
//存储SDA
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN02
,
GpioOut_High
);
//SCL_MCU
RTE_GPIO_Config
(
RTE_GPIO_PORT06_PIN03
,
GpioOut_High
);
//SDA_MCU
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN00
,
RTE_GPIO_DIR_IN
);
//段码SPI20-SCL-2
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN01
,
RTE_GPIO_DIR_IN
);
//段码SPI20-CSB-2
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN02
,
RTE_GPIO_DIR_IN
);
//段码SPI20-SD-2
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN03
,
RTE_GPIO_DIR_IN
);
//按键C信号-P-MCU-IN
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN04
,
RTE_GPIO_DIR_IN
);
//按键B信号-P-MCU-IN
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN05
,
RTE_GPIO_DIR_IN
);
//按键A信号-P-MCU-IN
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN06
,
RTE_GPIO_DIR_IN
);
//草满指示信号-P-MCU-IN
RTE_GPIO_Config
(
RTE_GPIO_PORT07_PIN07
,
RTE_GPIO_DIR_IN
);
//大灯开启信号-P-MCU-IN
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN00
,
GpioOut_Low
);
//L_BiasBitSW_POW---
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN01
,
GpioOut_Low
);
//X1
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN02
,
GpioOut_Low
);
//X2
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN03
,
GpioOut_Low
);
//XT1
RTE_GPIO_Config
(
RTE_GPIO_PORT12_PIN04
,
GpioOut_Low
);
//XT2
RTE_GPIO_Config
(
RTE_GPIO_PORT13_PIN00
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT13_PIN06
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT13_PIN07
,
GpioOut_Low
);
//SWCLK-编程
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN00
,
GpioOut_Low
);
//L_BD433Ctrl_OUT
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN01
,
GpioOut_Low
);
//空
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN06
,
RTE_GPIO_DIR_IN
);
//A_Version---
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN07
,
GpioOut_Low
);
//空
}
}
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
0fccac19
...
...
@@ -69,7 +69,7 @@ static void Power_KL30_Init(void)
g_stRTCInformation
.
u8RTCMonth
=
1
;
g_stRTCInformation
.
u8RTCYear
=
20
;
RTE_RTC_Init
(
g_stRTCInformation
);
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
CAN_MCU_RXD
,
Trigger_Rising
);
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
KL15_AD_IN
,
Trigger_Rising
);
}
extern
uint32_t
PowerIgnOffTimeLine
;
...
...
@@ -91,7 +91,7 @@ static void Power_Wakeup_Init(void)
TimerM_PWM_CH_Output_init
(
TIMERM_COUNTER0
,
TIMERM_CHD
,
ActiveLevel_High
);
TimerM_PWM_CH_Output_init
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
ActiveLevel_High
);
Telltales_Init
();
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
CAN_MCU_RXD
,
Trigger_Rising
);
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
KL15_AD_IN
,
Trigger_Rising
);
}
static
void
Power_LVP_Init
(
void
)
...
...
@@ -254,7 +254,7 @@ static Power_Status_em Power_Stay_Sleep(void)
while
(
1
)
{
RTE_WDT_Clear
();
if
(
RTE_GPIO_Get_Level
(
CAN_MCU_RXD
))
/* KL15 */
if
(
RTE_GPIO_Get_Level
(
KL15_AD_IN
))
/* KL15 */
{
u8PowerSts
=
EM_IGN_Wakeup
;
break
;
...
...
Firmware/Source/Component/System_Monitor/System_Monitor_User.c
View file @
0fccac19
...
...
@@ -105,7 +105,7 @@ monitorlib_uint8_t Sys_Read_KL15_Valid(void)
monitorlib_uint8_t
System_LINE_KL15
(
void
)
{
static
monitorlib_uint8_t
u8KL15
=
0
;
if
((
Get_CAN_Num_MMCU_PowerMode
()
!=
0x0
)
||
(
System_Indicator_CANFlag
==
1
))
if
((
Get_CAN_Num_MMCU_PowerMode
()
!=
0x0
)
||
(
System_Indicator_CANFlag
==
1
)
)
{
u8KL15
=
1u
;
}
...
...
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