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:
parent
d0ac322a11
commit
b04c84765b
@ -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 */
|
||||
/** @} */
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user