Ver Fonte

Main file minor changes for Battery Measurement testing

namrota ghosh há 7 meses atrás
pai
commit
50bccac98d
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      main.c
  2. 1 1
      src/config.h

+ 2 - 2
main.c

@@ -60,8 +60,8 @@ void I2C_1_INST_IRQHandler(void)
             mcuSendCommand = true;
             rxPacket.rxComplete= true;
             txPacket.txComplete= true;
-            DL_I2C_flushControllerRXFIFO(I2C_INST);
-            DL_I2C_flushControllerTXFIFO(I2C_INST);
+            DL_I2C_flushControllerRXFIFO(I2C_1_INST);
+            DL_I2C_flushControllerTXFIFO(I2C_1_INST);
             break;
 
         case DL_I2C_IIDX_CONTROLLER_ARBITRATION_LOST:

+ 1 - 1
src/config.h

@@ -7,7 +7,7 @@
 #define BATTERY_THRESHOLD (50)
 #define TEMPERATURE_MAX_C (60)
 #define MAX_CYCLES (2)
-#define TARGET_BASE_ADDRESS (0x49)
+#define TARGET_BASE_ADDRESS (0x48)
 #define MEASUREMENT_CHECK_INTERVAL 3200000 //Do not know yet the exact timing
 
 typedef struct{