Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-nRF5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-nRF5
Commits
dd9a92d5
Unverified
Commit
dd9a92d5
authored
Jan 18, 2019
by
dlabun
Committed by
GitHub
Jan 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #334 from Pathak94/hackaBLE_v2-variant
add hackaBLE_v2
parents
a3ac43fc
2ad8006a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
226 additions
and
0 deletions
+226
-0
.travis.yml
.travis.yml
+1
-0
README.md
README.md
+1
-0
boards.txt
boards.txt
+36
-0
variants/hackaBLE_v2/pins_arduino.h
variants/hackaBLE_v2/pins_arduino.h
+17
-0
variants/hackaBLE_v2/variant.cpp
variants/hackaBLE_v2/variant.cpp
+56
-0
variants/hackaBLE_v2/variant.h
variants/hackaBLE_v2/variant.h
+115
-0
No files found.
.travis.yml
View file @
dd9a92d5
...
@@ -37,6 +37,7 @@ script:
...
@@ -37,6 +37,7 @@ script:
-
buildExampleSketch sandeepmistry:nRF5:TinyBLE 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:TinyBLE 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:bluey 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:bluey 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:hackaBLE 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:hackaBLE 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:hackaBLE_v2 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:Sinobit 01.Basics BareMinimum
-
buildExampleSketch sandeepmistry:nRF5:Sinobit 01.Basics BareMinimum
-
buildExampleSketch sandeepmistry:nRF5:DWM1001-DEV 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:DWM1001-DEV 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:SeeedArchLink 01.Basics Blink
-
buildExampleSketch sandeepmistry:nRF5:SeeedArchLink 01.Basics Blink
README.md
View file @
dd9a92d5
...
@@ -90,6 +90,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
...
@@ -90,6 +90,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
*
[
RedBear Nano 2
](
https://github.com/redbear/nRF5x#ble-nano-2
)
*
[
RedBear Nano 2
](
https://github.com/redbear/nRF5x#ble-nano-2
)
*
[
Bluey
](
https://github.com/electronut/ElectronutLabs-bluey
)
*
[
Bluey
](
https://github.com/electronut/ElectronutLabs-bluey
)
*
[
hackaBLE
](
https://github.com/electronut/ElectronutLabs-hackaBLE
)
*
[
hackaBLE
](
https://github.com/electronut/ElectronutLabs-hackaBLE
)
*
[
hackaBLE_v2
](
https://github.com/electronut/ElectronutLabs-hackaBLE
)
*
[
DWM1001-DEV
](
https://www.decawave.com/product/dwm1001-development-board/
)
*
[
DWM1001-DEV
](
https://www.decawave.com/product/dwm1001-development-board/
)
### nRF51
### nRF51
...
...
boards.txt
View file @
dd9a92d5
...
@@ -137,6 +137,42 @@ hackaBLE.menu.lfclk.lfsynt=Synthesized
...
@@ -137,6 +137,42 @@ hackaBLE.menu.lfclk.lfsynt=Synthesized
hackaBLE.menu.lfclk.lfsynt.build.lfclk_flags=-DUSE_LFSYNT
hackaBLE.menu.lfclk.lfsynt.build.lfclk_flags=-DUSE_LFSYNT
hackaBLE_v2.name=Electronut labs hackaBLE_v2
hackaBLE_v2.upload.tool=sandeepmistry:openocd
hackaBLE_v2.upload.target=nrf52
hackaBLE_v2.upload.maximum_size=524288
hackaBLE_v2.bootloader.tool=sandeepmistry:openocd
hackaBLE_v2.build.mcu=cortex-m4
hackaBLE_v2.build.f_cpu=16000000
hackaBLE_v2.build.board=ELECTRONUT_hackaBLE_v2
hackaBLE_v2.build.core=nRF5
hackaBLE_v2.build.variant=hackaBLE_v2
hackaBLE_v2.build.variant_system_lib=
hackaBLE_v2.build.extra_flags=-DNRF52
hackaBLE_v2.build.float_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16
hackaBLE_v2.build.ldscript=nrf52_xxaa.ld
hackaBLE_v2.menu.softdevice.none=None
hackaBLE_v2.menu.softdevice.none.softdevice=none
hackaBLE_v2.menu.softdevice.none.softdeviceversion=
hackaBLE_v2.menu.softdevice.s132=S132
hackaBLE_v2.menu.softdevice.s132.softdevice=s132
hackaBLE_v2.menu.softdevice.s132.softdeviceversion=2.0.1
hackaBLE_v2.menu.softdevice.s132.upload.maximum_size=409600
hackaBLE_v2.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132
hackaBLE_v2.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld
hackaBLE_v2.menu.lfclk.lfxo=Crystal Oscillator
hackaBLE_v2.menu.lfclk.lfxo.build.lfclk_flags=-DUSE_LFXO
hackaBLE_v2.menu.lfclk.lfrc=RC Oscillator
hackaBLE_v2.menu.lfclk.lfrc.build.lfclk_flags=-DUSE_LFRC
hackaBLE_v2.menu.lfclk.lfsynt=Synthesized
hackaBLE_v2.menu.lfclk.lfsynt.build.lfclk_flags=-DUSE_LFSYNT
Blend2.name=RedBear Blend 2
Blend2.name=RedBear Blend 2
Blend2.vid.0=0x0204
Blend2.vid.0=0x0204
...
...
variants/hackaBLE_v2/pins_arduino.h
0 → 100644
View file @
dd9a92d5
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// API compatibility
#include "variant.h"
variants/hackaBLE_v2/variant.cpp
0 → 100644
View file @
dd9a92d5
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
Copyright (c) 2016 Sandeep Mistry All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "variant.h"
const
uint32_t
g_ADigitalPinMap
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
};
variants/hackaBLE_v2/variant.h
0 → 100644
View file @
dd9a92d5
/*
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
Copyright (c) 2016 Sandeep Mistry All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _VARIANT_ELECTRONUT_HACKABLE_V2_
#define _VARIANT_ELECTRONUT_HACKABLE_V2_
/** Master clock frequency */
#define VARIANT_MCK (64000000ul)
/*----------------------------------------------------------------------------
* Headers
*----------------------------------------------------------------------------*/
#include "WVariant.h"
#ifdef __cplusplus
extern
"C"
{
#endif // __cplusplus
// Number of pins defined in PinDescription array
#define PINS_COUNT (32u)
#define NUM_DIGITAL_PINS (32u)
#define NUM_ANALOG_INPUTS (8u)
#define NUM_ANALOG_OUTPUTS (0u)
// LEDs
#define PIN_LEDR (19)
#define PIN_LEDG (20)
#define PIN_LEDB (17)
#define LED_BUILTIN PIN_LEDB
/*
* Analog pins
*/
#define PIN_A0 (2)
#define PIN_A1 (3)
#define PIN_A2 (4)
#define PIN_A3 (5)
#define PIN_A4 (28)
#define PIN_A5 (29)
#define PIN_A6 (30)
#define PIN_A7 (31)
static
const
uint8_t
A0
=
PIN_A0
;
// AIN0 / AREF / P0.02
static
const
uint8_t
A1
=
PIN_A1
;
// AIN1
static
const
uint8_t
A2
=
PIN_A2
;
// AIN2
static
const
uint8_t
A3
=
PIN_A3
;
// AIN3
static
const
uint8_t
A4
=
PIN_A4
;
// AIN4
static
const
uint8_t
A5
=
PIN_A5
;
// AIN5
static
const
uint8_t
A6
=
PIN_A6
;
// AIN6
static
const
uint8_t
A7
=
PIN_A7
;
// AIN7
#define ADC_RESOLUTION 10
// Other pins
#define PIN_AREF (PIN_A0)
static
const
uint8_t
AREF
=
PIN_AREF
;
/*
* Serial interfaces
*/
// Serial
#define PIN_SERIAL_RX (7)
#define PIN_SERIAL_TX (8)
/*
* SPI Interfaces
*/
#define SPI_INTERFACES_COUNT 1
#define PIN_SPI_MISO (11)
#define PIN_SPI_MOSI (12)
#define PIN_SPI_SCK (13)
#define PIN_SPI_SS (14)
static
const
uint8_t
SS
=
PIN_SPI_SS
;
static
const
uint8_t
MOSI
=
PIN_SPI_MOSI
;
static
const
uint8_t
MISO
=
PIN_SPI_MISO
;
static
const
uint8_t
SCK
=
PIN_SPI_SCK
;
/*
* Wire Interfaces
*/
#define WIRE_INTERFACES_COUNT 1
#define PIN_WIRE_SDA (2)
#define PIN_WIRE_SCL (3)
/*
* Reset Button at P0.21
*/
#define RESET_PIN 21
#ifdef __cplusplus
}
#endif
/*----------------------------------------------------------------------------
* Arduino objects - C++ only
*----------------------------------------------------------------------------*/
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment