summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm/peripherals/stm32f4/stm32f412cx_thunderpack/gpio.c8
-rw-r--r--ports/stm/peripherals/stm32f4/stm32f412zx/gpio.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/ports/stm/peripherals/stm32f4/stm32f412cx_thunderpack/gpio.c b/ports/stm/peripherals/stm32f4/stm32f412cx_thunderpack/gpio.c
index 7172a2520..d2844f1a6 100644
--- a/ports/stm/peripherals/stm32f4/stm32f412cx_thunderpack/gpio.c
+++ b/ports/stm/peripherals/stm32f4/stm32f412cx_thunderpack/gpio.c
@@ -215,16 +215,16 @@ void stm32f4_peripherals_status_led(uint8_t led, uint8_t state) {
switch(led)
{
case 0:
- HAL_GPIO_WritePin(GPIOE, GPIO_PIN_0, state);
+ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, state);
break;
case 1:
- HAL_GPIO_WritePin(GPIOE, GPIO_PIN_1, state);
+ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, state);
break;
case 2:
- HAL_GPIO_WritePin(GPIOE, GPIO_PIN_2, state);
+ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_2, state);
break;
case 3:
- HAL_GPIO_WritePin(GPIOE, GPIO_PIN_3, state);
+ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_3, state);
break;
default: break;
}
diff --git a/ports/stm/peripherals/stm32f4/stm32f412zx/gpio.c b/ports/stm/peripherals/stm32f4/stm32f412zx/gpio.c
index 4ec6b107f..fde10be3c 100644
--- a/ports/stm/peripherals/stm32f4/stm32f412zx/gpio.c
+++ b/ports/stm/peripherals/stm32f4/stm32f412zx/gpio.c
@@ -228,13 +228,13 @@ void stm32f4_peripherals_gpio_init(void) {
void stm32f4_peripherals_status_led(uint8_t led, uint8_t state) {
switch(led)
{
- case 0: HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, (state ^ 1));
+ case 0: HAL_GPIO_WritePin(GPIOE, GPIO_PIN_0, (state ^ 1));
break;
- case 1: HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1, (state ^ 1));
+ case 1: HAL_GPIO_WritePin(GPIOE, GPIO_PIN_1, (state ^ 1));
break;
- case 2: HAL_GPIO_WritePin(GPIOA, GPIO_PIN_2, (state ^ 1));
+ case 2: HAL_GPIO_WritePin(GPIOE, GPIO_PIN_2, (state ^ 1));
break;
- case 3: HAL_GPIO_WritePin(GPIOA, GPIO_PIN_3, (state ^ 1));
+ case 3: HAL_GPIO_WritePin(GPIOE, GPIO_PIN_3, (state ^ 1));
break;
default: break;
}