Part Number: MSP430FR5994
Hi everyone,
I was wondering if there is a way to check a main.c file to see if GPIO is configured properly.
For example, we know that Port 7 should be configured in the following manner:
P7DIR |= 0xFF;
Is there a way to check if this has been done, given a main.c file?
Ideally, we would use a testing framework or simulate the code and read the hardware registers from there, but I'm unsure if this exists for TI microcontrollers.
A trivial solution would be to make a Python script that parses the .c file and searches for "P7DIR |= 0xFF;" or some combination of that. Are there any better approaches to this?