aboutsummaryrefslogtreecommitdiff
path: root/ports/rp2/modmachine.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/rp2/modmachine.h')
-rw-r--r--ports/rp2/modmachine.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/ports/rp2/modmachine.h b/ports/rp2/modmachine.h
new file mode 100644
index 000000000..d09c83aee
--- /dev/null
+++ b/ports/rp2/modmachine.h
@@ -0,0 +1,18 @@
+#ifndef MICROPY_INCLUDED_RP2_MODMACHINE_H
+#define MICROPY_INCLUDED_RP2_MODMACHINE_H
+
+#include "py/obj.h"
+
+extern const mp_obj_type_t machine_adc_type;
+extern const mp_obj_type_t machine_hw_i2c_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_spi_type;
+extern const mp_obj_type_t machine_timer_type;
+extern const mp_obj_type_t machine_uart_type;
+extern const mp_obj_type_t machine_wdt_type;
+
+void machine_pin_init(void);
+void machine_pin_deinit(void);
+
+#endif // MICROPY_INCLUDED_RP2_MODMACHINE_H