Add procedure ids for mcu calibration with external loopback
#include "typedefs.h"
-bool extLoopback = true;
bool runProcedure = false;
uint8_t currentInstruction;
extern float_type RefClk;
@@ -110,10 +109,10 @@ void main() //main routine
// P1 = MCU_IDLE;
// break;
case 1: //CalibrateTx
- P1 = MCU_IDLE | CalibrateTx(extLoopback);
+ P1 = MCU_IDLE | CalibrateTx(false);
break;
case 2: //CalibrateRx
- P1 = MCU_IDLE | CalibrateRx(extLoopback);
+ P1 = MCU_IDLE | CalibrateRx(false);
break;
case 3:
UpdateFreq(0);
@@ -135,6 +134,13 @@ void main() //main routine
case 8:
P1 = ProxyRead();
break;
+
+ case 17: //CalibrateTx
+ P1 = MCU_IDLE | CalibrateTx(true);
+ break;
+ case 18: //CalibrateRx
+ P1 = MCU_IDLE | CalibrateRx(true);
+ break;
case 255: //return program ID
P1 = 0x03;
break;
