Hi ,
I'm using the DSP/BIOS in order to define GPIO 4 as an hw interrupt HWI_INT21.
how can I set this GPIO as an INPUT DIRECTION and trigger in FALLING EDGE with the DSP/BIOS configuration tools?
BR
Talmor
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 ,
I'm using the DSP/BIOS in order to define GPIO 4 as an hw interrupt HWI_INT21.
how can I set this GPIO as an INPUT DIRECTION and trigger in FALLING EDGE with the DSP/BIOS configuration tools?
BR
Talmor
Hi,
You can register the GPIO ISR using the BIOS. GPIO pin direction and edge triggering are related to HW which cannot be configured using BIOS. HWI_INT21 is not specific to any GPIO pin. It is common for all the pins and interrupt generated by any of the GPIO pin will cause triggering of the ISR registered to HWI_INT21.
Follow the below steps
1. Configure the "GPIO Direction Register" to set direction of GPIO pin.
2. Configure the "GPIO Interrupt Edge Trigger Enable Register" to configure the interrupt on falling edge
3. Configure "GPIO Interrupt Enable Register" to enable interrupt for a particular pin
4. Register GPIO ISR for HWI_INT21 using BIOS
5. Enable GPIO interrupts in IER1 register
6. Do other necessary configuration as per the requirement of your application
Regards,
Pratap
Hi Pratap,
I followed you step and it looks like I have to add one more function IRQ_enable(GPIO_event) in order for it to work.
This function required include to csl_intc.h . is that a problem? As much as I know INTC module and BIOS can't work together.
BR
Talmor
Hi Talmor,
IRQ_enable(GPIO_EVENT) enables the GPIO interrupts in IER1 register. You need CSL INTC module for executing this function. You can use the CSL INTC functions which does not effect the interrupt configurations in the tcf file. Alternativey you can use the functions C55_enableIER0, C55_enableIER1, C55_disableIER0 and C55_disableIER1 for enabling/disabling the interrupts in IER registers.
Pratap.
Hi ,
When linking my project I'm getting the following warning:
"creating output section $build.attributes without SECTION specification"
what amI doing wrong?
BR
Talmor
Hi Talmor,
Which codegen tool you are using?. Try updating your codegen tool to 4.2.0 or later
Pratap