OK, I2C read by DMA works

This commit is contained in:
Edward Emelianov
2025-09-19 21:24:19 +03:00
parent 934f4fbddd
commit 080be6a1ec
8 changed files with 103 additions and 109 deletions

View File

@@ -53,7 +53,7 @@ int main(void){
if(l < 0) USND("ERROR: USB buffer overflow or string was too long");
else if(l){
const char *ans = parse_cmd(inbuff);
if(ans) USND(ans);
if(ans) U(ans);
}
if(i2c_scanmode){
uint8_t addr;
@@ -65,7 +65,7 @@ int main(void){
U(") - found device\n");
}
}
if(i2cdma_haderr()) USND("Error reading I2C using DMA");
if(i2cdma_getbuf(NULL)) i2c_bufdudump();
if(i2c_dma_haderr()) USND("Error reading I2C using DMA");
if(i2c_dma_getbuf(NULL)) i2c_bufdudump();
}
}