File tree Expand file tree Collapse file tree 5 files changed +150
-0
lines changed
ports/samd/boards/ADAFRUIT_GRAND_CENTRAL_M4_EXPRESS Expand file tree Collapse file tree 5 files changed +150
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "deploy" : [
3
+ " ../deploy.md"
4
+ ],
5
+ "docs" : " " ,
6
+ "features" : [
7
+ " Micro USB" ,
8
+ " RGB LED" ,
9
+ " SPI Flash"
10
+ ],
11
+ "mcu" : " samd51" ,
12
+ "product" : " Grand Central M4 Express" ,
13
+ "thumbnail" : " " ,
14
+ "url" : " https://www.adafruit.com/product/4064" ,
15
+ "vendor" : " Adafruit"
16
+ }
Original file line number Diff line number Diff line change
1
+ include ("$(PORT_DIR)/boards/manifest.py" )
2
+ include ("$(MPY_DIR)/extmod/uasyncio" )
3
+ require ("onewire" )
4
+ require ("ds18x20" )
5
+ require ("neopixel" )
Original file line number Diff line number Diff line change
1
+ #define MICROPY_HW_BOARD_NAME "Grand Central M4 Express"
2
+ #define MICROPY_HW_MCU_NAME "ATSAMD51P20A"
3
+
4
+ #define MICROPY_HW_XOSC32K (1)
5
+
6
+ // fatfs configuration used in ffconf.h
7
+ #define MICROPY_FATFS_ENABLE_LFN (1)
8
+ #define MICROPY_FATFS_RPATH (2)
9
+ #define MICROPY_FATFS_MAX_SS (4096)
10
+ #define MICROPY_FATFS_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
Original file line number Diff line number Diff line change
1
+ MCU_SERIES = SAMD51
2
+ CMSIS_MCU = ATSAMD51P20A
3
+ LD_FILES = boards/samd51x20a.ld sections.ld
4
+ TEXT0 = 0x4000
5
+
6
+ # The ?='s allow overriding in mpconfigboard.mk.
7
+ # MicroPython settings
8
+ MICROPY_VFS_LFS1 ?= 1
9
+
10
+ FROZEN_MANIFEST = $(BOARD_DIR ) /manifest.py
Original file line number Diff line number Diff line change
1
+ # Pins listed below in order of board pinout picture from Adafruit, with breaks
2
+ # corresponding to the same spacing as on the board
3
+
4
+ # Analogue input (16 pins) and output (first two of these)
5
+
6
+ PIN_PA02,A0
7
+ PIN_PA05,A1
8
+ PIN_PB03,A2
9
+ PIN_PC00,A3
10
+ PIN_PC01,A4
11
+ PIN_PC02,A5
12
+ PIN_PC03,A6
13
+ PIN_PB04,A7
14
+
15
+
16
+ PIN_PB05,A8
17
+ PIN_PB06,A9
18
+ PIN_PB07,A10
19
+ PIN_PB08,A11
20
+ PIN_PB09,A12
21
+ PIN_PA04,A13
22
+ PIN_PA06,A14
23
+ PIN_PA07,A15
24
+
25
+ # Big digital block at bottom of board
26
+
27
+ PIN_PD12,D22
28
+ PIN_PA15,D23
29
+ PIN_PC17,D24
30
+ PIN_PC16,D25
31
+ PIN_PA12,D26
32
+ PIN_PA13,D27
33
+ PIN_PA14,D28
34
+ PIN_PB19,D29
35
+ PIN_PA23,D30
36
+ PIN_PA22,D31
37
+ PIN_PA21,D32
38
+ PIN_PA20,D33
39
+ PIN_PA19,D34
40
+ PIN_PA18,D35
41
+ PIN_PA17,D36
42
+ PIN_PA16,D37
43
+ PIN_PB15,D38
44
+ PIN_PB14,D39
45
+ PIN_PC13,D40
46
+ PIN_PC12,D41
47
+ PIN_PC15,D42
48
+ PIN_PC14,D43
49
+ PIN_PC11,D44
50
+ PIN_PC10,D45
51
+ PIN_PC06,D46
52
+ PIN_PC07,D47
53
+ PIN_PC04,D48
54
+ PIN_PC05,D49
55
+ PIN_PD11,D50
56
+ PIN_PD08,D51
57
+ PIN_PD09,D52
58
+ PIN_PD10,D53
59
+
60
+ # Digital row down other side of board - N.B. diplicates
61
+
62
+ PIN_PC30,LED_TX
63
+ PIN_PC31,LED_RX
64
+ PIN_PC24,NEOPIXEL
65
+
66
+ PIN_PB21,SCL
67
+ PIN_PB20,SDA
68
+ PIN_PA03,AREF
69
+ PIN_PB01,D13
70
+ PIN_PB00,D12
71
+ PIN_PB23,D11
72
+ PIN_PB22,D10
73
+ PIN_PB02,D9
74
+ PIN_PB18,D8
75
+
76
+ PIN_PD21,D7
77
+ PIN_PD20,D6
78
+ PIN_PC21,D5
79
+ PIN_PC20,D4
80
+ PIN_PC19,D3
81
+ PIN_PC18,D2
82
+ PIN_PB24,D1
83
+ PIN_PB25,D0
84
+
85
+ PIN_PB16,D14
86
+ PIN_PB17,D15
87
+ PIN_PC22,D16
88
+ PIN_PC23,D17
89
+ PIN_PB12,D18
90
+ PIN_PB13,D19
91
+ PIN_PB20,D20
92
+ PIN_PB21,D21
93
+
94
+ PIN_PB26,SD_MOSI
95
+ PIN_PB27,SD_SCK
96
+ PIN_PA28,SD_CS
97
+ PIN_PA29,SD_MISO
98
+ PIN_PA31,SD_CARD_DETECT
99
+
100
+
101
+ # QSPI flash
102
+
103
+ PIN_PB11,QSPI_CS
104
+ PIN_PB10,QSPI_SCK
105
+ PIN_PA08,QSPI_D0
106
+ PIN_PA09,QSPI_D1
107
+ PIN_PA10,QSPI_D2
108
+ PIN_PA11,QSPI_D3
109
+
You can’t perform that action at this time.
0 commit comments