Aes encryption code

Dependencies:   Crypto USBDevice mbed

Fork of larada by MZJ

Revision:
4:11520c01d65f
Parent:
3:cff2f80f0a42
Child:
5:7214d56ee5ae
--- a/main.cpp	Tue Mar 08 20:38:38 2016 +0000
+++ b/main.cpp	Wed Mar 09 09:37:50 2016 +0000
@@ -2,7 +2,7 @@
 #include "USBSerial.h"
 #include "IAP.h"
 
-#define FAKE_HW
+//#define FAKE_HW
 
 #define SERIAL //comment for USB operation, uncomment for serial
 #define CALIBRATE 0
@@ -567,10 +567,6 @@
     write_settings();
     pc.printf("Wrote the current control parameters to memory.\r\n");
     break;
-  case 'x':
-    tip_sensor = !tip_sensor;
-    pc.printf("tip_sensor = %d\r\n", tip_sensor);
-    break;
 
   default:
     usage();    
@@ -1070,17 +1066,16 @@
   static State last_state = IDLE;
   
   init();
-  #if 0
+  
   if(FUNCTION_CHECK) functional_check();
   if(CALIBRATE){
       calibrate(true);
       while(1)calibrate(false);
   }
-  #endif
   
   while(1){
     
-    //getInput();
+    getInput();
     
     check_on_off();