Variant update for Adafruit nRF52 NINA_B302_UBLOX

This commit is contained in:
Khoi Hoang
2021-04-16 12:26:06 -04:00
committed by GitHub
parent 88cf4f3056
commit c53ae409aa
6 changed files with 138 additions and 234 deletions

View File

@@ -27,74 +27,53 @@
const uint32_t g_ADigitalPinMap[] = const uint32_t g_ADigitalPinMap[] =
{ {
// D0 .. D13 // D0 .. D13
29, // D0 is P0.29 (UART TX) 29, // D0 is P0.29 (UART TX)
45, // D1 is P1.13 (UART RX 45, // D1 is P1.13 (UART RX
44, // D2 is P1.12 (NFC2) 44, // D2 is P1.12 (NFC2)
31, // D3 is P0.31 (LED1) 31, // D3 is P0.31 (LED1)
13, // D4 is P0.13 (LED2) 13, // D4 is P0.13 (LED2)
11, // D5 is P0.11 11, // D5 is P0.11
9, // D6 is P0.09 9, // D6 is P0.09
10, // D7 is P0.10 (Button) 10, // D7 is P0.10 (Button)
41, // D8 is P1.09 (NeoPixel) 41, // D8 is P1.09
12, // D9 is P0.12 12, // D9 is P0.12
14, // D10 is P0.14 14, // D10 is P0.14
15, // D11 is P0.15 15, // D11 is P0.15
32, // D12 is P1.00 32, // D12 is P1.00
7, // D13 is P0.07 7, // D13 is P0.07
// D14 .. D21 (aka A0 .. A7) // D14 .. D21 (aka A0 .. A5)
4, // D14 is P0.04 (A0) 4, // D14 is P0.04 (A0)
30, // D15 is P0.30 (A1) 30, // D15 is P0.30 (A1)
5, // D16 is P0.05 (A2) 5, // D16 is P0.05 (A2)
2, // D17 is P0.02 (A3) 2, // D17 is P0.02 (A3)
28, // D18 is P0.28 (A4) 28, // D18 is P0.28 (A4)
3, // D19 is P0.03 (A5) 3, // D19 is P0.03 (A5)
29, // D20 is P0.29 (A6, Battery) ????
31, // D21 is P0.31 (A7, ARef) ????
// D22 .. D23 (aka I2C pins) // D20 .. D21 (aka I2C pins)
16, // D22 is P0.16 (SDA) 16, // D20 is P0.16 (SDA)
24, // D23 is P0.24 (SCL) 24, // D21 is P0.24 (SCL)
// D24 .. D26 (aka SPI pins)
32, // D24 is P1.00 (SPI MISO)
15, // D25 is P0.15 (SPI MOSI)
7, // D26 is P0.07 (SPI SCK )
// QSPI pins (not exposed via any header / test point) // QSPI pins (not exposed via any header / test point)
19, // D27 is P0.19 (QSPI CLK) 19, // D22 is P0.19 (QSPI CLK)
17, // D28 is P0.17 (QSPI CS) 17, // D23 is P0.17 (QSPI CS)
20, // D29 is P0.20 (QSPI Data 0) 20, // D24 is P0.20 (QSPI Data 0)
21, // D30 is P0.21 (QSPI Data 1) 21, // D25 is P0.21 (QSPI Data 1)
22, // D31 is P0.22 (QSPI Data 2) 22, // D26 is P0.22 (QSPI Data 2)
23, // D32 is P0.23 (QSPI Data 3) 26, // D27 is P0.23 (QSPI Data 3)
// The remaining NFC pin 40, // D28 is P1.08 - IO34
9, // D33 is P0.09 (NFC1, exposed only via test point on bottom of board) 41, // D29 is P1.01 - IO35
44, // D30 is P1.02 - IO36
// Thus, there are 34 defined pins 45, // D31 is P1.03 - IO37
42, // D32 is P1.10 - IO38
// The remaining pins are not usable: 43, // D33 is P1.11 - IO39
// 47, // D34 is P1.15 - IO40
// 46, // D35 is P1.14 - IO41
// The following pins were never listed as they were considered unusable 26, // D36 is P0.26 - IO42
// 0, // P0.00 is XL1 (attached to 32.768kHz crystal) 6, // D37 is P0.6 - IO43
// 1, // P0.01 is XL2 (attached to 32.768kHz crystal) 27, // D38 is P0.27 - IO44
// 18, // P0.18 is RESET (attached to switch)
// 32, // P1.00 is SWO (attached to debug header)
//
// The remaining pins are not connected (per schematic)
// 33, // P1.01 is not connected per schematic
// 35, // P1.03 is not connected per schematic
// 36, // P1.04 is not connected per schematic
// 37, // P1.05 is not connected per schematic
// 38, // P1.06 is not connected per schematic
// 39, // P1.07 is not connected per schematic
// 43, // P1.11 is not connected per schematic
// 44, // P1.12 is not connected per schematic
// 45, // P1.13 is not connected per schematic
// 46, // P1.14 is not connected per schematic
}; };
void initVariant() void initVariant()
@@ -106,4 +85,3 @@ void initVariant()
pinMode(PIN_LED2, OUTPUT); pinMode(PIN_LED2, OUTPUT);
ledOff(PIN_LED2); ledOff(PIN_LED2);
} }

