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/stm32f746g-disco: add LD1 as LED0 definition #18673

Merged
merged 1 commit into from
Oct 1, 2022
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
10 changes: 10 additions & 0 deletions boards/stm32f746g-disco/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ extern "C" {
#define LCD_SCREEN_HEIGHT 272 /**< LCD screen height */
/** @} */

/**
* @name Macros for controlling the on-board LEDs.
* @{
*/
#define LED0_PIN_NUM 1 /**< LD1 pin number */
#define LED0_PORT_NUM PORT_I /**< LD1 port */
/** @} */

/**
* @name User button
* @{
Expand All @@ -80,5 +88,7 @@ extern "C" {
}
#endif

#include "stm32_leds.h"

#endif /* BOARD_H */
/** @} */
5 changes: 5 additions & 0 deletions boards/stm32f746g-disco/include/gpio_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ extern "C" {
*/
static const saul_gpio_params_t saul_gpio_params[] =
{
{
.name = "LD1 (green)",
.pin = LED0_PIN,
.mode = GPIO_OUT
},
{
.name = "BTN USER",
.pin = BTN0_PIN,
Expand Down