gpio_params.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2021 Franz Freitag, Justus Krebs, Nick Weiler
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "board.h"
22 #include "saul/periph.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #ifdef BOARD_RPI_PICO
29 
33 static const saul_gpio_params_t saul_gpio_params[] =
34 {
35  {
36  .name = LED0_NAME,
37  .pin = LED0_PIN,
38  .mode = GPIO_OUT,
39  }
40 };
41 
42 #endif
43 
44 #ifdef BOARD_RPI_PICO_W
45 
49 #define SAUL_GPIO_NUMOF 0
50 
51 #endif
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
static const saul_gpio_params_t saul_gpio_params[]
LED configuration.
Definition: gpio_params.h:29
#define LED0_NAME
LED0 name.
Definition: board.h:38
@ GPIO_OUT
select GPIO MASK as output
Definition: periph_cpu.h:161
Parameter definitions for mapping peripherals directly to SAUL.
Direct mapped GPIO configuration values.
Definition: periph.h:50
const char * name
name of the device connected to this pin
Definition: periph.h:51
Board specific definitions for the Zigduino board.