1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/stm32f746g-disco: add LD1 as LED0 definition

LED LD1 has no special function on the board STM32F746-DISCO and therefore can be used freely. This LED is also defined as ARDUINO LED pin D13 in the schematic.
This commit is contained in:
Gunar Schorcht 2022-09-30 08:45:32 +02:00
parent d0ac322a11
commit b04c84765b
2 changed files with 15 additions and 0 deletions

View File

@ -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
* @{
@ -80,5 +88,7 @@ extern "C" {
}
#endif
#include "stm32_leds.h"
#endif /* BOARD_H */
/** @} */

View File

@ -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,