Skip to content

Commit cba21cc

Browse files
committed
T
1 parent 058df19 commit cba21cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/drivers/include/drivers/dev_pin.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ struct rt_pin_irqchip
8989
int irq;
9090
rt_base_t pin_range[2];
9191
};
92+
93+
struct rt_pin_irq_hdr;
9294
#endif /* RT_USING_DM */
9395

9496
/**
@@ -98,7 +100,13 @@ struct rt_device_pin
98100
{
99101
struct rt_device parent;
100102
#ifdef RT_USING_DM
103+
/* MUST keep the order member after parent */
101104
struct rt_pin_irqchip irqchip;
105+
/* Fill by DM */
106+
rt_base_t pin_start;
107+
rt_size_t pin_nr;
108+
rt_list_t list;
109+
struct rt_pin_irq_hdr *legacy_isr;
102110
#endif /* RT_USING_DM */
103111
const struct rt_pin_ops *ops;
104112
};

0 commit comments

Comments
 (0)