rename feather52 to feather52832
This commit is contained in:
1 parent
e8dc344996
commit
41b1cdeb97
13 files changed
+11062
-254
No files matched your search
File renamed without changes.
File renamed without changes.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
+26
-28
@@ -22,43 +22,42 @@ menu.debug=Debug Mode
|
||||
#**********************************************
|
||||
# Feather nrf52832 (nrf52) Board
|
||||
#**********************************************
|
||||
feather52.name=Adafruit Bluefruit nRF52 Feather
|
||||
feather52.bootloader.tool=bootburn
|
||||
feather52832.name=Adafruit Bluefruit nRF52832 Feather
|
||||
feather52832.bootloader.tool=bootburn
|
||||
|
||||
# Upload
|
||||
feather52.upload.tool=nrfutil
|
||||
feather52.upload.protocol=nrfutil
|
||||
feather52832.upload.tool=nrfutil
|
||||
feather52832.upload.protocol=nrfutil
|
||||
|
||||
# Build
|
||||
feather52.build.mcu=cortex-m4
|
||||
feather52.build.f_cpu=64000000
|
||||
feather52.build.board=NRF52_FEATHER
|
||||
feather52.build.core=nRF5
|
||||
feather52.build.variant=feather52
|
||||
feather52.build.extra_flags=-DNRF52832_XXAA -DNRF52
|
||||
feather52832.build.mcu=cortex-m4
|
||||
feather52832.build.f_cpu=64000000
|
||||
feather52832.build.board=NRF52_FEATHER
|
||||
feather52832.build.core=nRF5
|
||||
feather52832.build.variant=feather52832
|
||||
feather52832.build.extra_flags=-DNRF52832_XXAA -DNRF52
|
||||
|
||||
# SofDevice Menu
|
||||
# Ram & ROM size varies depending on SoftDevice (check linker script)
|
||||
|
||||
feather52.menu.softdevice.s132v6=v6.0.0, S132 6.0.0
|
||||
feather52.menu.softdevice.s132v6.build.sd_flags=-DS132 -DSD_VER=600
|
||||
feather52.menu.softdevice.s132v6.build.sd_name=s132
|
||||
feather52.menu.softdevice.s132v6.build.sd_version=6.0.0
|
||||
feather52.menu.softdevice.s132v6.build.sd_fwid=0x00A8
|
||||
feather52.menu.softdevice.s132v6.build.ldscript=nrf52832_s132_6.0.0.ld
|
||||
feather52.menu.softdevice.s132v6.build.bootfile=feather52_bootloader_6.0.0_s132
|
||||
feather52.menu.softdevice.s132v6.upload.maximum_size=290816
|
||||
feather52.menu.softdevice.s132v6.upload.maximum_data_size=51072
|
||||
feather52832.menu.softdevice.s132v6=v6.0.0, S132 6.0.0
|
||||
feather52832.menu.softdevice.s132v6.build.sd_flags=-DS132 -DSD_VER=600
|
||||
feather52832.menu.softdevice.s132v6.build.sd_name=s132
|
||||
feather52832.menu.softdevice.s132v6.build.sd_version=6.0.0
|
||||
feather52832.menu.softdevice.s132v6.build.sd_fwid=0x00A8
|
||||
feather52832.menu.softdevice.s132v6.build.ldscript=nrf52832_s132_6.0.0.ld
|
||||
feather52832.menu.softdevice.s132v6.upload.maximum_size=290816
|
||||
feather52832.menu.softdevice.s132v6.upload.maximum_data_size=51072
|
||||
|
||||
# Debug Menu
|
||||
feather52.menu.debug.l0=Level 0 (Release)
|
||||
feather52.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 -Os
|
||||
feather52.menu.debug.l1=Level 1 (Error Message)
|
||||
feather52.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 -Os
|
||||
feather52.menu.debug.l2=Level 2 (Full Debug)
|
||||
feather52.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 -Os
|
||||
feather52.menu.debug.l3=Level 3 (Segger SystemView)
|
||||
feather52.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -Os
|
||||
feather52832.menu.debug.l0=Level 0 (Release)
|
||||
feather52832.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0 -Os
|
||||
feather52832.menu.debug.l1=Level 1 (Error Message)
|
||||
feather52832.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1 -Os
|
||||
feather52832.menu.debug.l2=Level 2 (Full Debug)
|
||||
feather52832.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2 -Os
|
||||
feather52832.menu.debug.l3=Level 3 (Segger SystemView)
|
||||
feather52832.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3 -Os
|
||||
|
||||
|
||||
|
||||
@@ -98,7 +97,6 @@ feather52840.menu.softdevice.s140v6.build.sd_name=s140
|
||||
feather52840.menu.softdevice.s140v6.build.sd_version=6.0.0
|
||||
feather52840.menu.softdevice.s140v6.build.sd_fwid=0x00A9
|
||||
feather52840.menu.softdevice.s140v6.build.ldscript=nrf52840_s140_6.0.0.ld
|
||||
feather52840.menu.softdevice.s140v6.build.bootfile=feather52840_bootloader_6.0.0_s140
|
||||
feather52840.menu.softdevice.s140v6.upload.maximum_size=303104
|
||||
feather52840.menu.softdevice.s140v6.upload.maximum_data_size=51072
|
||||
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
#**********************************************
|
||||
# Jlink with nrfjprog to burn bootloader
|
||||
#**********************************************
|
||||
|
||||
nrfjprog.name=J-Link for Bluefruit nRF52
|
||||
nrfjprog.program.tool=bootburn
|
||||
#nrfjprog.program.path={runtime.tools.nrfjprog.path}/
|
||||
@@ -8,7 +9,7 @@ nrfjprog.program.path=
|
||||
nrfjprog.program.cmd=nrfjprog
|
||||
nrfjprog.program.cmd.windows=nrfjprog.exe
|
||||
|
||||
nrfjprog.program.pattern="{program.path}{program.cmd}" --program "{runtime.platform.path}/bin/bootloader/{build.variant}/{build.sd_version}/{build.bootfile}.hex" -f nrf52 --chiperase --reset
|
||||
nrfjprog.program.pattern="{program.path}{program.cmd}" --program "{runtime.platform.path}/bin/bootloader/{build.variant}/{build.sd_version}/{build.variant}_bootloader_{build.sd_version}_{build.sd_name}.hex" -f nrf52 --chiperase --reset
|
||||
|
||||
#**********************************************
|
||||
# nrfutil to upgrade bootloader
|
||||
@@ -20,4 +21,4 @@ nrfutil_boot.program.cmd=nrfutil
|
||||
nrfutil_boot.program.cmd.windows={runtime.platform.path}/tools/nrfutil-0.5.2/binaries/win32/nrfutil.exe
|
||||
nrfutil_boot.program.cmd.macosx=/usr/local/bin/nrfutil
|
||||
|
||||
nrfutil_boot.program.pattern={program.cmd} --verbose dfu serial -pkg "{runtime.platform.path}/bin/bootloader/{build.variant}/{build.sd_version}/{build.bootfile}.zip" -p {serial.port} -b 115200
|
||||
nrfutil_boot.program.pattern={program.cmd} --verbose dfu serial -pkg "{runtime.platform.path}/bin/bootloader/{build.variant}/{build.sd_version}/{build.variant}_bootloader_{build.sd_version}_{build.sd_name}.zip" -p {serial.port} -b 115200
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -18,7 +18,8 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "variant.h"
|
||||
#include "../feather52832/variant.h"
|
||||
|
||||
#include "wiring_constants.h"
|
||||
#include "wiring_digital.h"
|
||||
#include "nrf.h"
|
||||
File renamed without changes.
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
|
||||
Copyright (c) 2016 Sandeep Mistry All right reserved.
|
||||
Copyright (c) 2017, Adafruit Industries (adafruit.com)
|
||||
|
||||
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"
|
||||
#include "wiring_constants.h"
|
||||
#include "wiring_digital.h"
|
||||
#include "nrf.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
|
||||
};
|
||||
|
||||
|
||||
void initVariant()
|
||||
{
|
||||
// LED1 & LED2
|
||||
pinMode(PIN_LED1, OUTPUT);
|
||||
ledOff(PIN_LED1);
|
||||
|
||||
pinMode(PIN_LED2, OUTPUT);
|
||||
ledOff(PIN_LED2);
|
||||
}
|
||||
|
||||
@@ -1,179 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2014-2015 Arduino LLC. All right reserved.
|
||||
Copyright (c) 2016 Sandeep Mistry All right reserved.
|
||||
Copyright (c) 2017, Adafruit Industries (adafruit.com)
|
||||
|
||||
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_METRO52_
|
||||
#define _VARIANT_METRO52_
|
||||
|
||||
/** 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 (6u)
|
||||
#define NUM_ANALOG_OUTPUTS (0u)
|
||||
|
||||
/*
|
||||
* Digital Pins
|
||||
*/
|
||||
#define PIN_D0 (23)
|
||||
#define PIN_D1 (8)
|
||||
#define PIN_D2 (24)
|
||||
#define PIN_D3 (20)
|
||||
#define PIN_D4 (19)
|
||||
#define PIN_D5 (17)
|
||||
#define PIN_D6 (16)
|
||||
#define PIN_D7 (15)
|
||||
#define PIN_D8 (14)
|
||||
#define PIN_D9 (13)
|
||||
#define PIN_D10 (12)
|
||||
#define PIN_D11 (11)
|
||||
#define PIN_D12 (28)
|
||||
#define PIN_D13 (29)
|
||||
|
||||
#define D0 PIN_D0
|
||||
#define D1 PIN_D1
|
||||
#define D2 PIN_D2
|
||||
#define D3 PIN_D3
|
||||
#define D4 PIN_D4
|
||||
#define D5 PIN_D5
|
||||
#define D6 PIN_D6
|
||||
#define D7 PIN_D7
|
||||
#define D8 PIN_D8
|
||||
#define D9 PIN_D9
|
||||
#define D10 PIN_D10
|
||||
#define D11 PIN_D11
|
||||
#define D12 PIN_D12
|
||||
#define D13 PIN_D13
|
||||
|
||||
/*
|
||||
* LEDs
|
||||
*/
|
||||
#define PIN_LED1 PIN_D13
|
||||
#define PIN_LED2 (22)
|
||||
|
||||
#define LED_BUILTIN PIN_LED1
|
||||
#define LED_CONN PIN_LED2
|
||||
|
||||
#define LED_RED PIN_LED1
|
||||
#define LED_BLUE PIN_LED2
|
||||
|
||||
#define LED_STATE_ON 1 // State when LED is litted
|
||||
|
||||
// Buttons
|
||||
/*
|
||||
#define PIN_BUTTON1 (2)
|
||||
#define PIN_BUTTON2 (3)
|
||||
#define PIN_BUTTON3 (4)
|
||||
#define PIN_BUTTON4 (5)
|
||||
*/
|
||||
|
||||
/*
|
||||
* Analog pins
|
||||
*/
|
||||
#define PIN_A0 (30)
|
||||
#define PIN_A1 (31)
|
||||
#define PIN_A2 (2)
|
||||
#define PIN_A3 (3)
|
||||
#define PIN_A4 (4)
|
||||
#define PIN_A5 (5)
|
||||
|
||||
#define PIN_A6 (-1)
|
||||
#define PIN_A7 (-1)
|
||||
|
||||
static const uint8_t A0 = PIN_A0 ;
|
||||
static const uint8_t A1 = PIN_A1 ;
|
||||
static const uint8_t A2 = PIN_A2 ;
|
||||
static const uint8_t A3 = PIN_A3 ;
|
||||
static const uint8_t A4 = PIN_A4 ;
|
||||
static const uint8_t A5 = PIN_A5 ;
|
||||
//static const uint8_t A6 = PIN_A6 ;
|
||||
//static const uint8_t A7 = PIN_A7 ;
|
||||
#define ADC_RESOLUTION 14
|
||||
|
||||
// Other pins
|
||||
#define PIN_AREF (-1)
|
||||
#define PIN_DFU (22) // Mux with LED2
|
||||
#define PIN_NFC1 (9)
|
||||
#define PIN_NFC2 (10)
|
||||
|
||||
static const uint8_t AREF = PIN_AREF;
|
||||
|
||||
/*
|
||||
* Serial interfaces
|
||||
*/
|
||||
// Serial
|
||||
#define PIN_SERIAL_RX PIN_D0
|
||||
#define PIN_SERIAL_TX PIN_D1
|
||||
|
||||
/*
|
||||
* SPI Interfaces
|
||||
*/
|
||||
#define SPI_INTERFACES_COUNT 1
|
||||
|
||||
#define PIN_SPI_MISO (27)
|
||||
#define PIN_SPI_MOSI (25)
|
||||
#define PIN_SPI_SCK (26)
|
||||
|
||||
static const uint8_t SS = 18 ;
|
||||
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 (6)
|
||||
#define PIN_WIRE_SCL (7)
|
||||
|
||||
static inline bool isPinValid(uint32_t pin)
|
||||
{
|
||||
// 0, 1 is xtal
|
||||
if (pin >= PINS_COUNT) return false;
|
||||
|
||||
const uint8_t forbid[] = { 0, 1, };
|
||||
for(uint8_t i=0; i<sizeof(forbid); i++)
|
||||
{
|
||||
if ( pin == forbid[i] ) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Arduino objects - C++ only
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user