Tool/software:
Hi,TI:
How do I implement the following functions in 9.2.0MCAL?
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, our expert for this topic is out of office and will return by 30th Dec, please expect a response early that week.
Hello,
You need edge trigger configuration for interrupt triggering?
You can find it in 'PortDioConfig'. Open 'Outline' window ---> PortConfigSet ---> PortDio_config ---> PortDioConfig_<PortDioPinNumber>.
Thanks,
Gunjan
Hello Jie,
PortPinSetEdgeTrigger was removed from configurations because it was not used meaningfully in MCAL driver code.
Thanks,
Gunjan
However, it is useful for TriggerEn in 8.6.2 library code
void Port_GPIOEdgTrigConfigure(const gpioPORT_t *portAddr,uint32 bit, Port_EdgeTrig TriEdge, boolean TriggerEn) { uint32 regVal = 0U; if(TriggerEn == TRUE) { if(TriEdge == PORT_RISING_EDGE) { /* Only enable Rising edge detection*/ regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->SET_RIS_TRIG,regVal); regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->CLR_FAL_TRIG,regVal); } else if(TriEdge == PORT_FALLING_EDGE) { /* Only enable Rising edge detection*/ regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->SET_FAL_TRIG,regVal); regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->CLR_RIS_TRIG,regVal); } else { /* Enable both rising and falling edge*/ regVal = M_REG_READ32(&portAddr->SET_FAL_TRIG); regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->SET_FAL_TRIG,regVal); regVal = M_REG_READ32(&portAddr->SET_RIS_TRIG); regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->SET_RIS_TRIG,regVal); } } else { regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->CLR_FAL_TRIG,regVal); regVal |= (uint32) 1U<<bit; M_REG_WRITE32(&portAddr->CLR_RIS_TRIG,regVal); } }
Hello Jie,
Interrupt was not supported for Gpio in MCAL08.06.02. This code was updated when interrupt support added for Dio module.
Is there any functionality affected on your end due to this change?
Thanks,
Gunjan