1
0
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:
Alexandre Abadie 2018-01-12 09:40:34 +01:00
parent 7bfe086e7c
commit f7763438a9
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
4 changed files with 7 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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