mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/particle-boron: initial support
This commit is contained in:
parent
17fd5b7145
commit
05409782c0
5
boards/particle-boron/Makefile
Normal file
5
boards/particle-boron/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
MODULE = board
|
||||||
|
|
||||||
|
DIRS = $(RIOTBOARD)/common/particle-mesh
|
||||||
|
|
||||||
|
include $(RIOTBASE)/Makefile.base
|
1
boards/particle-boron/Makefile.dep
Normal file
1
boards/particle-boron/Makefile.dep
Normal file
@ -0,0 +1 @@
|
|||||||
|
include $(RIOTBOARD)/common/particle-mesh/Makefile.dep
|
1
boards/particle-boron/Makefile.features
Normal file
1
boards/particle-boron/Makefile.features
Normal file
@ -0,0 +1 @@
|
|||||||
|
include $(RIOTBOARD)/common/particle-mesh/Makefile.features
|
3
boards/particle-boron/Makefile.include
Normal file
3
boards/particle-boron/Makefile.include
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
USEMODULE += boards_common_particle_mesh
|
||||||
|
|
||||||
|
include $(RIOTBOARD)/common/particle-mesh/Makefile.include
|
25
boards/particle-boron/doc.txt
Normal file
25
boards/particle-boron/doc.txt
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/**
|
||||||
|
@defgroup boards_particle-boron Particle Boron
|
||||||
|
@ingroup boards
|
||||||
|
@brief Support for the Particle Boron
|
||||||
|
|
||||||
|
### General information
|
||||||
|
|
||||||
|
[Particle Boron](https://docs.particle.io/boron/) is a mesh-ready development kit
|
||||||
|
that provides access to multiple communication protocols: BLE, 802.15.4 and LTE.
|
||||||
|
|
||||||
|
<img src="https://docs.particle.io/assets/images/boron/boron-top.png"
|
||||||
|
alt="pinout" style="height:300px;"/>
|
||||||
|
|
||||||
|
### Block diagrams and datasheets
|
||||||
|
|
||||||
|
<img src="https://docs.particle.io/assets/images/boron/boron-block-diagram.png"
|
||||||
|
alt="pinout" style="height:800px;"/>
|
||||||
|
|
||||||
|
The board datasheet is available [here](https://docs.particle.io/assets/pdfs/datasheets/boron-datasheet.pdf)
|
||||||
|
|
||||||
|
### Flash the board
|
||||||
|
|
||||||
|
See the `Flashing` section in @ref boards_common_particle-mesh.
|
||||||
|
|
||||||
|
*/
|
62
boards/particle-boron/include/periph_conf.h
Normal file
62
boards/particle-boron/include/periph_conf.h
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* 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-boron
|
||||||
|
* @{
|
||||||
|
*
|
||||||
|
* @file
|
||||||
|
* @brief Peripheral configuration for the Particle Boron
|
||||||
|
*
|
||||||
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#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,4),
|
||||||
|
.tx_pin = GPIO_PIN(1,5),
|
||||||
|
.rts_pin = GPIO_PIN(1,7),
|
||||||
|
.cts_pin = GPIO_PIN(1,6),
|
||||||
|
.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 */
|
Loading…
Reference in New Issue
Block a user