Commit 6a7e9f88 authored by 李梓源's avatar 李梓源

feat:引脚更换

parent 57494dfc
......@@ -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;
......
......@@ -7,8 +7,8 @@
#define LINE_OUT_NEG_09 GPIO_OUT_PORT10_PIN04 //485_RE
#define ONE_START GPIO_OUT_PORT10_PIN14 //一键启动
#define ABC_OUT GPIO_OUT_PORT10_PIN13 //ABC轮动报警输出
#define ONE_START GPIO_OUT_PORT10_PIN13 //一键启动
#define ABC_OUT GPIO_OUT_PORT00_PIN04 //ABC轮动报警输出
#define RELAY_VBAT_MCU GPIO_OUT_PORT10_PIN10
#define RELAY_DC12V_MCU GPIO_OUT_PORT10_PIN09
......
......@@ -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)
......
......@@ -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( );
......
......@@ -48,7 +48,7 @@ const uint16_t g_u16GPIOConfigArray[56U][2U] =
{0x0000u, 0x0000u},
{0x0630u, 0x0600u},
{0x0220u, 0x2207u},
{0x79CFu, 0x79FFu},
{0x79DFu, 0x79FFu},
{0x0000u, 0x0000u},
{0x0000u, 0x0000u},
{0x0000u, 0x0000u},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment