Skip to content

Commit f67b307

Browse files
authored
Merge pull request #3045 from k0d/stm32_alignment_issue
Fixes issue with memory alignment in STM32
2 parents 0b99bac + 23da0fa commit f67b307

File tree

1 file changed

+1
-1
lines changed
  • ports/stm/common-hal/microcontroller

1 file changed

+1
-1
lines changed

ports/stm/common-hal/microcontroller/Pin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bool neopixel_in_use;
5252
#define GPIO_PORT_COUNT (MP_ARRAY_SIZE(ports))
5353

5454
STATIC uint16_t claimed_pins[GPIO_PORT_COUNT];
55-
STATIC uint16_t never_reset_pins[GPIO_PORT_COUNT];
55+
STATIC uint16_t __ALIGNED(4) never_reset_pins[GPIO_PORT_COUNT];
5656

5757
void reset_all_pins(void) {
5858
// Reset claimed pins

0 commit comments

Comments
 (0)