Update drv_gpio.c

This commit is contained in:
ZhuGangfei 2019-04-24 16:56:51 +08:00
parent 98d244e2db
commit 5ef79067e8
1 changed files with 2 additions and 2 deletions

View File

@ -411,14 +411,14 @@ const static struct rt_pin_ops _mm32_pin_ops =
mm32_pin_irq_enable, mm32_pin_irq_enable,
}; };
int mm32_hw_pin_init(void) int rt_hw_pin_init(void)
{ {
int result; int result;
result = rt_device_pin_register("pin", &_mm32_pin_ops, RT_NULL); result = rt_device_pin_register("pin", &_mm32_pin_ops, RT_NULL);
return result; return result;
} }
INIT_BOARD_EXPORT(mm32_hw_pin_init); INIT_BOARD_EXPORT(rt_hw_pin_init);
rt_inline void pin_irq_hdr(int irqno) rt_inline void pin_irq_hdr(int irqno)
{ {