Skip to content

Commit 38b3a34

Browse files
committed
[bsp][driver] 初始化 BSP 中的 rt_pin_ops
1 parent 9d0b860 commit 38b3a34

File tree

31 files changed

+129
-8
lines changed

31 files changed

+129
-8
lines changed

bsp/allwinner_tina/drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ static const struct rt_pin_ops ops =
538538
pin_attach_irq,
539539
pin_detach_irq,
540540
pin_irq_enable,
541+
RT_NULL,
541542
};
542543
#endif
543544

bsp/apollo2/board/gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ const static struct rt_pin_ops am_pin_ops =
212212
am_pin_attach_irq,
213213
am_pin_dettach_irq,
214214
am_pin_irq_enable,
215+
RT_NULL,
215216
};
216217

217218
int rt_hw_pin_init(void)

bsp/at32/Libraries/rt_drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ const static struct rt_pin_ops _at32_pin_ops =
496496
at32_pin_attach_irq,
497497
at32_pin_dettach_irq,
498498
at32_pin_irq_enable,
499+
RT_NULL,
499500
};
500501

501502
rt_inline void pin_irq_hdr(int irqno)

bsp/beaglebone/drivers/gpio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ static struct rt_pin_ops am33xx_pin_ops =
8484
am33xx_pin_mode,
8585
am33xx_pin_write,
8686
am33xx_pin_read,
87+
RT_NULL,
88+
RT_NULL,
89+
RT_NULL,
90+
RT_NULL,
8791
};
8892

8993
int rt_hw_gpio_init(void)

bsp/essemi/es32f0271/drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ const static struct rt_pin_ops _es32f0_pin_ops =
450450
es32f0_pin_attach_irq,
451451
es32f0_pin_detach_irq,
452452
es32f0_pin_irq_enable,
453+
RT_NULL,
453454
};
454455

455456
int rt_hw_pin_init(void)

bsp/essemi/es32f0334/drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ const static struct rt_pin_ops _es32f0_pin_ops =
408408
es32f0_pin_attach_irq,
409409
es32f0_pin_detach_irq,
410410
es32f0_pin_irq_enable,
411+
RT_NULL,
411412
};
412413

413414
int rt_hw_pin_init(void)

bsp/essemi/es32f0654/drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ const static struct rt_pin_ops _es32f0_pin_ops =
408408
es32f0_pin_attach_irq,
409409
es32f0_pin_detach_irq,
410410
es32f0_pin_irq_enable,
411+
RT_NULL,
411412
};
412413

413414
int rt_hw_pin_init(void)

bsp/essemi/es32f369x/drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ const static struct rt_pin_ops _es32f3_pin_ops =
408408
es32f3_pin_attach_irq,
409409
es32f3_pin_detach_irq,
410410
es32f3_pin_irq_enable,
411+
RT_NULL,
411412
};
412413

413414
int rt_hw_pin_init(void)

bsp/essemi/es8p508x/drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ const static struct rt_pin_ops _es8p_pin_ops =
382382
es8p_pin_attach_irq,
383383
es8p_pin_detach_irq,
384384
es8p_pin_irq_enable,
385+
RT_NULL,
385386
};
386387

387388
int rt_hw_pin_init(void)

bsp/gd32303e-eval/drivers/drv_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ const static struct rt_pin_ops _gd32_pin_ops =
497497
gd32_pin_attach_irq,
498498
gd32_pin_detach_irq,
499499
gd32_pin_irq_enable,
500+
RT_NULL,
500501
};
501502

502503
int rt_hw_pin_init(void)

0 commit comments

Comments
 (0)