Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
6a7e9f88
Commit
6a7e9f88
authored
Mar 24, 2025
by
李梓源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:引脚更换
parent
57494dfc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
6 deletions
+12
-6
RTE_GPIO.c
YueJin_test_bench/source/Appliciation/RTE_GPIO.c
+6
-0
RTE_GPIO.h
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
+2
-2
app_lsdn.c
YueJin_test_bench/source/Appliciation/app_lsdn.c
+2
-2
init.c
YueJin_test_bench/source/System/init.c
+1
-1
GPIO.c
YueJin_test_bench/utility/GPIO/GPIO.c
+1
-1
No files found.
YueJin_test_bench/source/Appliciation/RTE_GPIO.c
View file @
6a7e9f88
...
...
@@ -173,6 +173,12 @@ void RTE_GPIO_Init(void)
gpio_temp
.
enGPIODir
=
GPIO_DIR_OUT
;
gpio_temp
.
enGPIOAltFun
=
GPIO_ALTER_FUN_1
;
GPIO_Config
(
&
gpio_temp
);
gpio_temp
.
enGPIOPort
=
GPIO_PORT_GROUP_0
;
gpio_temp
.
enGPIOPIN
=
GPIO_PIN_4
;
gpio_temp
.
enGPIOMode
=
GPIO_MODE_PORT
;
gpio_temp
.
enGPIODir
=
GPIO_DIR_OUT
;
gpio_temp
.
enGPIOAltFun
=
GPIO_ALTER_FUN_1
;
GPIO_Config
(
&
gpio_temp
);
// queren = 0;
// LINE_OUT_NEG_01 = 1;
// LINE_OUT_NEG_02 = 1;
...
...
YueJin_test_bench/source/Appliciation/RTE_GPIO.h
View file @
6a7e9f88
...
...
@@ -7,8 +7,8 @@
#define LINE_OUT_NEG_09 GPIO_OUT_PORT10_PIN04 //485_RE
#define ONE_START GPIO_OUT_PORT10_PIN1
4
//一键启动
#define ABC_OUT GPIO_OUT_PORT
10_PIN13
//ABC轮动报警输出
#define ONE_START GPIO_OUT_PORT10_PIN1
3
//一键启动
#define ABC_OUT GPIO_OUT_PORT
00_PIN04
//ABC轮动报警输出
#define RELAY_VBAT_MCU GPIO_OUT_PORT10_PIN10
#define RELAY_DC12V_MCU GPIO_OUT_PORT10_PIN09
...
...
YueJin_test_bench/source/Appliciation/app_lsdn.c
View file @
6a7e9f88
...
...
@@ -14,7 +14,7 @@ void set_pin_high(uint8_t mode)
}
else
{
ONE_START
=
0
;
ONE_START
=
1
;
}
}
void
set_pin_low
(
uint8_t
mode
)
...
...
@@ -28,7 +28,7 @@ void set_pin_low(uint8_t mode)
}
else
{
ONE_START
=
1
;
ONE_START
=
0
;
}
}
void
lsdn_delay_us
(
uint32_t
us
)
...
...
YueJin_test_bench/source/System/init.c
View file @
6a7e9f88
...
...
@@ -77,7 +77,7 @@ void Sys_Startup_Init(void)
// GPIO_DIR_PORT00_PIN08 = 1;
// TX_OUT = 0;
ONE_START
=
0
;
ONE_START
=
1
;
GPIO_SET_KEPP
(
);
RTE_ADC_Init
(
);
...
...
YueJin_test_bench/utility/GPIO/GPIO.c
View file @
6a7e9f88
...
...
@@ -48,7 +48,7 @@ const uint16_t g_u16GPIOConfigArray[56U][2U] =
{
0x0000u
,
0x0000u
},
{
0x0630u
,
0x0600u
},
{
0x0220u
,
0x2207u
},
{
0x79
C
Fu
,
0x79FFu
},
{
0x79
D
Fu
,
0x79FFu
},
{
0x0000u
,
0x0000u
},
{
0x0000u
,
0x0000u
},
{
0x0000u
,
0x0000u
},
...
...
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