Browse Source

boards/msbiot: use LED defines

pr/rotary
Victor Arino 6 years ago
parent
commit
34b9c04d9d
  1. 6
      boards/msbiot/board.c
  2. 6
      boards/msbiot/include/board.h

6
boards/msbiot/board.c

@ -45,7 +45,7 @@ void board_init(void)
*/
static void leds_init(void)
{
gpio_init(GPIO_PIN(PORT_B, 8), GPIO_OUT);
gpio_init(GPIO_PIN(PORT_B, 14), GPIO_OUT);
gpio_init(GPIO_PIN(PORT_B, 15), GPIO_OUT);
gpio_init(LED0_PIN, GPIO_OUT);
gpio_init(LED1_PIN, GPIO_OUT);
gpio_init(LED2_PIN, GPIO_OUT);
}

6
boards/msbiot/include/board.h

@ -52,9 +52,9 @@ extern "C" {
* @brief LED pin definitions and handlers
* @{
*/
#define LED0_PIN GPIO_PIN(1, 8)
#define LED1_PIN GPIO_PIN(1, 14)
#define LED2_PIN GPIO_PIN(1, 15)
#define LED0_PIN GPIO_PIN(PORT_B, 8)
#define LED1_PIN GPIO_PIN(PORT_B, 14)
#define LED2_PIN GPIO_PIN(PORT_B, 15)
#define LED_PORT GPIOB
#define LED0_MASK (1 << 8)

Loading…
Cancel
Save