-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from charlesportwoodii/partcle_boards
- Loading branch information
Showing
5 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/** | ||
* Copyright (c) 2019-Present Charles R. Portwood II <charlesportwoodii@erianna.com> | ||
* 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 <organization> 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 <COPYRIGHT HOLDER> 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/** | ||
* Copyright (c) 2019-Present Charles R. Portwood II <charlesportwoodii@erianna.com> | ||
* 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 <organization> 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 <COPYRIGHT HOLDER> 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 |