diff --git a/boards/bluepill/include/board.h b/boards/bluepill/include/board.h index f0b6d7c89a..f84f863ade 100644 --- a/boards/bluepill/include/board.h +++ b/boards/bluepill/include/board.h @@ -43,8 +43,8 @@ extern "C" { #define LED0_PIN GPIO_PIN(PORT_C, 13) #define LED0_MASK (1 << 13) -#define LED0_ON (LED0_PORT->BSRR = LED0_MASK) -#define LED0_OFF (LED0_PORT->BSRR = (LED0_MASK << 16)) +#define LED0_ON (LED0_PORT->BSRR = (LED0_MASK << 16)) +#define LED0_OFF (LED0_PORT->BSRR = LED0_MASK) #define LED0_TOGGLE (LED0_PORT->ODR ^= LED0_MASK) /** @} */ diff --git a/boards/bluepill/include/gpio_params.h b/boards/bluepill/include/gpio_params.h index f72ebdaeee..a198c68c4e 100644 --- a/boards/bluepill/include/gpio_params.h +++ b/boards/bluepill/include/gpio_params.h @@ -34,7 +34,8 @@ static const saul_gpio_params_t saul_gpio_params[] = { .name = "LED", .pin = LED0_PIN, - .mode = GPIO_OUT + .mode = GPIO_OUT, + .flags = (SAUL_GPIO_INVERTED | SAUL_GPIO_INIT_CLEAR) }, };