Skip to content

Commit 8caedb8

Browse files
committed
add AdafruitBleUartFriend board
1 parent 5c22636 commit 8caedb8

File tree

4 files changed

+181
-0
lines changed

4 files changed

+181
-0
lines changed

boards.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,52 @@ Generic_nRF51822.menu.lfclk.lfrc.build.lfclk_flags=-DUSE_LFRC
442442
Generic_nRF51822.menu.lfclk.lfsynt=Synthesized
443443
Generic_nRF51822.menu.lfclk.lfsynt.build.lfclk_flags=-DUSE_LFSYNT
444444

445+
446+
AdafruitBleUartFriend.name=Adafruit BLE UART Friend
447+
448+
AdafruitBleUartFriend.upload.tool=sandeepmistry:openocd
449+
AdafruitBleUartFriend.upload.target=nrf51
450+
AdafruitBleUartFriend.upload.maximum_size=262144
451+
452+
AdafruitBleUartFriend.bootloader.tool=sandeepmistry:openocd
453+
454+
AdafruitBleUartFriend.build.mcu=cortex-m0
455+
AdafruitBleUartFriend.build.f_cpu=16000000
456+
AdafruitBleUartFriend.build.board=ADAFRUIT_BLE_UART_FRIEND
457+
AdafruitBleUartFriend.build.core=nRF5
458+
AdafruitBleUartFriend.build.variant=AdafruitBleUartFriend
459+
AdafruitBleUartFriend.build.variant_system_lib=
460+
AdafruitBleUartFriend.build.extra_flags=-DNRF51
461+
AdafruitBleUartFriend.build.float_flags=
462+
AdafruitBleUartFriend.build.chip=xxac
463+
AdafruitBleUartFriend.build.ldscript=nrf51_{build.chip}.ld
464+
465+
AdafruitBleUartFriend.menu.softdevice.none=None
466+
AdafruitBleUartFriend.menu.softdevice.none.softdevice=none
467+
AdafruitBleUartFriend.menu.softdevice.none.softdeviceversion=
468+
469+
AdafruitBleUartFriend.menu.softdevice.s110=S110
470+
AdafruitBleUartFriend.menu.softdevice.s110.softdevice=s110
471+
AdafruitBleUartFriend.menu.softdevice.s110.softdeviceversion=8.0.0
472+
AdafruitBleUartFriend.menu.softdevice.s110.upload.maximum_size=151552
473+
AdafruitBleUartFriend.menu.softdevice.s110.build.extra_flags=-DNRF51 -DS110 -DNRF51_S110
474+
AdafruitBleUartFriend.menu.softdevice.s110.build.ldscript=armgcc_s110_nrf51822_{build.chip}.ld
475+
476+
AdafruitBleUartFriend.menu.softdevice.s130=S130
477+
AdafruitBleUartFriend.menu.softdevice.s130.softdevice=s130
478+
AdafruitBleUartFriend.menu.softdevice.s130.softdeviceversion=2.0.1
479+
AdafruitBleUartFriend.menu.softdevice.s130.upload.maximum_size=151552
480+
AdafruitBleUartFriend.menu.softdevice.s130.build.extra_flags=-DNRF51 -DS130 -DNRF51_S130
481+
AdafruitBleUartFriend.menu.softdevice.s130.build.ldscript=armgcc_s130_nrf51822_{build.chip}.ld
482+
483+
AdafruitBleUartFriend.menu.lfclk.lfxo=Crystal Oscillator
484+
AdafruitBleUartFriend.menu.lfclk.lfxo.build.lfclk_flags=-DUSE_LFXO
485+
AdafruitBleUartFriend.menu.lfclk.lfrc=RC Oscillator
486+
AdafruitBleUartFriend.menu.lfclk.lfrc.build.lfclk_flags=-DUSE_LFRC
487+
AdafruitBleUartFriend.menu.lfclk.lfsynt=Synthesized
488+
AdafruitBleUartFriend.menu.lfclk.lfsynt.build.lfclk_flags=-DUSE_LFSYNT
489+
490+
445491
BBCmicrobit.name=BBC micro:bit
446492

