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
a57f96a2
Commit
a57f96a2
authored
Mar 06, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改蜂鸣器使能管脚
parent
0aecf20c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
Buzzer.c
Firmware/Source/Application/Buzzer/Buzzer.c
+4
-4
GpioUser.h
Firmware/Source/Application/GPIO_USER/GpioUser.h
+1
-1
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+8
-0
No files found.
Firmware/Source/Application/Buzzer/Buzzer.c
View file @
a57f96a2
...
...
@@ -78,26 +78,26 @@ void Buzzer_Service(void)
#else
if
(
Get_TelltalesLedSts
(
em_LED_Grass_Full_R
)
==
1U
)
{
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT04_PIN01
,
RTE_GPIO_LEVEL_HIGH
);
RTE_GPIO_Set_Level
(
BUZZER_PWM_MCU_OUT
,
RTE_GPIO_LEVEL_HIGH
);
BUZZER_ON
=
1U
;
}
else
if
(
Get_TelltalesLedSts
(
em_LED_READY_G
)
==
1U
)
{
if
(
BuzzerReadyCount
<
20U
)
{
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT04_PIN01
,
RTE_GPIO_LEVEL_HIGH
);
RTE_GPIO_Set_Level
(
BUZZER_PWM_MCU_OUT
,
RTE_GPIO_LEVEL_HIGH
);
BUZZER_ON
=
1U
;
BuzzerReadyCount
++
;
}
else
{
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT04_PIN01
,
RTE_GPIO_LEVEL_LOW
);
RTE_GPIO_Set_Level
(
BUZZER_PWM_MCU_OUT
,
RTE_GPIO_LEVEL_LOW
);
BUZZER_ON
=
0U
;
}
}
else
{
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT04_PIN01
,
RTE_GPIO_LEVEL_LOW
);
RTE_GPIO_Set_Level
(
BUZZER_PWM_MCU_OUT
,
RTE_GPIO_LEVEL_LOW
);
BUZZER_ON
=
0U
;
BuzzerReadyCount
=
0U
;
}
...
...
Firmware/Source/Application/GPIO_USER/GpioUser.h
View file @
a57f96a2
...
...
@@ -16,7 +16,7 @@
#define RXD_ESP RTE_GPIO_PORT01_PIN01
#define TXD_ESP RTE_GPIO_PORT01_PIN02
//#define RXD_ESP RTE_GPIO_PORT01_PIN03
// #define SCL_IIC
RTE_GPIO_PORT01_PIN04
#define BUZZER_PWM_MCU_OUT
RTE_GPIO_PORT01_PIN04
#define TotalWork_hours1000_MCU_OUT RTE_GPIO_PORT01_PIN05
#define TotalWork_hours110_MCU_OUT RTE_GPIO_PORT01_PIN06
#define Interaction_indicator RTE_GPIO_PORT01_PIN07
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
a57f96a2
...
...
@@ -236,7 +236,11 @@ static Power_Status_em Power_Stay_Protect(void)
BU98R10_Shutdown
(
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
0
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER0
,
TIMERM_CHD
,
1000
);
#if (PART_NUMBER == RMR42E_60)
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT04_PIN01
,
RTE_GPIO_LEVEL_LOW
);
// OUT_EN_1
#else
RTE_GPIO_Set_Level
(
BUZZER_PWM_MCU_OUT
,
RTE_GPIO_LEVEL_LOW
);
#endif
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Disable
);
}
u8PowerSts
=
EM_IGN_OFF_Init
;
...
...
@@ -248,7 +252,11 @@ static Power_Status_em Power_Stay_Protect(void)
BU98R10_Shutdown
(
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
0
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER0
,
TIMERM_CHD
,
1000
);
#if (PART_NUMBER == RMR42E_60)
RTE_GPIO_Set_Level
(
RTE_GPIO_PORT04_PIN01
,
RTE_GPIO_LEVEL_LOW
);
// OUT_EN_1
#else
RTE_GPIO_Set_Level
(
BUZZER_PWM_MCU_OUT
,
RTE_GPIO_LEVEL_LOW
);
#endif
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Disable
);
for
(
LED
=
0u
;
LED
<
LampCh0_MAX
;
LED
++
)
{
...
...
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