1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

use polling instead of interrupt

but keep interrupts for i2c

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-02-26 11:07:19 +01:00 committed by Niklas Eiling
parent d588f5f2a2
commit a3209aa344
3 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@
"slot": "0000:88:00.0",
"do_reset": true,
"ips": "vc707-xbar-pcie-dino/vc707-xbar-pcie-dino-v2.json",
"polling": false,
"polling": true,
"interface": "pcie"
}
}

View file

@ -719,6 +719,7 @@ void DmaFactory::parse(Core &ip, json_t *cfg) {
auto &dma = dynamic_cast<Dma &>(ip);
dma.polling = dma.card->polling;
// Sensible default configuration
dma.xConfig.HasStsCntrlStrm = 0;
dma.xConfig.HasMm2S = 1;

View file

@ -55,7 +55,7 @@ bool I2c::init() {
XIic_SetStatusHandler(&xIic, this, (XIic_StatusHandler)StatusHandler);
irqs[i2cInterrupt].irqController->enableInterrupt(irqs[i2cInterrupt],
polling);
0); //polling);
hwLock.unlock();
initDone = true;
return true;