created AD9252 for old gotthard modules in use, it runs in both roi and non roi for old and new modules, data needs to be checked by Jiaguo to confirm some parts of the code that has FIXME to be checked later

This commit is contained in:
2018-11-12 13:51:51 +01:00
parent 8942098a90
commit e3a0c1373c
9 changed files with 449 additions and 98 deletions

View File

@ -2151,7 +2151,14 @@ int write_adc_register(int file_des) {
#ifndef VIRTUAL
// only set
if (Server_VerifyLock() == OK)
setAdc(addr, val);
#ifdef JUNGFRAUD
setAdc9257(addr, val);
#elif GOTTHARDD
if (getBoardRevision() == 1)
setAdc9252(addr, val);
else
setAdc9257(addr, val);
#endif
#endif
#endif
return Server_SendResult(file_des, INT32, UPDATE, NULL, 0);