Other Parts Discussed in Thread: SYSCONFIG,
Hi,
Each pin is set using Sysconfig.
[Question 1]
I want to dynamically switch functions using the same pin.
Specifically, I want to use the RX pin of the UART as the input interrupt pin of GPIO, and when an input interrupt comes, I want to wake up the CPU and switch to the UART for communication.
Sysconfig is a GUI-based tool for initial pin settings.
Therefore, when dynamically switching pin assignments as described above, it is necessary to describe in the code base without using sysconfig . Is this my understanding correct?
[Question 2]
If Question 1 is "Yes", how should I write the interrupt handler on the side that is not registered on Sysconfig?
If you registered with Sysconfig, you can set it with GPIO_setCallback.
However, in the case of conflicting pins, GPIO_setCallback cannot be used because it cannot be registered with Sysconfig?
I feel that it can be done by using "Hwi_create", but there are some places where I don't know how to use it, so I would like advice such as the best solution.
Device: MSP432P401R
OS: TI-RTOS
Thanks,
Koki