Skip to content

Commit fd1785e

Browse files
sudaconejoninja
authored andcommitted
Add Particle Xenon
1 parent 94ec082 commit fd1785e

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// +build particle_xenon
2+
3+
package machine
4+
5+
const HasLowFrequencyCrystal = true
6+
7+
// LEDs on the XENON
8+
const (
9+
LED Pin = 44
10+
LED_GREEN Pin = 14
11+
LED_RED Pin = 13
12+
LED_BLUE Pin = 15
13+
)
14+
15+
// UART pins
16+
const (
17+
UART_TX_PIN Pin = 6
18+
UART_RX_PIN Pin = 8
19+
)
20+
21+
// I2C pins
22+
const (
23+
SDA_PIN = 26
24+
SCL_PIN = 27
25+
)
26+
27+
// SPI pins
28+
const (
29+
SPI0_SCK_PIN = 47
30+
SPI0_MOSI_PIN = 45
31+
SPI0_MISO_PIN = 46
32+
)
33+
34+
// Other periferals
35+
const (
36+
MODE_BUTTON = 11
37+
CHARGE_STATUS = 41
38+
LIPO_VOLTAGE = 5
39+
PCB_ANTENNA = 24
40+
EXTERNAL_UFL = 25
41+
NFC1 = 9
42+
NFC2 = 10
43+
)

targets/particle-xenon.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"inherits": ["nrf52840_mdk"],
3+
"build-tags": ["particle_xenon"],
4+
"flash-method": "openocd",
5+
"openocd-interface": "cmsis-dap"
6+
}

0 commit comments

Comments
 (0)