|
@@ -95,7 +95,7 @@ void I2C_controller_INST_IRQHandler(void) {
|
|
|
/*TRANSMIT data to ADC*/
|
|
/*TRANSMIT data to ADC*/
|
|
|
case DL_I2C_IIDX_CONTROLLER_TXFIFO_TRIGGER:
|
|
case DL_I2C_IIDX_CONTROLLER_TXFIFO_TRIGGER:
|
|
|
if (gTxADCcount < gTxADClen) {
|
|
if (gTxADCcount < gTxADClen) {
|
|
|
- gTxPacket[gTxADCcount] = DL_I2C_fillControllerTXFIFO(I2C_controller_INST,
|
|
|
|
|
|
|
+ DL_I2C_fillControllerTXFIFO(I2C_controller_INST,
|
|
|
&gTxPacket[gTxADCcount],
|
|
&gTxPacket[gTxADCcount],
|
|
|
(gTxADClen - gTxADCcount));
|
|
(gTxADClen - gTxADCcount));
|
|
|
gTxADCcount++;
|
|
gTxADCcount++;
|
|
@@ -169,13 +169,13 @@ int main(void)
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /*for(uint8_t slot= 0; slot< NUM_SLOTS; slot++){
|
|
|
|
|
|
|
+ for(uint8_t slot= 0; slot< NUM_SLOTS; slot++){
|
|
|
for(uint8_t channel= 0; channel< 2; channel++){
|
|
for(uint8_t channel= 0; channel< 2; channel++){
|
|
|
updateADCReading_multichannel(slot, channel);
|
|
updateADCReading_multichannel(slot, channel);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
delay_cycles(DELAY_CYCLE);
|
|
delay_cycles(DELAY_CYCLE);
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|