Skip to content

Commit f1a497e

Browse files
authored
Merge pull request #3060 from jepler/misc-fixes
2 parents 1504d90 + d43449a commit f1a497e

File tree

16 files changed

+69
-68
lines changed

16 files changed

+69
-68
lines changed

ports/atmel-samd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ SRC_ASF += \
206206

207207
else ifeq ($(CHIP_FAMILY), samd51)
208208
SRC_ASF += \
209-
hal/src/hal_rand_sync.c \
209+
hal/src/hal_rand_sync.c \
210210
hpl/core/hpl_core_m4.c \
211211
hpl/mclk/hpl_mclk.c \
212212
hpl/osc32kctrl/hpl_osc32kctrl.c \

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#define BOARD_HAS_CRYSTAL 1
2020

21-
#define DEFAULT_I2C_BUS_SCL (&pin_PA22)
22-
#define DEFAULT_I2C_BUS_SDA (&pin_PA23)
21+
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
22+
#define DEFAULT_I2C_BUS_SDA (&pin_PA22)
2323

2424
#define DEFAULT_SPI_BUS_SCK (&pin_PB13)
2525
#define DEFAULT_SPI_BUS_MOSI (&pin_PB12)

ports/atmel-samd/common-hal/microcontroller/Pin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ void never_reset_pin_number(uint8_t pin_number) {
110110
}
111111

112112
void reset_pin_number(uint8_t pin_number) {
113-
never_reset_pins[GPIO_PORT(pin_number)] &= ~(1 << GPIO_PIN(pin_number));
114-
115113
if (pin_number >= PORT_BITS) {
116114
return;
117115
}
118116

117+
never_reset_pins[GPIO_PORT(pin_number)] &= ~(1 << GPIO_PIN(pin_number));
118+
119119
#ifdef MICROPY_HW_NEOPIXEL
120120
if (pin_number == MICROPY_HW_NEOPIXEL->number) {
121121
neopixel_in_use = false;

ports/atmel-samd/supervisor/port.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@
8585
#if CIRCUITPY_GAMEPADSHIFT
8686
#include "shared-module/gamepadshift/__init__.h"
8787
#endif
88-
#include "shared-module/_pew/PewPew.h"
88+
#if CIRCUITPY_PEW
89+
#include "common-hal/_pew/PewPew.h"
90+
#endif
8991

9092
extern volatile bool mp_msc_enabled;
9193

ports/atmel-samd/timer_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#include "common-hal/pulseio/PulseIn.h"
3333
#include "common-hal/pulseio/PulseOut.h"
34-
#include "shared-module/_pew/PewPew.h"
34+
#include "common-hal/_pew/PewPew.h"
3535
#include "common-hal/frequencyio/FrequencyIn.h"
3636

3737
extern void _PM_IRQ_HANDLER(void);

ports/mimxrt10xx/supervisor/port.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
#if CIRCUITPY_GAMEPADSHIFT
5454
#include "shared-module/gamepadshift/__init__.h"
5555
#endif
56+
#if CIRCUITPY_PEW
5657
#include "shared-module/_pew/PewPew.h"
58+
#endif
5759
#include "supervisor/shared/tick.h"
5860

5961
#include "clocks.h"

0 commit comments

Comments
 (0)