Skip to content
Closed
Changes from 1 commit
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

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace enum in maple mini.
  • Loading branch information
ghent360 committed Aug 26, 2018
commit d251ad6d17c8724e095a5bcd2a38e6137aa461cf
92 changes: 45 additions & 47 deletions variants/MAPLEMINI_F103CB/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,58 +44,56 @@ extern "C"{
*----------------------------------------------------------------------------*/
extern const PinName digitalPin[];

enum {
// Right side
PB11, //D0
PB10, //D1
PB2, //D2
PB0, //D3
PA7, //D4
PA6, //D5
PA5, //D6
PA4, //D7
PA3, //D8
PA2, //D9
PA1, //D10
PA0, //D11
PC15, //D12
PC14, //D13
PC13, //D14
#define PB11 0
#define PB10 1
#define PB2 2
#define PB0 3
#define PA7 4
#define PA6 5
#define PA5 6
#define PA4 7
#define PA3 8
#define PA2 9
#define PA1 10
#define PA0 11
#define PC15 12
#define PC14 13
#define PC13 14
// Left side
PB7, //D15
PB6, //D16
PB5, //D17
PB4, //D18
PB3, //D19
PA15, //D20
PA14, //D21 - SWCLK
PA13, //D22 - SWDI0
PA12, //D23 - USB DP
PA11, //D24 - USB DM
PA10, //D25
PA9, //D26
PA8, //D27
PB15, //D28
PB14, //D29
PB13, //D30
PB12, //D31
#define PB7 15
#define PB6 16
#define PB5 17
#define PB4 18
#define PB3 19
#define PA15 20
#define PA14 21
#define PA13 22
#define PA12 23
#define PA11 24
#define PA10 25
#define PA9 26
#define PA8 27
#define PB15 28
#define PB14 29
#define PB13 30
#define PB12 31
// Other
PB8, //D32 - BOOT0 - User buttons
PB1, //D33 - LED
PB9, //D34 - USB DISC
#define PB8 32
#define PB1 33
#define PB9 34
// Duplicated pins to avoid issue with analogRead
// A0 have to be greater than NUM_ANALOG_INPUTS
PB0_2,//D35/A0 = D3
PA7_2,//D36/A1 = D4
PA6_2,//D37/A2 = D5
PA5_2,//D38/A3 = D6
PA4_2,//D39/A4 = D7
PA3_2,//D40/A5 = D8
PA2_2,//D41/A6 = D9
PA1_2,//D42/A7 = D10
PA0_2,//D43/A8 = D11
PEND
};
#define PB0_2 35
#define PA7_2 36
#define PA6_2 37
#define PA5_2 38
#define PA4_2 39
#define PA3_2 40
#define PA2_2 41
#define PA1_2 42
#define PA0_2 43
#define PEND 44

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