summaryrefslogtreecommitdiff
path: root/extmod/modmachine.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-10-26 11:39:40 +1100
committerDamien George <damien@micropython.org>2023-10-26 16:20:53 +1100
commit90023b4dcf7bfeb6eccd5d0d13efc4832cf187e7 (patch)
tree97cab73dc63d239084f2ee8a05d8d712da9cf60c /extmod/modmachine.h
parent5b4a2baff6b42b2b428cd58a95407a66387e4305 (diff)
extmod/modmachine: Clean up decls of machine types to use common ones.
The machine_i2c_type, machine_spi_type and machine_timer_type symbols are already declared in extmod/modmachine.h and should not be declared anywhere else. Also move declarations of machine_pin_type and machine_rtc_type to the common header in extmod. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modmachine.h')
-rw-r--r--extmod/modmachine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/modmachine.h b/extmod/modmachine.h
index c18c55553..2a7ce336e 100644
--- a/extmod/modmachine.h
+++ b/extmod/modmachine.h
@@ -96,7 +96,9 @@ typedef struct _machine_wdt_obj_t machine_wdt_obj_t;
extern const mp_obj_type_t machine_adc_type;
extern const mp_obj_type_t machine_i2c_type;
extern const mp_obj_type_t machine_i2s_type;
+extern const mp_obj_type_t machine_pin_type;
extern const mp_obj_type_t machine_pwm_type;
+extern const mp_obj_type_t machine_rtc_type;
extern const mp_obj_type_t machine_spi_type;
extern const mp_obj_type_t machine_timer_type;
extern const mp_obj_type_t machine_uart_type;