View File

@@ -38,17 +38,15 @@
extern "C" extern "C"
{ {
#endif // __cplusplus #endif // __cplusplus
// (XX) = TABLE INDEX
// Number of pins defined in PinDescription array // Number of pins defined in PinDescription array
#define PINS_COUNT (34) #define PINS_COUNT (40)
#define NUM_DIGITAL_PINS (34) #define NUM_DIGITAL_PINS (34)
#define NUM_ANALOG_INPUTS (6) // A6 is used for battery, A7 is analog reference #define NUM_ANALOG_INPUTS (6)
#define NUM_ANALOG_OUTPUTS (0) #define NUM_ANALOG_OUTPUTS (0)
// LEDs // LEDs
#define PIN_LED1 (3) #define PIN_LED1 (3)
#define PIN_LED2 (4) #define PIN_LED2 (4)
#define PIN_NEOPIXEL (8)
#define LED_BUILTIN PIN_LED1 #define LED_BUILTIN PIN_LED1
#define LED_CONN PIN_LED2 #define LED_CONN PIN_LED2
@@ -72,8 +70,6 @@ extern "C"
#define PIN_A3 (17) #define PIN_A3 (17)
#define PIN_A4 (18) #define PIN_A4 (18)
#define PIN_A5 (19) #define PIN_A5 (19)
#define PIN_A6 (20)
#define PIN_A7 (21)
#define D0 (0) #define D0 (0)
#define D1 (1) #define D1 (1)
@@ -96,18 +92,12 @@ static const uint8_t A2 = PIN_A2 ;
static const uint8_t A3 = PIN_A3 ; static const uint8_t A3 = PIN_A3 ;
static const uint8_t A4 = PIN_A4 ; static const uint8_t A4 = PIN_A4 ;
static const uint8_t A5 = PIN_A5 ; 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 #define ADC_RESOLUTION 14
// Other pins #define PIN_NFC1 (31)
#define PIN_AREF PIN_A7
#define PIN_VBAT PIN_A6
#define PIN_NFC1 (33)
#define PIN_NFC2 (2) #define PIN_NFC2 (2)
static const uint8_t AREF = PIN_AREF;
/* /*
* Serial interfaces * Serial interfaces
*/ */
@@ -119,9 +109,9 @@ static const uint8_t AREF = PIN_AREF;
*/ */
#define SPI_INTERFACES_COUNT 1 #define SPI_INTERFACES_COUNT 1
#define PIN_SPI_MISO (24) //24 original #define PIN_SPI_MISO (22) //24 original
#define PIN_SPI_MOSI (25) //25 original #define PIN_SPI_MOSI (23) //25 original
#define PIN_SPI_SCK (26) //26 original #define PIN_SPI_SCK (24) //26 original
static const uint8_t SS = (13); static const uint8_t SS = (13);
static const uint8_t MOSI = PIN_SPI_MOSI; static const uint8_t MOSI = PIN_SPI_MOSI;
@@ -133,16 +123,16 @@ static const uint8_t SCK = PIN_SPI_SCK;
*/ */
#define WIRE_INTERFACES_COUNT 1 #define WIRE_INTERFACES_COUNT 1
#define PIN_WIRE_SDA (22) #define PIN_WIRE_SDA (20)
#define PIN_WIRE_SCL (23) #define PIN_WIRE_SCL (21)
// QSPI Pins // QSPI Pins
#define PIN_QSPI_SCK 27 #define PIN_QSPI_SCK 22
#define PIN_QSPI_CS 28 #define PIN_QSPI_CS 23
#define PIN_QSPI_IO0 29 #define PIN_QSPI_IO0 24
#define PIN_QSPI_IO1 30 #define PIN_QSPI_IO1 25
#define PIN_QSPI_IO2 31 #define PIN_QSPI_IO2 26
#define PIN_QSPI_IO3 32 #define PIN_QSPI_IO3 27
// On-board QSPI Flash // On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C #define EXTERNAL_FLASH_DEVICES GD25Q16C

View File

@@ -27,74 +27,53 @@
const uint32_t g_ADigitalPinMap[] = const uint32_t g_ADigitalPinMap[] =
{ {
// D0 .. D13 // D0 .. D13
29, // D0 is P0.29 (UART TX) 29, // D0 is P0.29 (UART TX)
45, // D1 is P1.13 (UART RX 45, // D1 is P1.13 (UART RX
44, // D2 is P1.12 (NFC2) 44, // D2 is P1.12 (NFC2)
31, // D3 is P0.31 (LED1) 31, // D3 is P0.31 (LED1)
13, // D4 is P0.13 (LED2) 13, // D4 is P0.13 (LED2)
11, // D5 is P0.11 11, // D5 is P0.11
9, // D6 is P0.09 9, // D6 is P0.09
10, // D7 is P0.10 (Button) 10, // D7 is P0.10 (Button)
41, // D8 is P1.09 (NeoPixel) 41, // D8 is P1.09
12, // D9 is P0.12 12, // D9 is P0.12
14, // D10 is P0.14 14, // D10 is P0.14
15, // D11 is P0.15 15, // D11 is P0.15
32, // D12 is P1.00 32, // D12 is P1.00
7, // D13 is P0.07 7, // D13 is P0.07
// D14 .. D21 (aka A0 .. A7) // D14 .. D21 (aka A0 .. A5)
4, // D14 is P0.04 (A0) 4, // D14 is P0.04 (A0)
30, // D15 is P0.30 (A1) 30, // D15 is P0.30 (A1)
5, // D16 is P0.05 (A2) 5, // D16 is P0.05 (A2)
2, // D17 is P0.02 (A3) 2, // D17 is P0.02 (A3)
28, // D18 is P0.28 (A4) 28, // D18 is P0.28 (A4)
3, // D19 is P0.03 (A5) 3, // D19 is P0.03 (A5)
29, // D20 is P0.29 (A6, Battery) ????
31, // D21 is P0.31 (A7, ARef) ????
// D22 .. D23 (aka I2C pins) // D20 .. D21 (aka I2C pins)
16, // D22 is P0.16 (SDA) 16, // D20 is P0.16 (SDA)
24, // D23 is P0.24 (SCL) 24, // D21 is P0.24 (SCL)
// D24 .. D26 (aka SPI pins)
32, // D24 is P1.00 (SPI MISO)
15, // D25 is P0.15 (SPI MOSI)
7, // D26 is P0.07 (SPI SCK )
// QSPI pins (not exposed via any header / test point) // QSPI pins (not exposed via any header / test point)
19, // D27 is P0.19 (QSPI CLK) 19, // D22 is P0.19 (QSPI CLK)
17, // D28 is P0.17 (QSPI CS) 17, // D23 is P0.17 (QSPI CS)
20, // D29 is P0.20 (QSPI Data 0) 20, // D24 is P0.20 (QSPI Data 0)
21, // D30 is P0.21 (QSPI Data 1) 21, // D25 is P0.21 (QSPI Data 1)
22, // D31 is P0.22 (QSPI Data 2) 22, // D26 is P0.22 (QSPI Data 2)
23, // D32 is P0.23 (QSPI Data 3) 26, // D27 is P0.23 (QSPI Data 3)
// The remaining NFC pin 40, // D28 is P1.08 - IO34
9, // D33 is P0.09 (NFC1, exposed only via test point on bottom of board) 41, // D29 is P1.01 - IO35
44, // D30 is P1.02 - IO36
// Thus, there are 34 defined pins 45, // D31 is P1.03 - IO37
42, // D32 is P1.10 - IO38
// The remaining pins are not usable: 43, // D33 is P1.11 - IO39
// 47, // D34 is P1.15 - IO40
// 46, // D35 is P1.14 - IO41
// The following pins were never listed as they were considered unusable 26, // D36 is P0.26 - IO42
// 0, // P0.00 is XL1 (attached to 32.768kHz crystal) 6, // D37 is P0.6 - IO43
// 1, // P0.01 is XL2 (attached to 32.768kHz crystal) 27, // D38 is P0.27 - IO44
// 18, // P0.18 is RESET (attached to switch)
// 32, // P1.00 is SWO (attached to debug header)
//
// The remaining pins are not connected (per schematic)
// 33, // P1.01 is not connected per schematic
// 35, // P1.03 is not connected per schematic
// 36, // P1.04 is not connected per schematic
// 37, // P1.05 is not connected per schematic
// 38, // P1.06 is not connected per schematic
// 39, // P1.07 is not connected per schematic
// 43, // P1.11 is not connected per schematic
// 44, // P1.12 is not connected per schematic
// 45, // P1.13 is not connected per schematic
// 46, // P1.14 is not connected per schematic
}; };
void initVariant() void initVariant()
@@ -106,4 +85,3 @@ void initVariant()
pinMode(PIN_LED2, OUTPUT); pinMode(PIN_LED2, OUTPUT);
ledOff(PIN_LED2); ledOff(PIN_LED2);
} }

