//! Handles a monitor command.
void monitor_handle_fn(uint8_t const app,
//! Handles a monitor command.
void monitor_handle_fn(uint8_t const app,
- uint8_t const verb,
- uint32_t const len)
+ uint8_t const verb,
+ uint32_t const len)
break;
case MONITOR_ECHO:
break;
case MONITOR_ECHO:
- //Echo back the same buffer.
- txdata(app,verb,len);
- break;
+ //Echo back the same buffer.
+ debugstr("About to monitor echo.");
+ txdata(app,verb,len);
+ break;
case MONITOR_LIST_APPS:
// transmit firmware build date
case MONITOR_LIST_APPS:
// transmit firmware build date
cmddata[0]=memorybyte[cmddataword[0]];
#else
debugstr("Monitor peeks are unsupported on this platform.");
cmddata[0]=memorybyte[cmddataword[0]];
#else
debugstr("Monitor peeks are unsupported on this platform.");
+ debughex(cmddataword[0]);
+ cmddata[0]=0x00;
#endif
txdata(app,verb,1);
break;
#endif
txdata(app,verb,1);
break;
cmddata[0] = memorybyte[cmddataword[0]];
#else
debugstr("Monitor pokes are unsupported on this platform.");
cmddata[0] = memorybyte[cmddataword[0]];
#else
debugstr("Monitor pokes are unsupported on this platform.");
+ debughex(cmddataword[0]);
+ cmddata[0]=0x00;
#endif
txdata(app,verb,1);
break;
#endif
txdata(app,verb,1);
break;
unsigned long len;
// MSP reboot count for reset input & reboot function located at 0xFFFE
volatile unsigned int reset_count = 0;
unsigned long len;
// MSP reboot count for reset input & reboot function located at 0xFFFE
volatile unsigned int reset_count = 0;
+
+ silent=0; //Don't trust globals.
+
#if (platform == tilaunchpad)
int ret=0;
#if (platform == tilaunchpad)
int ret=0;
void txdata(unsigned char app,
unsigned char verb,
unsigned long len){
void txdata(unsigned char app,
unsigned char verb,
unsigned long len){
if(silent)
return;
txhead(app,verb,len);
if(silent)
return;
txhead(app,verb,len);
TBCTL = 0x0204; /* Driven by SMCLK; disable Timer B interrupts;
reset timer in case it was previously in use */
#else
TBCTL = 0x0204; /* Driven by SMCLK; disable Timer B interrupts;
reset timer in case it was previously in use */
#else
- #warning "Function unimplemented for this platform."
+ #warning "prep_timer() unimplemented for this platform."
#endif
}
#if (platform != tilaunchpad)
#endif
}
#if (platform != tilaunchpad)
//USART_InitStructure.USART_BaudRate = 115200;
//USART_InitStructure.USART_BaudRate = 125200; //Close enough to 115200
//USART_InitStructure.USART_BaudRate = 115200;
//USART_InitStructure.USART_BaudRate = 125200; //Close enough to 115200
- USART_InitStructure.USART_BaudRate = 130000; //Close enough to 115200
+ //135000 is too high
+ //115200 is too low
+ USART_InitStructure.USART_BaudRate = 125000; //Close enough to 115200
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;