updates to the xenon variant file

This commit is contained in:
Nishanth Samala committed 2019-08-20 12:44:18 -04:00
1 parent 6d5edf0af6
commit f92c0b7c14
3 files changed
+79 -26

No files matched your search

+53
View File
@@ -207,3 +207,56 @@ pca10056.menu.debug.l2=Level 2 (Full Debug)
pca10056.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2
pca10056.menu.debug.l3=Level 3 (Segger SystemView)
pca10056.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
# ----------------------------------
# Particle Xenon
# ----------------------------------
particle_xenon.name=Particle Xenon
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
particle_xenon.vid.0=0x239A
particle_xenon.pid.0=0x8029
particle_xenon.vid.1=0x239A
particle_xenon.pid.1=0x0029
particle_xenon.vid.2=0x239A
particle_xenon.pid.2=0x002A
particle_xenon.vid.3=0x239A
particle_xenon.pid.3=0x802A
# Upload
particle_xenon.bootloader.tool=bootburn
particle_xenon.upload.tool=nrfutil
particle_xenon.upload.protocol=nrfutil
particle_xenon.upload.use_1200bps_touch=true
particle_xenon.upload.wait_for_upload_port=true
particle_xenon.upload.maximum_size=815104
particle_xenon.upload.maximum_data_size=248832
# Build
particle_xenon.build.mcu=cortex-m4
particle_xenon.build.f_cpu=64000000
particle_xenon.build.board=PARTICLE_XENON
particle_xenon.build.core=nRF5
particle_xenon.build.variant=particle_xenon
particle_xenon.build.usb_manufacturer="Particle Industries"
particle_xenon.build.usb_product="Particle Xenon"
particle_xenon.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
particle_xenon.build.ldscript=nrf52840_s140_v6.ld
particle_xenon.build.vid=0x239A
particle_xenon.build.pid=0x8029
# SofDevice Menu
particle_xenon.menu.softdevice.s140v6=0.2.11 SoftDevice s140 6.1.1
particle_xenon.menu.softdevice.s140v6.build.sd_name=s140
particle_xenon.menu.softdevice.s140v6.build.sd_version=6.1.1
particle_xenon.menu.softdevice.s140v6.build.sd_fwid=0x00B6
# Debug Menu
particle_xenon.menu.debug.l0=Level 0 (Release)
particle_xenon.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0
particle_xenon.menu.debug.l1=Level 1 (Error Message)
particle_xenon.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1
particle_xenon.menu.debug.l2=Level 2 (Full Debug)
particle_xenon.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2
particle_xenon.menu.debug.l3=Level 3 (Segger SystemView)
particle_xenon.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
+22 -22
View File
@@ -27,30 +27,30 @@
const uint32_t g_ADigitalPinMap[] =
{
// D0 .. D8
26, // P0.26 (SDA)
27, // P0.27 (SCL)
33, // P1.01 (SDA1) (UART1_RTS) (SPI1_SCK) (PWM3)
34, // P1.02 (SCL1) (UART1_CTS) (SPI1_MOSI) (PWM3)
40, // P1.08 (UART2_TX) (SPI1_MISO) (PWM1)
42, // P1.10 (UART2_RX) (PWM1)
43, // P1.11 (UART2_CTS) (PWM1)
44, // P1.12 (PWM0)
35, // P1.03 (UART2_RTS)
_PINNUM(0, 26), // P0.26 (SDA)
_PINNUM(0, 27), // P0.27 (SCL)
_PINNUM(1, 1), // P1.01 (SDA1) (UART1_RTS) (SPI1_SCK) (PWM3)
_PINNUM(1, 2), // P1.02 (SCL1) (UART1_CTS) (SPI1_MOSI) (PWM3)
_PINNUM(1, 8), // P1.08 (UART2_TX) (SPI1_MISO) (PWM1)
_PINNUM(1, 10), // P1.10 (UART2_RX) (PWM1)
_PINNUM(1, 26), // P1.11 (UART2_CTS) (PWM1)
_PINNUM(1, 26), // P1.12 (PWM0)
_PINNUM(1, 26), // P1.03 (UART2_RTS)
// D9 .. D20
6, // P0.06 (UART1_TX)
8, // P0.27 (UART1_RX)
46, // P1.14 (SPI_MISO)
45, // P1.13 (SPI_MOSI)
47, // P1.15 (SPI_SCK)
31, // P0.31 (PWM3) (SPI_SS) (ADC5)
30, // P0.30 (PWM3) (ADC4)
29, // P0.29 (PWM2) (ADC3)
28, // P0.28 (PWM2) (ADC2)
4, // P0.04 (PWM2) (ADC1)
3, // P0.03 (PWM2) (ADC0)
11, // P0.11 (MODE)
18, // P0.18 (RESET)
_PINNUM(0, 6), // P0.06 (UART1_TX)
_PINNUM(0, 8), // P0.08 (UART1_RX)
_PINNUM(1, 14), // P1.14 (SPI_MISO)
_PINNUM(1, 13), // P1.13 (SPI_MOSI)
_PINNUM(1, 15), // P1.15 (SPI_SCK)
_PINNUM(0, 31), // P0.31 (PWM3) (SPI_SS) (ADC5)
_PINNUM(0, 30), // P0.30 (PWM3) (ADC4)
_PINNUM(0, 29), // P0.29 (PWM2) (ADC3)
_PINNUM(0, 28), // P0.28 (PWM2) (ADC2)
_PINNUM(0, 4), // P0.04 (PWM2) (ADC1)
_PINNUM(0, 3), // P0.03 (PWM2) (ADC0)
_PINNUM(0, 11), // P0.11 (MODE)
_PINNUM(0, 18), // P0.18 (RESET)
};
void initVariant()
+4 -4
View File
@@ -147,10 +147,10 @@ static const uint8_t A5 = PIN_A5 ;
* Serial interfaces
*/
// Serial
#define PIN_SERIAL_RX PIN_D9
#define PIN_SERIAL_TX PIN_D10
#define PIN_SERIAL2_RX PIN_D5
#define PIN_SERIAL2_TX PIN_D6
#define PIN_SERIAL_RX (10)
#define PIN_SERIAL_TX (9)
#define PIN_SERIAL2_RX (5)
#define PIN_SERIAL2_TX (6)
//#define HAVE_HWSERIAL2 true // TODO: implement UARTE in Uart.cpp
/*