struct mtk_gpioif_test {
u32 group;
};
int mtk_os_hal_gpioif_int_callback(void *data)
{
struct mtk_gpioif_test *gpioif_test = data;
return 0;
}
- Set GPIOIF Event Counter Direction mode:
mtk_os_hal_gpioif_int_callback, (void *)gpioif_test)
to register callback function.
to enable hardware reset of GPIOIF event counter.
to add GPIOIF GPIO_0 & GPIO_1 & GPIO_2 of one group de-glitch setting.
interrupt_limit_v)
to set different interrupt mode or saturation mode.
low_limit, high_limit, reset_value, clock_source)
to set GPIOIF Direction mode setting.
to clear all interrupt then enable all interrupt.
-Input high/low singal to GPIOIF GPIO_0 and GPIO_1,
the interrupt callback function will be called
swhen interrupt is asserted.
- Set GPIOIF Event Counter Up Down mode:
mtk_os_hal_gpioif_int_callback, (void *)gpioif_test)
to register callback function.
to enable hardware reset of GPIOIF event counter.
to add GPIOIF GPIO_0 & GPIO_1 & GPIO_2 of one group de-glitch setting.
interrupt_limit_v)
to set different interrupt mode or saturation mode.
low_limit, high_limit, reset_value, clock_source)
to set GPIOIF Up Down mode setting.
to clear all interrupt then enable all interrupt.
-Input high/low singal to GPIOIF GPIO_0 and GPIO_1,
the interrupt callback function will be called
when interrupt is asserted.
- Set GPIOIF Event Counter Quadrature mode:
-Call mtk_os_hal_gpioif_int_callback_register(3,
mtk_os_hal_gpioif_int_callback, (void *)gpioif_test)
to register callback function.
to enable hardware reset of GPIOIF event counter.
to add GPIOIF GPIO_0 & GPIO_1 & GPIO_2 of one group de-glitch setting.
interrupt_limit_v)
to set different interrupt mode or saturation mode.
low_limit, high_limit, reset_value, clock_source)
to set GPIOIF Quadrature mode setting.
to clear all interrupt then enable all interrupt.
-Input high/low singal to GPIOIF GPIO_0 and GPIO_1,
the interrupt callback function will be called
when interrupt is asserted.
- Set GPIOIF Capture Counter Mode:
-Call mtk_os_hal_gpioif_int_callback_register(3,
mtk_os_hal_gpioif_int_callback, (void *)gpioif_test)
to register callback function.
to enable hardware reset of GPIOIF event counter.
to add GPIOIF GPIO_0 & GPIO_1 & GPIO_2 of one group de-glitch setting.
edge_type_gpio_1, clock_source)
to set GPIOIF Capture Counter Mode setting.
low_limit, high_limit, reset_value, clock_source)
to set GPIOIF Quadrature mode setting.
to clear all interrupt then enable all interrupt.
-Input high/low singal to GPIOIF GPIO_0 and GPIO_1,
the interrupt callback function will be called
when interrupt is asserted.