Skip to content

Commit

Permalink
boards/nucleo-common: export nucleo extra leds via saul if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Feb 3, 2017
1 parent 0744c6f commit f1ba579
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions boards/nucleo-common/include/gpio_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ static const saul_gpio_params_t saul_gpio_params[] =
.pin = LED0_PIN,
.mode = GPIO_OUT
},
#ifdef LED1_PIN
{
.name = "LED(blue)",
.pin = LED1_PIN,
.mode = GPIO_OUT
},
#endif
#ifdef LED2_PIN
{
.name = "LED(red)",
.pin = LED2_PIN,
.mode = GPIO_OUT
},
#endif
{
.name = "Button(B1 User)",
.pin = BTN_B1_PIN,
Expand Down

0 comments on commit f1ba579

Please sign in to comment.