mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/common/arduino-mkr: use common LED0_NAME definition
This commit is contained in:
parent
7bfe086e7c
commit
f7763438a9
@ -46,6 +46,8 @@ extern "C" {
|
||||
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
|
||||
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
|
||||
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
|
||||
|
||||
#define LED0_NAME "LED(Green)"
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -57,6 +57,8 @@ extern "C" {
|
||||
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
|
||||
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
|
||||
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
|
||||
|
||||
#define LED0_NAME "LED(Green)"
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -60,6 +60,8 @@ extern "C" {
|
||||
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
|
||||
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
|
||||
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
|
||||
|
||||
#define LED0_NAME "LED(Green)"
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -34,7 +34,7 @@ extern "C" {
|
||||
static const saul_gpio_params_t saul_gpio_params[] =
|
||||
{
|
||||
{
|
||||
.name = "LED(Green)",
|
||||
.name = LED0_NAME,
|
||||
.pin = LED0_PIN,
|
||||
.mode = GPIO_OUT
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user