export mcu=msp430x2618
make -e
export mcu=msp430x2618
make -e
+
+
+Some weird switches,
+1) Build for a static DCO configuration. Useful for standalone firmware.
+CFLAGS="-DSTATICDCO=0x8F9E" make clean all
+ #ifdef STATICDCO
+ BCSCTL1 = (STATICDCO>>8);
+ DCOCTL = (STATICDCO&0xFF);
+ #else
if(CALBC1_16MHZ!=0xFF){
//Info is intact, use it.
BCSCTL1 = CALBC1_16MHZ;
if(CALBC1_16MHZ!=0xFF){
//Info is intact, use it.
BCSCTL1 = CALBC1_16MHZ;
choice[0]++;
choice[0]%=dco_calibrations_count;
}
choice[0]++;
choice[0]%=dco_calibrations_count;
}
//Minor delay.
while(i--);
//Minor delay.
while(i--);