Skip to content

Commit

Permalink
Merge pull request #6741 from lebrush/refactor/boards-msbiot-leds
Browse files Browse the repository at this point in the history
boards/msbiot: use LED defines
  • Loading branch information
vincent-d authored Mar 16, 2017
2 parents 164d055 + 34b9c04 commit 379eb24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions boards/msbiot/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 3 additions & 3 deletions boards/msbiot/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 379eb24

Please sign in to comment.