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.

AM3358: How to attach ISR in application

Part Number: AM3358

Is there API which I can use? Can you provide me a example code? Thanks

  • 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

  • Hi Pavel

          Thank you for your reply. Is it for AM3358? Thanks

  • Anping,

    Yes, these callback functions can be used with AM335x.

    Regards,
    Pavel