mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
esp32/machine_pin: Make irq object a sub-field of pin object.
This simplifies pin generation. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
9cabee8252
commit
b0aec6a0ff
@@ -146,18 +146,18 @@
|
||||
|
||||
#endif
|
||||
|
||||
typedef struct _machine_pin_obj_t {
|
||||
mp_obj_base_t base;
|
||||
} machine_pin_obj_t;
|
||||
|
||||
typedef struct _machine_pin_irq_obj_t {
|
||||
mp_obj_base_t base;
|
||||
} machine_pin_irq_obj_t;
|
||||
|
||||
typedef struct _machine_pin_obj_t {
|
||||
mp_obj_base_t base;
|
||||
machine_pin_irq_obj_t irq;
|
||||
} machine_pin_obj_t;
|
||||
|
||||
extern const mp_obj_type_t machine_pin_irq_type;
|
||||
|
||||
extern const machine_pin_obj_t machine_pin_obj_table[GPIO_NUM_MAX];
|
||||
extern const machine_pin_irq_obj_t machine_pin_irq_obj_table[GPIO_NUM_MAX];
|
||||
|
||||
extern const mp_obj_dict_t machine_pin_board_pins_locals_dict;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user