diff --git a/boards/pic32-clicker/Makefile.dep b/boards/pic32-clicker/Makefile.dep new file mode 100644 index 0000000000..5472bf8b8d --- /dev/null +++ b/boards/pic32-clicker/Makefile.dep @@ -0,0 +1,3 @@ +ifneq (,$(filter saul_default,$(USEMODULE))) + USEMODULE += saul_gpio +endif diff --git a/boards/pic32-clicker/include/gpio_params.h b/boards/pic32-clicker/include/gpio_params.h new file mode 100644 index 0000000000..44ee567bcf --- /dev/null +++ b/boards/pic32-clicker/include/gpio_params.h @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2020 Francois Berder + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @ingroup boards_pic32-wifire + * @{ + * + * @file + * @brief Configuration of SAUL mapped GPIO pins + * + * @author Francois Berder + */ + +#ifndef GPIO_PARAMS_H +#define GPIO_PARAMS_H + +#include "board.h" +#include "saul/periph.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @brief GPIO configuration + */ +static const saul_gpio_params_t saul_gpio_params[] = +{ + { + .name = "LD1", + .pin = LED1_PIN, + .mode = GPIO_OUT, + }, + { + .name = "LD2", + .pin = LED2_PIN, + .mode = GPIO_OUT, + }, +}; + +#ifdef __cplusplus +} +#endif + +#endif /* GPIO_PARAMS_H */ +/** @} */ diff --git a/boards/pic32-wifire/Makefile.dep b/boards/pic32-wifire/Makefile.dep new file mode 100644 index 0000000000..5472bf8b8d --- /dev/null +++ b/boards/pic32-wifire/Makefile.dep @@ -0,0 +1,3 @@ +ifneq (,$(filter saul_default,$(USEMODULE))) + USEMODULE += saul_gpio +endif diff --git a/boards/pic32-wifire/include/gpio_params.h b/boards/pic32-wifire/include/gpio_params.h new file mode 100644 index 0000000000..1a30aa0eb1 --- /dev/null +++ b/boards/pic32-wifire/include/gpio_params.h @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2020 Francois Berder + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @ingroup boards_pic32-wifire + * @{ + * + * @file + * @brief Configuration of SAUL mapped GPIO pins + * + * @author Francois Berder + */ + +#ifndef GPIO_PARAMS_H +#define GPIO_PARAMS_H + +#include "board.h" +#include "saul/periph.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @brief GPIO configuration + */ +static const saul_gpio_params_t saul_gpio_params[] = +{ + { + .name = "LD1", + .pin = LED1_PIN, + .mode = GPIO_OUT, + }, + { + .name = "LD2", + .pin = LED2_PIN, + .mode = GPIO_OUT, + }, + { + .name = "LD3", + .pin = LED3_PIN, + .mode = GPIO_OUT, + }, + { + .name = "LD4", + .pin = LED4_PIN, + .mode = GPIO_OUT, + }, +}; + +#ifdef __cplusplus +} +#endif + +#endif /* GPIO_PARAMS_H */