added an "app constant" for 0x80 -- the RESET app. Otherwise, naive
firmware coders might be tempted to use that as an app ID *cough*
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@469
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
app=serial_rx();
// If the app is the reset byte (0x80) increment and loop
- if (app == 0x80) {
+ if (app == RESET) {
reset_count++;
if (reset_count > 4) {
#define PLUGIN 0x72
#define SMARTCARD 0x73
+#define RESET 0x80 // not a real app -- causes firmware to reset
+
#define DEBUGAPP 0xFF
//! Initialize the MSP430 clock.
void msp430_init_dco() {
+ P8SEL = 0; // disable XT2 on P8.7/8
if(CALBC1_16MHZ!=0xFF){
//Info is intact, use it.
BCSCTL1 = CALBC1_16MHZ;