View File

@@ -38,17 +38,15 @@
extern "C" extern "C"
{ {
#endif // __cplusplus #endif // __cplusplus
// (XX) = TABLE INDEX
// Number of pins defined in PinDescription array // Number of pins defined in PinDescription array
#define PINS_COUNT (34) #define PINS_COUNT (40)
#define NUM_DIGITAL_PINS (34) #define NUM_DIGITAL_PINS (34)
#define NUM_ANALOG_INPUTS (6) // A6 is used for battery, A7 is analog reference #define NUM_ANALOG_INPUTS (6)
#define NUM_ANALOG_OUTPUTS (0) #define NUM_ANALOG_OUTPUTS (0)
// LEDs // LEDs
#define PIN_LED1 (3) #define PIN_LED1 (3)
#define PIN_LED2 (4) #define PIN_LED2 (4)
#define PIN_NEOPIXEL (8)
#define LED_BUILTIN PIN_LED1 #define LED_BUILTIN PIN_LED1
#define LED_CONN PIN_LED2 #define LED_CONN PIN_LED2
@@ -72,8 +70,6 @@ extern "C"
#define PIN_A3 (17) #define PIN_A3 (17)
#define PIN_A4 (18) #define PIN_A4 (18)
#define PIN_A5 (19) #define PIN_A5 (19)
#define PIN_A6 (20)
#define PIN_A7 (21)
#define D0 (0) #define D0 (0)
#define D1 (1) #define D1 (1)
@@ -96,18 +92,12 @@ static const uint8_t A2 = PIN_A2 ;
static const uint8_t A3 = PIN_A3 ; static const uint8_t A3 = PIN_A3 ;
static const uint8_t A4 = PIN_A4 ; static const uint8_t A4 = PIN_A4 ;
static const uint8_t A5 = PIN_A5 ; 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 #define ADC_RESOLUTION 14
// Other pins #define PIN_NFC1 (31)
#define PIN_AREF PIN_A7
#define PIN_VBAT PIN_A6
#define PIN_NFC1 (33)
#define PIN_NFC2 (2) #define PIN_NFC2 (2)
static const uint8_t AREF = PIN_AREF;
/* /*
* Serial interfaces * Serial interfaces
*/ */
@@ -119,9 +109,9 @@ static const uint8_t AREF = PIN_AREF;
*/ */
#define SPI_INTERFACES_COUNT 1 #define SPI_INTERFACES_COUNT 1
#define PIN_SPI_MISO (24) //24 original #define PIN_SPI_MISO (22) //24 original
#define PIN_SPI_MOSI (25) //25 original #define PIN_SPI_MOSI (23) //25 original
#define PIN_SPI_SCK (26) //26 original #define PIN_SPI_SCK (24) //26 original
static const uint8_t SS = (13); static const uint8_t SS = (13);
static const uint8_t MOSI = PIN_SPI_MOSI; static const uint8_t MOSI = PIN_SPI_MOSI;
@@ -133,16 +123,16 @@ static const uint8_t SCK = PIN_SPI_SCK;
*/ */
#define WIRE_INTERFACES_COUNT 1 #define WIRE_INTERFACES_COUNT 1
#define PIN_WIRE_SDA (22) #define PIN_WIRE_SDA (20)
#define PIN_WIRE_SCL (23) #define PIN_WIRE_SCL (21)
// QSPI Pins // QSPI Pins
#define PIN_QSPI_SCK 27 #define PIN_QSPI_SCK 22
#define PIN_QSPI_CS 28 #define PIN_QSPI_CS 23
#define PIN_QSPI_IO0 29 #define PIN_QSPI_IO0 24
#define PIN_QSPI_IO1 30 #define PIN_QSPI_IO1 25
#define PIN_QSPI_IO2 31 #define PIN_QSPI_IO2 26
#define PIN_QSPI_IO3 32 #define PIN_QSPI_IO3 27
// On-board QSPI Flash // On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C #define EXTERNAL_FLASH_DEVICES GD25Q16C

View File

@@ -27,74 +27,53 @@
const uint32_t g_ADigitalPinMap[] = const uint32_t g_ADigitalPinMap[] =
{ {
// D0 .. D13 // D0 .. D13
29, // D0 is P0.29 (UART TX) 29, // D0 is P0.29 (UART TX)
45, // D1 is P1.13 (UART RX 45, // D1 is P1.13 (UART RX
44, // D2 is P1.12 (NFC2) 44, // D2 is P1.12 (NFC2)
31, // D3 is P0.31 (LED1) 31, // D3 is P0.31 (LED1)
13, // D4 is P0.13 (LED2) 13, // D4 is P0.13 (LED2)
11, // D5 is P0.11 11, // D5 is P0.11
9, // D6 is P0.09 9, // D6 is P0.09
10, // D7 is P0.10 (Button) 10, // D7 is P0.10 (Button)
41, // D8 is P1.09 (NeoPixel) 41, // D8 is P1.09
12, // D9 is P0.12 12, // D9 is P0.12
14, // D10 is P0.14 14, // D10 is P0.14
15, // D11 is P0.15 15, // D11 is P0.15
32, // D12 is P1.00 32, // D12 is P1.00
7, // D13 is P0.07 7, // D13 is P0.07
// D14 .. D21 (aka A0 .. A7) // D14 .. D21 (aka A0 .. A5)
4, // D14 is P0.04 (A0) 4, // D14 is P0.04 (A0)
30, // D15 is P0.30 (A1) 30, // D15 is P0.30 (A1)
5, // D16 is P0.05 (A2) 5, // D16 is P0.05 (A2)
2, // D17 is P0.02 (A3) 2, // D17 is P0.02 (A3)
28, // D18 is P0.28 (A4) 28, // D18 is P0.28 (A4)
3, // D19 is P0.03 (A5) 3, // D19 is P0.03 (A5)
29, // D20 is P0.29 (A6, Battery) ????
31, // D21 is P0.31 (A7, ARef) ????
// D22 .. D23 (aka I2C pins) // D20 .. D21 (aka I2C pins)
16, // D22 is P0.16 (SDA) 16, // D20 is P0.16 (SDA)
24, // D23 is P0.24 (SCL) 24, // D21 is P0.24 (SCL)
// D24 .. D26 (aka SPI pins)
32, // D24 is P1.00 (SPI MISO)
15, // D25 is P0.15 (SPI MOSI)
7, // D26 is P0.07 (SPI SCK )
// QSPI pins (not exposed via any header / test point) // QSPI pins (not exposed via any header / test point)
19, // D27 is P0.19 (QSPI CLK) 19, // D22 is P0.19 (QSPI CLK)
17, // D28 is P0.17 (QSPI CS) 17, // D23 is P0.17 (QSPI CS)
20, // D29 is P0.20 (QSPI Data 0) 20, // D24 is P0.20 (QSPI Data 0)
21, // D30 is P0.21 (QSPI Data 1) 21, // D25 is P0.21 (QSPI Data 1)
22, // D31 is P0.22 (QSPI Data 2) 22, // D26 is P0.22 (QSPI Data 2)
23, // D32 is P0.23 (QSPI Data 3) 26, // D27 is P0.23 (QSPI Data 3)
// The remaining NFC pin 40, // D28 is P1.08 - IO34
9, // D33 is P0.09 (NFC1, exposed only via test point on bottom of board) 41, // D29 is P1.01 - IO35
44, // D30 is P1.02 - IO36
// Thus, there are 34 defined pins 45, // D31 is P1.03 - IO37
42, // D32 is P1.10 - IO38
// The remaining pins are not usable: 43, // D33 is P1.11 - IO39
// 47, // D34 is P1.15 - IO40
// 46, // D35 is P1.14 - IO41
// The following pins were never listed as they were considered unusable 26, // D36 is P0.26 - IO42
// 0, // P0.00 is XL1 (attached to 32.768kHz crystal) 6, // D37 is P0.6 - IO43
// 1, // P0.01 is XL2 (attached to 32.768kHz crystal) 27, // D38 is P0.27 - IO44
// 18, // P0.18 is RESET (attached to switch)
// 32, // P1.00 is SWO (attached to debug header)
//
// The remaining pins are not connected (per schematic)
// 33, // P1.01 is not connected per schematic
// 35, // P1.03 is not connected per schematic
// 36, // P1.04 is not connected per schematic
// 37, // P1.05 is not connected per schematic
// 38, // P1.06 is not connected per schematic
// 39, // P1.07 is not connected per schematic
// 43, // P1.11 is not connected per schematic
// 44, // P1.12 is not connected per schematic
// 45, // P1.13 is not connected per schematic
// 46, // P1.14 is not connected per schematic
}; };
void initVariant() void initVariant()
@@ -106,4 +85,3 @@ void initVariant()
pinMode(PIN_LED2, OUTPUT); pinMode(PIN_LED2, OUTPUT);
ledOff(PIN_LED2); ledOff(PIN_LED2);
} }

