Construction menu item>
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 18 Mar 2010 19:21:44 +0000 (19:21 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 18 Mar 2010 19:21:44 +0000 (19:21 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@420 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/apps/smartcard/smartcard.c
firmware/goodfet.c
firmware/lib/msp430x2618.c

index d8b8539..0d8de50 100644 (file)
@@ -74,4 +74,5 @@ int smartcardhandle(unsigned char app,
     debugstr("Unknown smartcard verb.");
     txdata(app,NOK,0);
   }
     debugstr("Unknown smartcard verb.");
     txdata(app,NOK,0);
   }
+  return 0;
 }
 }
index a61f79b..4d791f8 100644 (file)
@@ -158,7 +158,7 @@ int main(void)
       handle(app,verb,len);
     }else{
       //Listen to the blaberring.
       handle(app,verb,len);
     }else{
       //Listen to the blaberring.
-      for(i-0;i<len;i++)
+      for(i=0;i<len;i++)
        serial_rx();
       //Reply with an error.
       debugstr("Buffer length exceeded.");
        serial_rx();
       //Reply with an error.
       debugstr("Buffer length exceeded.");
index ed437d7..6e8675e 100644 (file)
@@ -126,6 +126,18 @@ void msp430_init_uart(){
   //IE2 |= UCA0RXIE;
 }
 
   //IE2 |= UCA0RXIE;
 }
 
+/* Info Flash Values
+CALDCO_16MHZ 0xdc CALBC1_16MHZ 0x8e   2274-000.txt
+CALDCO_16MHZ 0x74 CALBC1_16MHZ 0x8f   2618-000.txt
+CALDCO_16MHZ 0x6c CALBC1_16MHZ 0x8f   2618-001.txt
+CALDCO_16MHZ 0x97 CALBC1_16MHZ 0x8f   2618-002.txt
+CALDCO_16MHZ 0x6c CALBC1_16MHZ 0x8f   2618-003.txt
+CALDCO_16MHZ 0x95 CALBC1_16MHZ 0x8f   2618-004.txt
+CALDCO_16MHZ 0xcc CALBC1_16MHZ 0x8e   2618-005.txt
+CALDCO_16MHZ 0x87 CALBC1_16MHZ 0x8f   2618-006.txt
+CALDCO_16MHZ 0x96 CALBC1_16MHZ 0x8f   2619-001.txt
+*/
+
 //! Initialize the MSP430 clock.
 void msp430_init_dco() {
   if(CALBC1_16MHZ!=0xFF){
 //! Initialize the MSP430 clock.
 void msp430_init_dco() {
   if(CALBC1_16MHZ!=0xFF){