diff --git a/.travis.yml b/.travis.yml index 46fd02f..39188b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,10 @@ env: - BOARD=mdk DEBUG=1 - BOARD=particle-xenon - BOARD=particle-xenon DEBUG=1 + - BOARD=particle-boron + - BOARD=particle-boron DEBUG=1 + - BOARD=particle-argon + - BOARD=particle-argon DEBUG=1 - BOARD=feather-express - BOARD=feather-express DEBUG=1 diff --git a/boards/particle-argon/s140/Makefile b/boards/particle-argon/s140/Makefile new file mode 100644 index 0000000..01165fe --- /dev/null +++ b/boards/particle-argon/s140/Makefile @@ -0,0 +1,10 @@ +include ../../Makefile.boards + +CFLAGS += -DBOARD_CUSTOM + +ASMFLAGS += -DBOARD_CUSTOM + +ifeq ($(PBRICK_DEBUG), 1) +CFLAGS += -DNRF_LOG_BACKEND_UART_TX_PIN=6 +ASMFLAGS += -DNRF_LOG_BACKEND_UART_TX_PIN=6 +endif \ No newline at end of file diff --git a/boards/particle-argon/s140/include/custom_board.h b/boards/particle-argon/s140/include/custom_board.h new file mode 100644 index 0000000..a6d0ace --- /dev/null +++ b/boards/particle-argon/s140/include/custom_board.h @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2019-Present Charles R. Portwood II + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef CUSTOM_BOARD_H +#define CUSTOM_BOARD_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "nrf_gpio.h" + +#define LEDS_NUMBER 3 + +#define LED_1 NRF_GPIO_PIN_MAP(0,14) +#define LED_2 NRF_GPIO_PIN_MAP(0,13) +#define LED_3 NRF_GPIO_PIN_MAP(0,15) + +#define LEDS_ACTIVE_STATE 0 + +#define LEDS_LIST { LED_1, LED_2, LED_3 } + +#define LEDS_INV_MASK LEDS_MASK + +#define BSP_LED_0 LED_1 +#define BSP_LED_1 LED_2 +#define BSP_LED_2 LED_3 + +#define BUTTONS_NUMBER 1 + +#define BUTTON_1 11 +#define BUTTON_PULL NRF_GPIO_PIN_PULLUP +#define BUTTONS_ACTIVE_STATE 0 + +#define BUTTONS_LIST { BUTTON_1 } + +#define BSP_BUTTON_0 BUTTON_1 + +#define RX_PIN_NUMBER 8 +#define TX_PIN_NUMBER 6 +#define CTS_PIN_NUMBER 0xFFFFFFFF //NC +#define RTS_PIN_NUMBER 0xFFFFFFFF //NC +#define HWFC false + +#define BSP_QSPI_SCK_PIN 19 +#define BSP_QSPI_CSN_PIN 17 +#define BSP_QSPI_IO0_PIN 20 +#define BSP_QSPI_IO1_PIN 21 +#define BSP_QSPI_IO2_PIN 22 +#define BSP_QSPI_IO3_PIN 23 + +#ifdef __cplusplus +} +#endif + +#endif // CUSTOM_BOARD_H diff --git a/boards/particle-boron/s140/Makefile b/boards/particle-boron/s140/Makefile new file mode 100644 index 0000000..01165fe --- /dev/null +++ b/boards/particle-boron/s140/Makefile @@ -0,0 +1,10 @@ +include ../../Makefile.boards + +CFLAGS += -DBOARD_CUSTOM + +ASMFLAGS += -DBOARD_CUSTOM + +ifeq ($(PBRICK_DEBUG), 1) +CFLAGS += -DNRF_LOG_BACKEND_UART_TX_PIN=6 +ASMFLAGS += -DNRF_LOG_BACKEND_UART_TX_PIN=6 +endif \ No newline at end of file diff --git a/boards/particle-boron/s140/include/custom_board.h b/boards/particle-boron/s140/include/custom_board.h new file mode 100644 index 0000000..a6d0ace --- /dev/null +++ b/boards/particle-boron/s140/include/custom_board.h @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2019-Present Charles R. Portwood II + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef CUSTOM_BOARD_H +#define CUSTOM_BOARD_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "nrf_gpio.h" + +#define LEDS_NUMBER 3 + +#define LED_1 NRF_GPIO_PIN_MAP(0,14) +#define LED_2 NRF_GPIO_PIN_MAP(0,13) +#define LED_3 NRF_GPIO_PIN_MAP(0,15) + +#define LEDS_ACTIVE_STATE 0 + +#define LEDS_LIST { LED_1, LED_2, LED_3 } + +#define LEDS_INV_MASK LEDS_MASK + +#define BSP_LED_0 LED_1 +#define BSP_LED_1 LED_2 +#define BSP_LED_2 LED_3 + +#define BUTTONS_NUMBER 1 + +#define BUTTON_1 11 +#define BUTTON_PULL NRF_GPIO_PIN_PULLUP +#define BUTTONS_ACTIVE_STATE 0 + +#define BUTTONS_LIST { BUTTON_1 } + +#define BSP_BUTTON_0 BUTTON_1 + +#define RX_PIN_NUMBER 8 +#define TX_PIN_NUMBER 6 +#define CTS_PIN_NUMBER 0xFFFFFFFF //NC +#define RTS_PIN_NUMBER 0xFFFFFFFF //NC +#define HWFC false + +#define BSP_QSPI_SCK_PIN 19 +#define BSP_QSPI_CSN_PIN 17 +#define BSP_QSPI_IO0_PIN 20 +#define BSP_QSPI_IO1_PIN 21 +#define BSP_QSPI_IO2_PIN 22 +#define BSP_QSPI_IO3_PIN 23 + +#ifdef __cplusplus +} +#endif + +#endif // CUSTOM_BOARD_H