90023b4dcf
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>
15 lines
408 B
C
15 lines
408 B
C
#ifndef MICROPY_INCLUDED_RP2_MODMACHINE_H
|
|
#define MICROPY_INCLUDED_RP2_MODMACHINE_H
|
|
|
|
#include "py/obj.h"
|
|
|
|
void machine_pin_init(void);
|
|
void machine_pin_deinit(void);
|
|
void machine_i2s_init0(void);
|
|
void machine_pwm_deinit_all(void);
|
|
|
|
struct _machine_spi_obj_t *spi_from_mp_obj(mp_obj_t o);
|
|
NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args);
|
|
|
|
#endif // MICROPY_INCLUDED_RP2_MODMACHINE_H
|