Menu implementation structure done. Menus far from finished but basic structure is functional

Scheck-in for TLa for PID tuning

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@252 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-10-17 07:40:31 +00:00
parent c323bfd04e
commit 3426a0ad9b
9 changed files with 461 additions and 82 deletions

View File

@@ -805,6 +805,11 @@ static ErrorStatus initPlatformDevices (void)
MAX5715_writePOWER_NORMAL(max5715, MAX5715_SEL_DACA | MAX5715_SEL_DACB | MAX5715_SEL_DACC);
// Set external DAC LATCH mode off for channels A, B, C
MAX5715_writeCONFIG_LATCH_OFF(max5715, MAX5715_SEL_DACA | MAX5715_SEL_DACB | MAX5715_SEL_DACC);
// Set output voltage to 0
MAX5715Channel_setValue(&max5715->dac[0], 0);
MAX5715Channel_setValue(&max5715->dac[1], 0);
MAX5715Channel_setValue(&max5715->dac[2], 0);
}
else if (PCBA_getInstance()->pcba == Tesla)
{
@@ -815,6 +820,9 @@ static ErrorStatus initPlatformDevices (void)
MAX5715_writePOWER_NORMAL(max5715, MAX5715_SEL_DACB);
// Set external DAC LATCH mode off for channels B
MAX5715_writeCONFIG_LATCH_OFF(max5715, MAX5715_SEL_DACB);
// Set output voltage to 0
MAX5715Channel_setValue(&max5715->dac[1], 0);
}
}