Merge pull request #3045 from k0d/stm32_alignment_issue

Fixes issue with memory alignment in STM32
This commit is contained in:
Scott Shawcroft 2020-06-23 10:54:08 -07:00 committed by GitHub
commit f67b307371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ bool neopixel_in_use;
#define GPIO_PORT_COUNT (MP_ARRAY_SIZE(ports))
STATIC uint16_t claimed_pins[GPIO_PORT_COUNT];
STATIC uint16_t never_reset_pins[GPIO_PORT_COUNT];
STATIC uint16_t __ALIGNED(4) never_reset_pins[GPIO_PORT_COUNT];
void reset_all_pins(void) {
// Reset claimed pins