From 17fd5b7145d0f41ff986476b9569201bb3036a64 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 5 Mar 2019 15:48:55 +0100 Subject: [PATCH] boards/particle-argon: initial support --- boards/particle-argon/Makefile | 5 ++ boards/particle-argon/Makefile.dep | 1 + boards/particle-argon/Makefile.features | 1 + boards/particle-argon/Makefile.include | 3 + boards/particle-argon/doc.txt | 25 ++++++++ boards/particle-argon/include/periph_conf.h | 63 +++++++++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 boards/particle-argon/Makefile create mode 100644 boards/particle-argon/Makefile.dep create mode 100644 boards/particle-argon/Makefile.features create mode 100644 boards/particle-argon/Makefile.include create mode 100644 boards/particle-argon/doc.txt create mode 100644 boards/particle-argon/include/periph_conf.h diff --git a/boards/particle-argon/Makefile b/boards/particle-argon/Makefile new file mode 100644 index 0000000000..bff71f8b82 --- /dev/null +++ b/boards/particle-argon/Makefile @@ -0,0 +1,5 @@ +MODULE = board + +DIRS = $(RIOTBOARD)/common/particle-mesh + +include $(RIOTBASE)/Makefile.base diff --git a/boards/particle-argon/Makefile.dep b/boards/particle-argon/Makefile.dep new file mode 100644 index 0000000000..a568b57f20 --- /dev/null +++ b/boards/particle-argon/Makefile.dep @@ -0,0 +1 @@ +include $(RIOTBOARD)/common/particle-mesh/Makefile.dep diff --git a/boards/particle-argon/Makefile.features b/boards/particle-argon/Makefile.features new file mode 100644 index 0000000000..40ae59db3f --- /dev/null +++ b/boards/particle-argon/Makefile.features @@ -0,0 +1 @@ +include $(RIOTBOARD)/common/particle-mesh/Makefile.features diff --git a/boards/particle-argon/Makefile.include b/boards/particle-argon/Makefile.include new file mode 100644 index 0000000000..178b7f036f --- /dev/null +++ b/boards/particle-argon/Makefile.include @@ -0,0 +1,3 @@ +USEMODULE += boards_common_particle_mesh + +include $(RIOTBOARD)/common/particle-mesh/Makefile.include diff --git a/boards/particle-argon/doc.txt b/boards/particle-argon/doc.txt new file mode 100644 index 0000000000..3fc7d4619d --- /dev/null +++ b/boards/particle-argon/doc.txt @@ -0,0 +1,25 @@ +/** +@defgroup boards_particle-argon Particle Argon +@ingroup boards +@brief Support for the Particle Argon + +### General information + +[Particle Argon](https://docs.particle.io/argon/) is a mesh-ready development kit +that provides access to multiple communication protocols: BLE, 802.15.4 and WiFi. + +pinout + +### Block diagrams and datasheets + +pinout + +The board datasheet is available [here](https://docs.particle.io/assets/pdfs/datasheets/argon-datasheet.pdf) + +### Flash the board + +See the `Flashing` section in @ref boards_common_particle-mesh. + + */ diff --git a/boards/particle-argon/include/periph_conf.h b/boards/particle-argon/include/periph_conf.h new file mode 100644 index 0000000000..98b0b2c6ca --- /dev/null +++ b/boards/particle-argon/include/periph_conf.h @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2019 Inria + * + * 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_particle-argon + * @{ + * + * @file + * @brief Peripheral configuration for the Particle Argon + * + * @author Alexandre Abadie + * + */ + +#ifndef PERIPH_CONF_H +#define PERIPH_CONF_H + +#include "periph_cpu.h" +#include "periph_conf_common.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @name UART configuration + * @{ + */ +static const uart_conf_t uart_config[] = { + { + .dev = NRF_UARTE0, + .rx_pin = GPIO_PIN(0,8), + .tx_pin = GPIO_PIN(0,6), + .rts_pin = (uint8_t)GPIO_UNDEF, + .cts_pin = (uint8_t)GPIO_UNDEF, + .irqn = UARTE0_UART0_IRQn, + }, + { + .dev = NRF_UARTE1, + .rx_pin = GPIO_PIN(1,5), + .tx_pin = GPIO_PIN(1,4), + .rts_pin = GPIO_PIN(1,6), + .cts_pin = GPIO_PIN(1,7), + .irqn = UARTE1_IRQn, + }, +}; + +#define UART_0_ISR (isr_uart0) +#define UART_1_ISR (isr_uarte1) + +#define UART_NUMOF (sizeof(uart_config) / sizeof(uart_config[0])) +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* PERIPH_CONF_H */