2021-01-20 08:34:08 -05:00
|
|
|
#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;
|
2022-10-06 14:21:51 -04:00
|
|
|
extern const mp_obj_type_t machine_i2c_type;
|
2021-09-03 23:34:53 -04:00
|
|
|
extern const mp_obj_type_t machine_i2s_type;
|
2021-01-20 08:34:08 -05:00
|
|
|
extern const mp_obj_type_t machine_pin_type;
|
2021-02-18 13:45:23 -05:00
|
|
|
extern const mp_obj_type_t machine_rtc_type;
|
2021-01-20 08:34:08 -05:00
|
|
|
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);
|
2021-09-03 23:34:53 -04:00
|
|
|
void machine_i2s_init0(void);
|
2021-01-20 08:34:08 -05:00
|
|
|
|
2022-05-05 03:26:16 -04:00
|
|
|
struct _machine_spi_obj_t *spi_from_mp_obj(mp_obj_t o);
|
2022-04-27 05:11:24 -04:00
|
|
|
NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args);
|
2022-05-05 03:26:16 -04:00
|
|
|
|
2021-01-20 08:34:08 -05:00
|
|
|
#endif // MICROPY_INCLUDED_RP2_MODMACHINE_H
|