Skip to content

Commit ca2cb9a

Browse files
committed
Remove MICROPY_PORT_* macros used for never reset
Now we use never_reset which is generally more correct and easier to get right. Fixes #5001 and fixes #4997
1 parent c16f559 commit ca2cb9a

File tree

114 files changed

+27
-595
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+27
-595
lines changed

ports/atmel-samd/boards/8086_commander/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
#define MICROPY_HW_LED_STATUS (&pin_PA06)
88

9-
#define MICROPY_PORT_A (0)
10-
#define MICROPY_PORT_B (0)
11-
#define MICROPY_PORT_C (0)
12-
139
// USB is always used internally so skip the pin objects for it.
1410
#define IGNORE_PIN_PA24 1
1511
#define IGNORE_PIN_PA25 1

ports/atmel-samd/boards/adafruit_neokey_trinkey_m0/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
#define MICROPY_HW_NEOPIXEL (&pin_PA15)
55

6-
#define MICROPY_PORT_A (0)
7-
#define MICROPY_PORT_B (0)
8-
#define MICROPY_PORT_C (0)
9-
106
#define IGNORE_PIN_PA00 1
117
#define IGNORE_PIN_PA01 1
128
#define IGNORE_PIN_PA02 1

ports/atmel-samd/boards/adafruit_proxlight_trinkey_m0/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
#define MICROPY_HW_NEOPIXEL (&pin_PA15)
55

6-
#define MICROPY_PORT_A (0)
7-
#define MICROPY_PORT_B (0)
8-
#define MICROPY_PORT_C (0)
9-
106
#define IGNORE_PIN_PA01 1
117
#define IGNORE_PIN_PA02 1
128
#define IGNORE_PIN_PA04 1

ports/atmel-samd/boards/adafruit_rotary_trinkey_m0/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
#define MICROPY_HW_NEOPIXEL (&pin_PA01)
55

6-
#define MICROPY_PORT_A (0)
7-
#define MICROPY_PORT_B (0)
8-
#define MICROPY_PORT_C (0)
9-
106
#define IGNORE_PIN_PA02 1
117
#define IGNORE_PIN_PA03 1
128
#define IGNORE_PIN_PA05 1

ports/atmel-samd/boards/adafruit_slide_trinkey_m0/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
#define MICROPY_HW_NEOPIXEL (&pin_PA04)
55

6-
#define MICROPY_PORT_A (0)
7-
#define MICROPY_PORT_B (0)
8-
#define MICROPY_PORT_C (0)
9-
106
#define IGNORE_PIN_PA00 1
117
#define IGNORE_PIN_PA01 1
128
#define IGNORE_PIN_PA03 1

ports/atmel-samd/boards/aloriumtech_evo_m51/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "mpconfigboard.h"
3333

3434
void board_init(void) {
35+
never_reset_pin_number(PIN_PB20);
3536
REG_PORT_DIRSET1 = PORT_PB20; // PB20 as output
3637
REG_PORT_OUTCLR1 = PORT_PB20; // PB20 cleared
3738
PORT->Group[1].PINCFG[20].reg |= PORT_PINCFG_PMUXEN; // Mux enabled on PB20

ports/atmel-samd/boards/aloriumtech_evo_m51/mpconfigboard.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
#define MICROPY_HW_LED_STATUS (&pin_PA23)
99
#define MICROPY_HW_NEOPIXEL (&pin_PB03)
1010

11-
// These are pins not to reset.
12-
// QSPI Data pins
13-
#define MICROPY_PORT_A (PORT_PA08 | PORT_PA09 | PORT_PA10 | PORT_PA11)
14-
// QSPI CS, QSPI SCK and NeoPixel pin
15-
#define MICROPY_PORT_B (PORT_PB03 | PORT_PB10 | PORT_PB11 | PORT_PB20)
16-
#define MICROPY_PORT_C (0)
17-
#define MICROPY_PORT_D (0)
18-
1911
// BC needed?
2012
// #define AUTORESET_DELAY_MS 500
2113

ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#define MICROPY_HW_BOARD_NAME "Arduino MKR1300"
22
#define MICROPY_HW_MCU_NAME "samd21g18"
33

4-
#define MICROPY_PORT_A (0)
5-
#define MICROPY_PORT_B (0)
6-
#define MICROPY_PORT_C (0)
7-
84
#define MICROPY_HW_LED_STATUS (&pin_PB23)
95

106
#define DEFAULT_I2C_BUS_SCL (&pin_PA09)

ports/atmel-samd/boards/arduino_mkrzero/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#define MICROPY_HW_BOARD_NAME "Arduino MKR Zero"
22
#define MICROPY_HW_MCU_NAME "samd21g18"
33

4-
#define MICROPY_PORT_A (0)
5-
#define MICROPY_PORT_B (0)
6-
#define MICROPY_PORT_C (0)
7-
84
#define DEFAULT_I2C_BUS_SCL (&pin_PA09)
95
#define DEFAULT_I2C_BUS_SDA (&pin_PA08)
106

ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
#define MICROPY_HW_LED_STATUS (&pin_PA17)
55

6-
#define MICROPY_PORT_A (0)
7-
#define MICROPY_PORT_B (0)
8-
#define MICROPY_PORT_C (0)
9-
106
#define DEFAULT_I2C_BUS_SCL (&pin_PB09)
117
#define DEFAULT_I2C_BUS_SDA (&pin_PB08)
128

0 commit comments

Comments
 (0)