I'm trying to optimise my code in order to extend the battery life. The ULP advisor displays this message " (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead" for several lines such as
if (CALBC1_1MHZ ==0xFF || CALDCO_1MHZ == 0xFF) { while(1);}
and
if (FCTL3 & ACCVIFG ) { P1OUT |= LED0_Red; while(1); }
How can I use a timer module instead of while(1); ?
Thanks a lot.
Description Resource Path Location<a href="file:/c:/ti/ccsv6/tools/compiler/dmed/HTML/MSP430/1527.html">#1527-D</a> (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead main.c /project5 line 232