1: clean up diagnostic code, 16MHz SPI verified working

This commit is contained in:
pszsh 2026-03-09 00:03:10 -07:00
parent 397e7efacb
commit 725089a6b7
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,11 @@ void app_main(void)
printf("EIS4: AD5941 bring-up\n");
AD5940_MCUResourceInit(NULL);
vTaskDelay(pdMS_TO_TICKS(50));
AD5940_HWReset();
vTaskDelay(pdMS_TO_TICKS(200));
AD5940_Initialize();
uint32_t adiid = AD5940_ReadReg(REG_AFECON_ADIID);
@ -22,7 +26,7 @@ void app_main(void)
printf("CHIPID: 0x%04lX\n", chipid);
if (adiid != AD5941_EXPECTED_ADIID)
printf("FAIL: cannot communicate with AD5941 — check SPI wiring\n");
printf("FAIL: cannot communicate with AD5941\n");
else
printf("AD5941 alive and responding\n");
}