summaryrefslogtreecommitdiff
path: root/shared-bindings/microcontroller/Processor.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-07-21 16:26:46 -0700
committerScott Shawcroft <scott@tannewt.org>2020-07-22 16:26:46 -0700
commit2bd6d056638f05185eb497ca2d039ebe9f386327 (patch)
treea4e2711f774f400d034d67369212a914faedacea /shared-bindings/microcontroller/Processor.h
parentd22283c9c44949242b16fdd4ba4b9d8c55a58add (diff)
Add externs. GCC10 complains about duplicate defines
Diffstat (limited to 'shared-bindings/microcontroller/Processor.h')
-rw-r--r--shared-bindings/microcontroller/Processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/microcontroller/Processor.h b/shared-bindings/microcontroller/Processor.h
index 1088112f4..0f520f940 100644
--- a/shared-bindings/microcontroller/Processor.h
+++ b/shared-bindings/microcontroller/Processor.h
@@ -31,7 +31,7 @@
#include "common-hal/microcontroller/Processor.h"
-const mp_obj_type_t mcu_processor_type;
+extern const mp_obj_type_t mcu_processor_type;
uint32_t common_hal_mcu_processor_get_frequency(void);
float common_hal_mcu_processor_get_temperature(void);