small bugfix
EIVE/eive-obsw/pipeline/pr-develop Build queued... Details

This commit is contained in:
Robin Müller 2022-10-27 08:53:03 +02:00
parent cace1217df
commit 921f413888
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 1 additions and 3 deletions

View File

@ -88,8 +88,7 @@ void PdecHandler::writePdecConfig() {
// Configure all MAP IDs as invalid
for (int idx = 0; idx <= MAX_MAP_ADDR; idx += 4) {
// TODO: adding 1 / 4 results in + 0. Check correctness
*(memoryBaseAddress + MAP_ADDR_LUT_OFFSET + idx + 1 / 4) =
*(memoryBaseAddress + MAP_ADDR_LUT_OFFSET + idx / 4) =
NO_DESTINATION << 24 | NO_DESTINATION << 16 | NO_DESTINATION << 8 | NO_DESTINATION;
}
@ -100,7 +99,6 @@ void PdecHandler::writePdecConfig() {
// Write map id clock frequencies
for (int idx = 0; idx <= MAX_MAP_ADDR; idx += 4) {
// TODO: adding 1 / 4 results in + 0. Check correctness
*(memoryBaseAddress + MAP_CLK_FREQ_OFFSET + idx / 4) =
MAP_CLK_FREQ << 24 | MAP_CLK_FREQ << 16 | MAP_CLK_FREQ << 8 | MAP_CLK_FREQ;
}