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.

AM6442: GPIO Interrupt Question

Part Number: AM6442
Other Parts Discussed in Thread: SYSCONFIG

Hello;

SDK version : mcu_plus_sdk_am64x_10_01_00_32

GPIO Interrupt Driver example using A53 core was compiled OK with LOW Level Interrupt setting in

void gpio_input_interrupt_main(void *args)  by setting to FALSE :
 
    /* GPIO interrupt is a pulse type interrupt */
    hwiPrms.isPulse  = FALSE;//TRUE;
 
even in the Sysconfig file there is no level setting as :
image.png
 
So is it correct to set at the code as above as FALSE for low level interrupt?
 
Another question is I noticed the API definition in HwiP.h :
 
typedef struct HwiP_Params_ {

    uint32_t intNum;   /**< CPU interrupt number. */
    HwiP_FxnCallback callback; /**< Callback to call when interrupt is received */
    void *args; /**< Arguments to pass to the callback */
    uint16_t eventId; /**< Event ID to register against, only used with c6x with event combiner */
    uint8_t priority; /**< Interrupt priority, only used with ARM R5, ARM M4 */
    uint8_t isFIQ; /**< 0: Map interrupt as ISR, 1: map interrupt as FIQ, only used with ARM R5 */
    uint8_t isPulse; /**< 0: Map interrupt as level interrupt, 1: Map interrupt as pulse interrupt, only used with ARM R5, ARM M4 */

} HwiP_Params;
 
What does it mean in the comment : /only used with ARM R5, ARM M4 */  ???
 
Here I am running the GPIO Interrupt example using A53 core.
---------------------

Additional information :

The build for interrupt will not work for LEVEL interrupt instead of pulse interrupt (falling or rising edge).

How to use the same example to set the input LEVEL = 0 interrupt ?

Thank you.

 
Huynh