Is there API which I can use? Can you provide me a example code? Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Anping,
I can provide you example code for GPIO ISR. ISR is also named callback in RTOS code. Have a look in below files, check AppGpioCallbackFxn() and GPIO_setCallback() functions.
pdk_am335x/packages/ti/drv/gpio/test/led_blink/src/main_led_blink.c
Example application main file. This application will toggle the led.
* The led toggling will be done inside an callback function, which
* will be called by Interrupt Service Routine. Interrupts are
* triggered manually and no external source is used to trigger
* interrupts.
Check also below user guide:
Regards,
Pavel
Anping,
Yes, these callback functions can be used with AM335x.
Regards,
Pavel