File tree Expand file tree Collapse file tree 7 files changed +180
-9
lines changed Expand file tree Collapse file tree 7 files changed +180
-9
lines changed Original file line number Diff line number Diff line change 1+ // +build particle_argon
2+
3+ package machine
4+
5+ const HasLowFrequencyCrystal = true
6+
7+ // More info: https://docs.particle.io/datasheets/wi-fi/argon-datasheet/
8+ // Board diagram: https://docs.particle.io/assets/images/xenon/xenon-block-diagram.png
9+
10+ // LEDs
11+ const (
12+ LED Pin = 44
13+ LED_GREEN Pin = 14
14+ LED_RED Pin = 13
15+ LED_BLUE Pin = 15
16+ )
17+
18+ // UART pins
19+ const (
20+ UART_TX_PIN Pin = 6
21+ UART_RX_PIN Pin = 8
22+ )
23+
24+ // I2C pins
25+ const (
26+ SDA_PIN Pin = 26
27+ SCL_PIN Pin = 27
28+ )
29+
30+ // SPI pins
31+ const (
32+ SPI0_SCK_PIN Pin = 47
33+ SPI0_MOSI_PIN Pin = 45
34+ SPI0_MISO_PIN Pin = 46
35+ )
36+
37+ // Internal 4MB SPI Flash
38+ const (
39+ SPI1_SCK_PIN Pin = 19
40+ SPI1_MOSI_PIN Pin = 20
41+ SPI1_MISO_PIN Pin = 21
42+ SPI1_CS_PIN Pin = 17
43+ SPI1_WP_PIN Pin = 22
44+ SPI1_HOLD_PIN Pin = 23
45+ )
46+
47+ // ESP32 coprocessor
48+ const (
49+ ESP32_TXD_PIN Pin = 36
50+ ESP32_RXD_PIN Pin = 37
51+ ESP32_CTS_PIN Pin = 39
52+ ESP32_RTS_PIN Pin = 38
53+ ESP32_BOOT_MODE_PIN Pin = 16
54+ ESP32_WIFI_EN_PIN Pin = 24
55+ ESP32_HOST_WK_PIN Pin = 7
56+ )
57+
58+ // Other periferals
59+ const (
60+ MODE_BUTTON_PIN Pin = 11
61+ CHARGE_STATUS_PIN Pin = 41
62+ LIPO_VOLTAGE_PIN Pin = 5
63+ PCB_ANTENNA_PIN Pin = 2
64+ EXTERNAL_UFL_PIN Pin = 25
65+ NFC1_PIN Pin = 9
66+ NFC2_PIN Pin = 10
67+ )
Original file line number Diff line number Diff line change 1+ // +build particle_boron
2+
3+ package machine
4+
5+ const HasLowFrequencyCrystal = true
6+
7+ // More info: https://docs.particle.io/datasheets/cellular/boron-datasheet/
8+ // Board diagram: https://docs.particle.io/assets/images/xenon/xenon-block-diagram.png
9+
10+ // LEDs
11+ const (
12+ LED Pin = 44
13+ LED_GREEN Pin = 14
14+ LED_RED Pin = 13
15+ LED_BLUE Pin = 15
16+ )
17+
18+ // UART pins
19+ const (
20+ UART_TX_PIN Pin = 6
21+ UART_RX_PIN Pin = 8
22+ )
23+
24+ // I2C pins
25+ const (
26+ SDA_PIN = 26
27+ SCL_PIN = 27
28+
29+ // Internal I2C with MAX17043 and BQ24195 chips on it
30+ SDA1_PIN = 24
31+ SCL1_PIN = 41
32+ INT1_PIN = 5
33+ )
34+
35+ // SPI pins
36+ const (
37+ SPI0_SCK_PIN = 47
38+ SPI0_MOSI_PIN = 45
39+ SPI0_MISO_PIN = 46
40+ )
41+
42+ // Internal 4MB SPI Flash
43+ const (
44+ SPI1_SCK_PIN = 19
45+ SPI1_MOSI_PIN = 20
46+ SPI1_MISO_PIN = 21
47+ SPI1_CS_PIN = 17
48+ SPI1_WP_PIN = 22
49+ SPI1_HOLD_PIN = 23
50+ )
51+
52+ // u-blox coprocessor
53+ const (
54+ UBLOX_TXD_PIN = 37
55+ UBLOX_RXD_PIN = 36
56+ UBLOX_CTS_PIN = 38
57+ UBLOX_RTS_PIN = 39
58+ UBLOX_RESET_PIN = 16
59+ UBLOX_POWER_ON_PIN = 24
60+ UBLOX_BUFF_EN_PIN = 25
61+ UBLOX_VINT_PIN = 2
62+ )
63+
64+ // Other periferals
65+ const (
66+ MODE_BUTTON_PIN = 11
67+ CHARGE_STATUS_PIN = 41
68+ LIPO_VOLTAGE_PIN = 5
69+ PCB_ANTENNA_PIN = 2
70+ EXTERNAL_UFL_PIN = 25
71+ NFC1_PIN = 9
72+ NFC2_PIN = 10
73+ )
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ package machine
44
55const HasLowFrequencyCrystal = true
66
7- // LEDs on the XENON
7+ // More info: https://docs.particle.io/datasheets/discontinued/xenon-datasheet/
8+ // Board diagram: https://docs.particle.io/assets/images/xenon/xenon-block-diagram.png
9+
10+ // LEDs
811const (
912 LED Pin = 44
1013 LED_GREEN Pin = 14
@@ -31,13 +34,23 @@ const (
3134 SPI0_MISO_PIN = 46
3235)
3336
37+ // Internal 4MB SPI Flash
38+ const (
39+ SPI1_SCK_PIN = 19
40+ SPI1_MOSI_PIN = 20
41+ SPI1_MISO_PIN = 21
42+ SPI1_CS_PIN = 17
43+ SPI1_WP_PIN = 22
44+ SPI1_HOLD_PIN = 23
45+ )
46+
3447// Other periferals
3548const (
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
49+ MODE_BUTTON_PIN = 11
50+ CHARGE_STATUS_PIN = 41
51+ LIPO_VOLTAGE_PIN = 5
52+ PCB_ANTENNA_PIN = 24
53+ EXTERNAL_UFL_PIN = 25
54+ NFC1_PIN = 9
55+ NFC2_PIN = 10
4356)
Original file line number Diff line number Diff line change 1+ {
2+ "inherits" : [" nrf52840" ],
3+ "build-tags" : [" particle_3rd_gen" ],
4+ "flash-method" : " openocd" ,
5+ "openocd-interface" : " cmsis-dap"
6+ }
Original file line number Diff line number Diff line change 1+ {
2+ "inherits" : [" particle-3rd-gen" ],
3+ "build-tags" : [" particle_argon" ],
4+ "flash-method" : " openocd" ,
5+ "openocd-interface" : " cmsis-dap"
6+ }
Original file line number Diff line number Diff line change 1+ {
2+ "inherits" : [" particle-3rd-gen" ],
3+ "build-tags" : [" particle_boron" ],
4+ "flash-method" : " openocd" ,
5+ "openocd-interface" : " cmsis-dap"
6+ }
Original file line number Diff line number Diff line change 11{
2- "inherits" : [" nrf52840_mdk " ],
2+ "inherits" : [" particle-3rd-gen " ],
33 "build-tags" : [" particle_xenon" ],
44 "flash-method" : " openocd" ,
55 "openocd-interface" : " cmsis-dap"
You can’t perform that action at this time.
0 commit comments