Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/msbiot: use LED defines #6741

Merged
merged 1 commit into from
Mar 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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