diff --git a/Core/Inc/main.h b/Core/Inc/main.h index ac9ecb8..2ef567e 100644 --- a/Core/Inc/main.h +++ b/Core/Inc/main.h @@ -67,8 +67,8 @@ void ISP_Judge(); #define PMB_PS_ON_GPIO_Port GPIOE #define PMB_CHRG_STAT2_Pin GPIO_PIN_5 #define PMB_CHRG_STAT2_GPIO_Port GPIOE -#define PMG_CHRG_STAT1_Pin GPIO_PIN_6 -#define PMG_CHRG_STAT1_GPIO_Port GPIOE +#define PMB_CHRG_STAT1_Pin GPIO_PIN_6 +#define PMB_CHRG_STAT1_GPIO_Port GPIOE #define PMB_CHRG_SHDN_Pin GPIO_PIN_0 #define PMB_CHRG_SHDN_GPIO_Port GPIOC #define PMB_TEMP_SEN_EN_Pin GPIO_PIN_1 diff --git a/Core/Src/gpio.c b/Core/Src/gpio.c index 05dafdd..424b57c 100644 --- a/Core/Src/gpio.c +++ b/Core/Src/gpio.c @@ -98,7 +98,7 @@ void MX_GPIO_Init(void) HAL_GPIO_Init(SYS_CUSTOM_BTN_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pins : PEPin PEPin */ - GPIO_InitStruct.Pin = PMB_CHRG_STAT2_Pin|PMG_CHRG_STAT1_Pin; + GPIO_InitStruct.Pin = PMB_CHRG_STAT2_Pin|PMB_CHRG_STAT1_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);