30: 30 41 ret
*/
-/*
+
//! Initialize the debugger
void ccdebuginit(){
//Port output BUT NOT DIRECTION is set at start.
//Raise !RST.
P5OUT|=RST;
}
-*/
-
-//! Initialize the debugger.
-void ccdebuginit();
//! Read and write a CC bit.
unsigned char cctrans8(unsigned char byte){
case 0x01://CC1110
case 0x81://CC2510
case 0x91://CC2511
- flash_word_size=0x02;
//debugstr("2 bytes/flash word");
+ flash_word_size=0x02;
break;
default:
- debugstr("Warning: Guessing flash word size.");
+ //debugstr("Warning: Guessing flash word size.");
+ flash_word_size=0;
+ break;
case 0x85://CC2430
case 0x89://CC2431
//debugstr("4 bytes/flash word");
while(!(cc_read_status()&CC_STATUS_CPUHALTED)){
- P1OUT^=1;//blink LED while flashing
+ PLEDOUT^=PLEDPIN;//blink LED while flashing
}
//debugstr("Done flashing.");
- P1OUT&=~1;//clear LED
+ PLEDOUT&=~PLEDPIN;//clear LED
}
//! Read the PC