-
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.
Add a formal board definition for Ardunino Nano 33 BLE (#16)
* Add a formal board definition for Ardunino Nano 33 BLE * Update travis to point to new location * Update travis to point to new location * USe Docker image instead of rebuilding src each time * Updating README
- Loading branch information
1 parent
f481a77
commit 99b6ca9
Showing
4 changed files
with
118 additions
and
35 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
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,12 @@ | ||
include ../../Makefile.boards | ||
|
||
CFLAGS += -DBOARD_CUSTOM | ||
|
||
ASMFLAGS += -DBOARD_CUSTOM | ||
|
||
ifeq ($(DEBUG), 1) | ||
CFLAGS += -DNRF_LOG_BACKEND_UART_TX_PIN=3 | ||
CFLAGS += -DNRF_LOG_BACKEND_UART_RX_PIN=10 | ||
ASMFLAGS += -DNRF_LOG_BACKEND_UART_TX_PIN=3 | ||
ASMFLAGS += -DNRF_LOG_BACKEND_UART_RX_PIN=10 | ||
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,81 @@ | ||
/** | ||
* 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 5 | ||
|
||
#define LED_1 NRF_GPIO_PIN_MAP(0,24) | ||
#define LED_2 NRF_GPIO_PIN_MAP(0,16) | ||
#define LED_3 NRF_GPIO_PIN_MAP(0,6) | ||
#define LED_4 NRF_GPIO_PIN_MAP(0,13) | ||
#define LED_5 NRF_GPIO_PIN_MAP(1,9) | ||
|
||
#define LED_RED LED_1 | ||
#define LED_GREEN LED_2 | ||
#define LED_BLUE LED_3 | ||
|
||
#define LED_BUILTIN LED_4 | ||
#define LED_PWR LED_5 | ||
|
||
#define LED_START LED_1 | ||
#define LED_STOP LED_3 | ||
|
||
#define LEDS_ACTIVE_STATE 0 | ||
|
||
#define LEDS_LIST { LED_1, LED_2, LED_3, LED_4, LED_5 } | ||
|
||
#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 BSP_LED_3 LED_4 | ||
#define BSP_LED_4 LED_5 | ||
|
||
#define BUTTONS_NUMBER 0 | ||
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP | ||
#define BUTTONS_ACTIVE_STATE 0 | ||
|
||
#define RX_PIN_NUMBER 10 | ||
#define TX_PIN_NUMBER 3 | ||
#define CTS_PIN_NUMBER 0xFFFFFFFF //NC | ||
#define RTS_PIN_NUMBER 0xFFFFFFFF //NC | ||
#define HWFC false | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // CUSTOM_BOARD_H |