I am using an S32K148 MCU.
I want to set a GPIO(eg:PTD22)to high level interrupt, However, it cannot be set through the ICU module.
GPIO of s32k148 supports high-level interrupt。
RM:
1000 ISF flag and Interrupt when logic 0. 1001 ISF flag and Interrupt on rising-edge 1010 ISF flag and Interrupt on falling-edge 1011 ISF flag and Interrupt on either edge |
Question:How to set GPIO high level interrupt by EB
Thanks.
Solved! Go to Solution.
Hi @xaiodongyang,
You can refer to the attached example with FALLING EDGE, if you want to use RISING EDGE, you can modify "IcuDefaultStartEdge" to ICU_RISING_EDGE.
Please install S32K1XX_MCAL4_3_RTM_1_0_2 and EB 24.0.1 for this example.
Best regards,
Dan
Hi @xaiodongyang,
The ICU module didn't have a configuration for high-level interrupt. So, from my point of view, you can configure use of RISING EDGE interrupt with a notification function, and in this function, you call