File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,20 @@ const PinName digitalPin[] = {
5454 PA_10, // D10 - SDA (RX UART Header)
5555 PA_13, // D11 - SWDIO
5656 PA_14, // D12 - SWCLK
57+ // These two are only available on boards without a crystal:
58+ PF_0,
59+ PF_1,
5760 // Duplicated pins in order to be aligned with PinMap_ADC
5861 // A0 have to be greater than NUM_ANALOG_INPUTS
59- PA_0, // D13 /A0 ~ D0
60- PA_1, // D14 /A1 ~ D1
61- PA_2, // D15 /A2 ~ D2
62- PA_3, // D16 /A3 ~ D3
63- PA_4, // D17 /A4 ~ D4
64- PA_5, // D18 /A5 ~ D5
65- PA_6, // D19 /A6 ~ D6
66- PA_7, // D20 /A7 ~ D7
67- PB_1 // D21 /A8 ~ D8
62+ PA_0, // D15 /A0 ~ D0
63+ PA_1, // D16 /A1 ~ D1
64+ PA_2, // D17 /A2 ~ D2
65+ PA_3, // D18 /A3 ~ D3
66+ PA_4, // D19 /A4 ~ D4
67+ PA_5, // D20 /A5 ~ D5
68+ PA_6, // D21 /A6 ~ D6
69+ PA_7, // D22 /A7 ~ D7
70+ PB_1 // D23 /A8 ~ D8
6871};
6972
7073#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -54,12 +54,15 @@ extern "C" {
5454#define PA10 10 //D10 - SDA (RX UART header)
5555#define PA13 11 //D11 - SWDIO
5656#define PA14 12 //D12 - SWCLK
57+ // Boards without a crystal can use these pins as well:
58+ #define PF0 13
59+ #define PF1 14
5760
5861// This must be a literal with the same value as PEND
59- #define NUM_DIGITAL_PINS 22
62+ #define NUM_DIGITAL_PINS 24
6063// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
6164#define NUM_ANALOG_INPUTS 9
62- #define NUM_ANALOG_FIRST 13
65+ #define NUM_ANALOG_FIRST 15
6366
6467// On-board LED pin number
6568#define LED_BUILTIN PA4
You can’t perform that action at this time.
0 commit comments