diff --git a/boards/b-l072z-lrwan1/board.c b/boards/b-l072z-lrwan1/board.c index 444c84426d53502336c151f7e359f9359793a192..7acc12e0432a6451fddbcd77bf825d81e8785f58 100644 --- a/boards/b-l072z-lrwan1/board.c +++ b/boards/b-l072z-lrwan1/board.c @@ -38,4 +38,8 @@ void board_init(void) only if explicitly wanted by the user */ gpio_init(LED0_PIN, GPIO_OUT); #endif + + gpio_init(LED1_PIN, GPIO_OUT); + gpio_init(LED2_PIN, GPIO_OUT); + gpio_init(LED3_PIN, GPIO_OUT); } diff --git a/boards/b-l072z-lrwan1/include/board.h b/boards/b-l072z-lrwan1/include/board.h index e4c5ee6ee494bcbc95141eda2821d8bc8ad8c077..2acd05765d9b4f2cdeb38c15013d71ba7f6ad7e5 100644 --- a/boards/b-l072z-lrwan1/include/board.h +++ b/boards/b-l072z-lrwan1/include/board.h @@ -66,23 +66,23 @@ extern "C" { #define LED1_PIN GPIO_PIN(PORT_B, 5) #define LED1_MASK (1 << 5) -#define LED1_ON (GPIOB->BSRR = LED0_MASK) -#define LED1_OFF (GPIOB->BSRR = (LED0_MASK << 16)) -#define LED1_TOGGLE (GPIOB->ODR ^= LED0_MASK) +#define LED1_ON (GPIOB->BSRR = LED1_MASK) +#define LED1_OFF (GPIOB->BSRR = (LED1_MASK << 16)) +#define LED1_TOGGLE (GPIOB->ODR ^= LED1_MASK) #define LED2_PIN GPIO_PIN(PORT_B, 6) #define LED2_MASK (1 << 6) -#define LED2_ON (GPIOB->BSRR = LED0_MASK) -#define LED2_OFF (GPIOB->BSRR = (LED0_MASK << 16)) -#define LED2_TOGGLE (GPIOB->ODR ^= LED0_MASK) +#define LED2_ON (GPIOB->BSRR = LED2_MASK) +#define LED2_OFF (GPIOB->BSRR = (LED2_MASK << 16)) +#define LED2_TOGGLE (GPIOB->ODR ^= LED2_MASK) #define LED3_PIN GPIO_PIN(PORT_B, 7) #define LED3_MASK (1 << 7) -#define LED3_ON (GPIOB->BSRR = LED0_MASK) -#define LED3_OFF (GPIOB->BSRR = (LED0_MASK << 16)) -#define LED3_TOGGLE (GPIOB->ODR ^= LED0_MASK) +#define LED3_ON (GPIOB->BSRR = LED3_MASK) +#define LED3_OFF (GPIOB->BSRR = (LED3_MASK << 16)) +#define LED3_TOGGLE (GPIOB->ODR ^= LED3_MASK) /** @} */ /**