View File

@@ -38,17 +38,15 @@
extern "C" extern "C"
{ {
#endif // __cplusplus #endif // __cplusplus
// (XX) = TABLE INDEX
// Number of pins defined in PinDescription array // Number of pins defined in PinDescription array
#define PINS_COUNT (34) #define PINS_COUNT (40)
#define NUM_DIGITAL_PINS (34) #define NUM_DIGITAL_PINS (34)
#define NUM_ANALOG_INPUTS (6) // A6 is used for battery, A7 is analog reference #define NUM_ANALOG_INPUTS (6)
#define NUM_ANALOG_OUTPUTS (0) #define NUM_ANALOG_OUTPUTS (0)
// LEDs // LEDs
#define PIN_LED1 (3) #define PIN_LED1 (3)
#define PIN_LED2 (4) #define PIN_LED2 (4)
#define PIN_NEOPIXEL (8)
#define LED_BUILTIN PIN_LED1 #define LED_BUILTIN PIN_LED1
#define LED_CONN PIN_LED2 #define LED_CONN PIN_LED2
@@ -72,8 +70,6 @@ extern "C"
#define PIN_A3 (17) #define PIN_A3 (17)
#define PIN_A4 (18) #define PIN_A4 (18)
#define PIN_A5 (19) #define PIN_A5 (19)
#define PIN_A6 (20)
#define PIN_A7 (21)
#define D0 (0) #define D0 (0)
#define D1 (1) #define D1 (1)
@@ -96,18 +92,12 @@ static const uint8_t A2 = PIN_A2 ;
static const uint8_t A3 = PIN_A3 ; static const uint8_t A3 = PIN_A3 ;
static const uint8_t A4 = PIN_A4 ; static const uint8_t A4 = PIN_A4 ;
static const uint8_t A5 = PIN_A5 ; 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 #define ADC_RESOLUTION 14
// Other pins #define PIN_NFC1 (31)
#define PIN_AREF PIN_A7
#define PIN_VBAT PIN_A6
#define PIN_NFC1 (33)
#define PIN_NFC2 (2) #define PIN_NFC2 (2)
static const uint8_t AREF = PIN_AREF;
/* /*
* Serial interfaces * Serial interfaces
*/ */
@@ -119,9 +109,9 @@ static const uint8_t AREF = PIN_AREF;
*/ */
#define SPI_INTERFACES_COUNT 1 #define SPI_INTERFACES_COUNT 1
#define PIN_SPI_MISO (24) //24 original #define PIN_SPI_MISO (22) //24 original
#define PIN_SPI_MOSI (25) //25 original #define PIN_SPI_MOSI (23) //25 original
#define PIN_SPI_SCK (26) //26 original #define PIN_SPI_SCK (24) //26 original
static const uint8_t SS = (13); static const uint8_t SS = (13);
static const uint8_t MOSI = PIN_SPI_MOSI; static const uint8_t MOSI = PIN_SPI_MOSI;
@@ -133,16 +123,16 @@ static const uint8_t SCK = PIN_SPI_SCK;
*/ */
#define WIRE_INTERFACES_COUNT 1 #define WIRE_INTERFACES_COUNT 1
#define PIN_WIRE_SDA (22) #define PIN_WIRE_SDA (20)
#define PIN_WIRE_SCL (23) #define PIN_WIRE_SCL (21)
// QSPI Pins // QSPI Pins
#define PIN_QSPI_SCK 27 #define PIN_QSPI_SCK 22
#define PIN_QSPI_CS 28 #define PIN_QSPI_CS 23
#define PIN_QSPI_IO0 29 #define PIN_QSPI_IO0 24
#define PIN_QSPI_IO1 30 #define PIN_QSPI_IO1 25
#define PIN_QSPI_IO2 31 #define PIN_QSPI_IO2 26
#define PIN_QSPI_IO3 32 #define PIN_QSPI_IO3 27
// On-board QSPI Flash // On-board QSPI Flash
#define EXTERNAL_FLASH_DEVICES GD25Q16C #define EXTERNAL_FLASH_DEVICES GD25Q16C