diff --git a/Gpios.c b/Gpios.c index 6b8c6e3..31b60db 100644 --- a/Gpios.c +++ b/Gpios.c @@ -20,7 +20,7 @@ void Gpios_Init() { // Контроль напряжения борт-сети (1 - ВКЛ) env->power.PBATT_CK_EN = vInitGpioPinPull(GPIO_C, PORT_PIN_17, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_LOW, GPIO_PUSH_PULL, PORT_PULL_DOWN); // Включение 5V (0 - ВКЛ) - env->power.SW5V_EN = vInitGpioPinPull(GPIO_C, PORT_PIN_18, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_HIGH, GPIO_PUSH_PULL, PORT_PULL_UP); + env->power.SW5V_EN = vInitGpioPinPull(GPIO_C, PORT_PIN_18, GPIO_OUT, GPIO_PIN_REVERSE, GPIO_HIGH, GPIO_PUSH_PULL, PORT_PULL_UP); // Канал 0 (1 - ВКЛ) env->power.BTS5180_2EKA_FrontRearIncarMotor.Incar_Motor_Front_EN = vInitGpioPinPull(GPIO_A, PORT_PIN_9, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_LOW, GPIO_PUSH_PULL, PORT_PULL_DOWN); diff --git a/Gpios.h b/Gpios.h index f4bc76f..dde3d68 100644 --- a/Gpios.h +++ b/Gpios.h @@ -97,6 +97,7 @@ typedef struct { tGpioPin ST_PowerReserve; // (1 - ошибок нет) } tBTS4175SGAXUMA1_PowerReserve; +/* typedef struct { uint8_t SW5V_EN; uint8_t PBATT_CK_EN; @@ -116,7 +117,7 @@ typedef struct { uint8_t EN_BATTChiller; uint8_t EN_PowerReserve; } tPowerEnable; - +*/