![Damien George](/assets/img/avatar_default.png)
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>
18 lines
409 B
C
18 lines
409 B
C
#ifndef MICROPY_INCLUDED_ZEPHYR_MODMACHINE_H
|
|
#define MICROPY_INCLUDED_ZEPHYR_MODMACHINE_H
|
|
|
|
#include "py/obj.h"
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ_0(machine_info_obj);
|
|
|
|
typedef struct _machine_pin_obj_t {
|
|
mp_obj_base_t base;
|
|
const struct device *port;
|
|
uint32_t pin;
|
|
struct _machine_pin_irq_obj_t *irq;
|
|
} machine_pin_obj_t;
|
|
|
|
void machine_pin_deinit(void);
|
|
|
|
#endif // MICROPY_INCLUDED_ZEPHYR_MODMACHINE_H
|