Skip to content

Commit 50a8e99

Browse files
authored
Merge pull request #5007 from tannewt/samd_pin_reset
Remove MICROPY_PORT_* macros used for never reset
2 parents 1d1b80f + e042d54 commit 50a8e99

File tree

114 files changed

+33
-597
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

+33
-597
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030

3131
#include "supervisor/board.h"
3232
#include "mpconfigboard.h"
33+
#include "common-hal/microcontroller/Pin.h"
3334

3435
void board_init(void) {
36+
never_reset_pin_number(PIN_PB20);
3537
REG_PORT_DIRSET1 = PORT_PB20; // PB20 as output
3638
REG_PORT_OUTCLR1 = PORT_PB20; // PB20 cleared
3739
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)