Part Number: CC1310
Tool/software: Code Composer Studio
Hi
For an extremely simple CC1310 application, I want to use a GPIO output.
Using the CC13xx Driver Library, I do the following:
// Configure pin as standard digital output
IOCPinTypeGpioOutput( PWRKEY_PORT );
// Toggle the pin for test purpose:
GPIO_writeDio( PWRKEY_PORT, 0 );
GPIO_writeDio( PWRKEY_PORT, 1 );
GPIO_writeDio( PWRKEY_PORT, 0 );
The above code compiles OK. But when running the code on the target, shows that the calls to "GPIO_writeDio()" is not compiled or optimized out: I can't set a breakpoint on the three lines, and singlestepping just jumps over.
The project uses no optimization, so why are these lines optimized away?
Am I doing anything wrong?
Thanks, Kaare