From 037a2498be07a4fe21eac05de0b1df93fbe3f609 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 5 Apr 2023 13:12:13 -0500 Subject: [PATCH] there must be a better way to do this, but this works --- shared-module/audiomixer/Mixer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared-module/audiomixer/Mixer.c b/shared-module/audiomixer/Mixer.c index ce39f88919056..c84663c63ba24 100644 --- a/shared-module/audiomixer/Mixer.c +++ b/shared-module/audiomixer/Mixer.c @@ -33,10 +33,10 @@ #include "py/runtime.h" #include "shared-module/audiocore/__init__.h" -#include "shared-module/audiocore/RawSample.h" -#if (defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1)) -#include "periph.h" +#if CIRCUITPY_MICROCONTROLLER +// This looks hinky, but it's the way that the macros like __QADD16 are made available! +#include "shared-bindings/microcontroller/Pin.h" #endif void common_hal_audiomixer_mixer_construct(audiomixer_mixer_obj_t *self,