Skip to content

Improve backwards compatibility #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
2a7870b
Rename F446 pins from enum to #define
ghent360 Aug 26, 2018
b84449e
Change the pins on the BLUEPILL.
ghent360 Aug 26, 2018
c484208
Change the enum in the board template.
ghent360 Aug 26, 2018
a8ab717
Replace enum for discovery F030
ghent360 Aug 26, 2018
131f07c
Replace enum in Disco F100
ghent360 Aug 26, 2018
3b26f3e
Replace enum in discovery F407.
ghent360 Aug 26, 2018
eb87083
Replace enum in discovery F746.
ghent360 Aug 26, 2018
3add0ca
Replace enum in discovery L072.
ghent360 Aug 26, 2018
4c1a9c8
Remove enum in discovery L475
ghent360 Aug 26, 2018
d251ad6
Replace enum in maple mini.
ghent360 Aug 26, 2018
ad78dfb
Remove enum for nucleo 030
ghent360 Aug 26, 2018
b4e074c
Remove enum for nucleo 091.
ghent360 Aug 26, 2018
a29ad66
Remove enum for nucleo 103
ghent360 Aug 26, 2018
7d34ba9
Remove enum for nucleo 207
ghent360 Aug 26, 2018
0d56a7f
Remove enumv for nucleo 302.
ghent360 Aug 26, 2018
4c3651b
Remove enum for nucleo 303K8.
ghent360 Aug 26, 2018
1b8e338
Remove enum for nucleo 303RE.
ghent360 Aug 26, 2018
e01662b
Remove enum vor nucleo 401RE.
ghent360 Aug 26, 2018
81ee050
Remove enum from nucleo 411.
ghent360 Aug 26, 2018
2c4a8d8
Remove enum from nucleo 429.
ghent360 Aug 26, 2018
a078d95
Remove enum from nucleo L4R5
ghent360 Aug 26, 2018
688aae5
Remove enum from nucleo L031
ghent360 Aug 26, 2018
ec54e78
Remove enum from nucleo L053
ghent360 Aug 26, 2018
1d6cdac
Remove enum from nucleo L152
ghent360 Aug 26, 2018
d26e83f
Remove enum from nucleo L432
ghent360 Aug 26, 2018
e4131d1
Remove enum from nucleo 476.
ghent360 Aug 26, 2018
4922da8
Remove enum from nucleo L496
ghent360 Aug 26, 2018
dd7f89e
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 6, 2018
1d237b1
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 11, 2018
3063ffc
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 17, 2018
3c4b385
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 20, 2018
b671920
Convert the BLACK_407VE pins.
ghent360 Sep 20, 2018
ff0bceb
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 21, 2018
9f4a5ec
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 22, 2018
4e54cdd
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 25, 2018
0ee8100
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 26, 2018
91f1b52
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 28, 2018
4653f4c
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Sep 29, 2018
068fb2e
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Oct 3, 2018
3d1930b
Update BLUE 407 mini.
ghent360 Oct 3, 2018
56d9247
Update the enum on NUCLEO_L073RZ
ghent360 Oct 3, 2018
cfd7701
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Oct 4, 2018
5b9bcdc
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Oct 10, 2018
8f66f7c
Merge branch 'master' of https://github.com/stm32duino/Arduino_Core_S…
ghent360 Oct 11, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 90 additions & 70 deletions variants/BLACK_F407VE/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,77 +45,97 @@ extern "C"{
*----------------------------------------------------------------------------*/
extern const PinName digitalPin[];

enum {
// Left Side
//Ext //Int
//5V //5V
//5V //5V
//3V3 //3V3
//3V3 //3V3
//GND //GND
PE2, PE3, // D0, D1
PE4, PE5, // PE_4: BUT K0, PE_5: BUT K1
PE6, PC13,
PC0, PC1,
PC2, PC3,
//VREF- //VREF+
PA0, PA1, // D10, D11 PA_0(WK_UP): BUT K_UP)
PA2, PA3,
PA4, PA5,
PA6, PA7, // PA_6: LED D2, PA_7: LED D3 (active LOW)
PC4, PC5,
PB0, PB1, // D20, D21
PE7, PE8,
PE9, PE10,
PE11, PE12,
PE13, PE14,
PE15, PB10, // D30, D31
PB11, PB12,
PB13, PB14,
// Right Side
//Int //Ext
//3V3 //3V3
//3V3 //3V3
//BOOT0 //BOOT1
//GND //GND
//GND //GND
PE1, PE0,
PB9, PB8,
PB7, PB6, // D40, D41
PB5, PB3,
PD7, PD6,
PD5, PD4,
PD3, PD2,
PD1, PD0, // D50, D51
PC12, PC11,
PC10, PA15,
PA12, PA11, // PA_11: USB_DM, PA_12: USB_DP
PA10, PA9,
PA8, PC9, // D60, D61
PC8, PC7,
PC6, PD15,
PD14, PD13,
PD12, PD11,
PD10, PD9, // D70, D71
PD8, PB15,
PB4,
#define PE2 0
#define PE3 1
#define PE4 2
#define PE5 3
#define PE6 4
#define PC13 5
#define PC0 6
#define PC1 7
#define PC2 8
#define PC3 9
#define PA0 10
#define PA1 11
#define PA2 12
#define PA3 13
#define PA4 14
#define PA5 15
#define PA6 16
#define PA7 17
#define PC4 18
#define PC5 19
#define PB0 20
#define PB1 21
#define PE7 22
#define PE8 23
#define PE9 24
#define PE10 25
#define PE11 26
#define PE12 27
#define PE13 28
#define PE14 29
#define PE15 30
#define PB10 31
#define PB11 32
#define PB12 33
#define PB13 34
#define PB14 35
#define PE1 36
#define PE0 37
#define PB9 38
#define PB8 39
#define PB7 40
#define PB6 41
#define PB5 42
#define PB3 43
#define PD7 44
#define PD6 45
#define PD5 46
#define PD4 47
#define PD3 48
#define PD2 49
#define PD1 50
#define PD0 51
#define PC12 52
#define PC11 53
#define PC10 54
#define PA15 55
#define PA12 56
#define PA11 57
#define PA10 58
#define PA9 59
#define PA8 60
#define PC9 61
#define PC8 62
#define PC7 63
#define PC6 64
#define PD15 65
#define PD14 66
#define PD13 67
#define PD12 68
#define PD11 69
#define PD10 70
#define PD9 71
#define PD8 72
#define PB15 73
#define PB4 74
// Analog pins
PA0_A, // D75
PA1_A,
PA2_A,
PA3_A,
PA4_A,
PA5_A, // D80
PB0_A,
PB1_A,
PC0_A,
PC1_A,
PC2_A,
PC3_A,
PC4_A,
PC5_A,
PEND
};
#define PA0_A 75
#define PA1_A 76
#define PA2_A 77
#define PA3_A 78
#define PA4_A 79
#define PA5_A 80
#define PB0_A 81
#define PB1_A 82
#define PC0_A 83
#define PC1_A 84
#define PC2_A 85
#define PC3_A 86
#define PC4_A 87
#define PC5_A 88
#define PEND 89

// This must be a literal with the same value as PEND
#define NUM_DIGITAL_PINS 89
Expand Down
74 changes: 36 additions & 38 deletions variants/BLUEPILL_F103C8/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,48 +44,46 @@ extern "C"{
*----------------------------------------------------------------------------*/
extern const PinName digitalPin[];

enum {
// USB connector on the top, MCU side
// Left Side
PB9, //D0
PB8, //D1
PB7, //D2
PB6, //D3
PB5, //D4
PB4, //D5
PB3, //D6
PA15, //D7
PA12, //D8 - USB DP
PA11, //D9 - USB DM
PA10, //D10
PA9, //D11
PA8, //D12
PB15, //D13
PB14, //D14
PB13, //D15
PB12, //D16
#define PB9 0
#define PB8 1
#define PB7 2
#define PB6 3
#define PB5 4
#define PB4 5
#define PB3 6
#define PA15 7
#define PA12 8
#define PA11 9
#define PA10 10
#define PA9 11
#define PA8 12
#define PB15 13
#define PB14 14
#define PB13 15
#define PB12 16
// Right side
PC13, //D17 - LED
PC14, //D18
PC15, //D19
PA0, //D20/A0
PA1, //D21/A1
PA2, //D22/A2
PA3, //D23/A3
PA4, //D24/A4
PA5, //D25/A5
PA6, //D26/A6
PA7, //D27/A7
PB0, //D28/A8
PB1, //D29/A9
PB10, //D30
PB11, //D31
#define PC13 17
#define PC14 18
#define PC15 19
#define PA0 20
#define PA1 21
#define PA2 22
#define PA3 23
#define PA4 24
#define PA5 25
#define PA6 26
#define PA7 27
#define PB0 28
#define PB1 29
#define PB10 30
#define PB11 31
// Other
PB2, //D32 - BOOT1
PA13, //D33 - SWDI0
PA14, //D34 - SWCLK
PEND
};
#define PB2 32
#define PA13 33
#define PA14 34
#define PEND 35

// This must be a literal with the same value as PEND
#define NUM_DIGITAL_PINS 35
Expand Down
Loading