447493
BBCmicrobit.vid.0=0x0d28
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
3+
This library is free software; you can redistribute it and/or
4+
modify it under the terms of the GNU Lesser General Public
5+
License as published by the Free Software Foundation; either
6+
version 2.1 of the License, or (at your option) any later version.
7+
This library is distributed in the hope that it will be useful,
8+
but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10+
See the GNU Lesser General Public License for more details.
11+
You should have received a copy of the GNU Lesser General Public
12+
License along with this library; if not, write to the Free Software
13+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
14+
*/
15+
16+
// API compatibility
17+
#include "variant.h"
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
3+
Copyright (c) 2016 Sandeep Mistry All right reserved.
4+
Copyright (c) 2016 Frank Holtz. All right reserved.
5+
6+
This library is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU Lesser General Public
8+
License as published by the Free Software Foundation; either
9+
version 2.1 of the License, or (at your option) any later version.
10+
11+
This library is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
See the GNU Lesser General Public License for more details.
15+
16+
You should have received a copy of the GNU Lesser General Public
17+
License along with this library; if not, write to the Free Software
18+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*/
20+
21+
#include "variant.h"
22+
23+
const uint32_t g_ADigitalPinMap[] = {
24+
0,
25+
1,
26+
2,
27+
3,
28+
4,
29+
5,
30+
6,
31+
7,
32+
8,
33+
9,
34+
10,
35+
11,
36+
12,
37+
13,
38+
14,
39+
15,
40+
16,
41+
17,
42+
18,
43+
19,
44+
20,
45+
21,
46+
22,
47+
23,
48+
24,
49+
25,
50+
26,
51+
27,
52+
28,
53+
29,
54+
30,
55+
31,
56+
};
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
3+
Copyright (c) 2016 Sandeep Mistry All right reserved.
4+
Copyright (c) 2016 Frank Holtz. All right reserved.
5+
6+
This library is free software; you can redistribute it and/or
7+
modify it under the terms of the GNU Lesser General Public
8+
License as published by the Free Software Foundation; either
9+
version 2.1 of the License, or (at your option) any later version.
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13+
See the GNU Lesser General Public License for more details.
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
#ifndef _VARIANT_ADAFRUIT_BLE_UART_FRIEND_
20+
#define _VARIANT_ADAFRUIT_BLE_UART_FRIEND_
21+
22+
/** Master clock frequency */
23+
#define VARIANT_MCK (16000000ul)
24+
25+
/*----------------------------------------------------------------------------
26+
* Headers
27+
*----------------------------------------------------------------------------*/
28+
29+
#include "WVariant.h"
30+
31+
#ifdef __cplusplus
32+
extern "C"
33+
{
34+
#endif // __cplusplus
35+
36+
#define PINS_COUNT (8u)
37+
#define NUM_DIGITAL_PINS (8u)
38+
#define NUM_ANALOG_INPUTS (0u)
39+
#define NUM_ANALOG_OUTPUTS (0u)
40+
41+
// LEDs
42+
#define PIN_LED1 (19)
43+
#define PIN_LED2 (18)
44+
#define LED_BUILTIN PIN_LED1
45+
46+
// Other digital pins
47+
#define PIN_DFU (7)
48+
#define PIN_MODE (1)
49+
50+
/*
51+
* Serial interfaces
52+
*/
53+
#define PIN_SERIAL_RX (11)
54+
#define PIN_SERIAL_CTS (10)
55+
#define PIN_SERIAL_TX (9)
56+
#define PIN_SERIAL_RTS (8)
57+
58+
#ifdef __cplusplus
59+
}
60+
#endif
61+
62+
#endif

0 commit comments

Comments
 (0)