diff options
| author | Dan Halbert <halbert@adafruit.com> | 2021-01-21 16:54:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-21 16:54:37 -0500 |
| commit | 2249a33203339803c8a0b23e80eec15d77b7f23e (patch) | |
| tree | 49fb85346b3ce60a08ad7780b8aec7fd0f72366f /shared-bindings/microcontroller/__init__.h | |
| parent | eff68b0d9fb101176a808cb68f0158e1615ed8bf (diff) | |
| parent | 9b8246f889bda79b5945c7acbd016de4886419ef (diff) | |
Merge pull request #4031 from tannewt/rp2040
Add initial RP2040 support
Diffstat (limited to 'shared-bindings/microcontroller/__init__.h')
| -rw-r--r-- | shared-bindings/microcontroller/__init__.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shared-bindings/microcontroller/__init__.h b/shared-bindings/microcontroller/__init__.h index 0dafc74c7..39d3e718b 100644 --- a/shared-bindings/microcontroller/__init__.h +++ b/shared-bindings/microcontroller/__init__.h @@ -29,6 +29,7 @@ #include "py/obj.h" #include "py/mpconfig.h" +#include "py/objtuple.h" #include "common-hal/microcontroller/Processor.h" #include "shared-bindings/microcontroller/ResetReason.h" @@ -44,7 +45,13 @@ extern void common_hal_mcu_reset(void); extern const mp_obj_dict_t mcu_pin_globals; +#if CIRCUITPY_PROCESSOR_COUNT == 1 extern const mcu_processor_obj_t common_hal_mcu_processor_obj; +#elif CIRCUITPY_PROCESSOR_COUNT > 1 +extern const mp_rom_obj_tuple_t common_hal_mcu_processor_obj; +#else +#error "Invalid processor count" +#endif #if CIRCUITPY_INTERNAL_NVM_SIZE > 0 |
