void io_ext_interrupt_test(void)
{
set_io_ext_interrupt_cbfun(my_io_isr_cbfun);
io_ext_interrupt_init(0, IO_PORTA_04, 1);
io_ext_interrupt_init(1, IO_PORTB_01, 1);
io_ext_interrupt_init(2, IO_PORTC_02, 1);
io_ext_interrupt_init(3, IO_PORTG_01, 1);
extern void wdt_clear();
while (1) {
wdt_clear();
}
}
杰理之io_ext_interrupt_test【篇】
最新推荐文章于 2024-08-09 15:50:30 发布