Skip to content

Commit 7a728ee

Browse files
authored
Merge pull request #207 from jpconstantineau/EByte-E73-TBB
EByte E73-TBB (nRF52832): Initial commit of bootloader
2 parents 566410a + 398ede8 commit 7a728ee

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

.github/workflows/githubci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- 'bast_ble'
3434
- 'bluemicro_nrf52840'
3535
- 'ebyte_e104_bt5032a'
36+
- 'ebyte_e73_tbb'
3637
- 'electronut_labs_papyr'
3738
- 'ikigaisense_vita'
3839
- 'mdk_nrf52840_dongle'

src/boards/ebyte_e73_tbb/board.h

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2021 Pierre Constantineau
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
#ifndef _EBYTE_E73_TBB_H
26+
#define _EBYTE_E73_TBB_H
27+
28+
/*------------------------------------------------------------------*/
29+
/* LED
30+
*------------------------------------------------------------------*/
31+
#define LEDS_NUMBER 2
32+
#define LED_PRIMARY_PIN 17 // Red - named "LED1"
33+
#define LED_SECONDARY_PIN 18 // Blue - named "LED2" (also a red one on the Test Board)
34+
#define LED_STATE_ON 0
35+
36+
/*------------------------------------------------------------------*/
37+
/* BUTTON
38+
*------------------------------------------------------------------*/
39+
#define BUTTONS_NUMBER 2
40+
#define BUTTON_1 14 // BUTTON_1 is DFU. SW1 on E73-TBB Test Board.
41+
// This Test board uses the E73-2G4M04S1B module which contains a nrf52832.
42+
// The module does not have reset circuitry.
43+
// The Test Board from Ebyte (E73-TBB) also does not have reset circuitry
44+
// To be able to upload using the Arduino IDE, (To enter DFU mode)
45+
// Press "SW1", momentarily ground "RST/P0.21", then release "SW1"
46+
#define BUTTON_2 13 // SW2 on board
47+
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
48+
49+
/*------------------------------------------------------------------*/
50+
/* UART (only used by nRF52832)
51+
*------------------------------------------------------------------*/
52+
#define RX_PIN_NUMBER 8
53+
#define TX_PIN_NUMBER 6
54+
#define CTS_PIN_NUMBER 5
55+
#define RTS_PIN_NUMBER 7
56+
#define HWFC false // leaving it false to make GPIO available
57+
58+
//--------------------------------------------------------------------+
59+
// BLE OTA
60+
//--------------------------------------------------------------------+
61+
#define BLEDIS_MANUFACTURER "CDEBYTE"
62+
#define BLEDIS_MODEL "E73-TBB"
63+
64+
#define UF2_PRODUCT_NAME "Ebyte E73-TBB nRF52832"
65+
#define UF2_INDEX_URL "https://www.ebyte.com/en/product-view-news.aspx?id=889"
66+
67+
#endif // _EBYTE_E73_TBB_H

src/boards/ebyte_e73_tbb/board.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# nrf52 is nrf52832
2+
MCU_SUB_VARIANT = nrf52

0 commit comments

Comments
 (0)