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:
parent
d588f5f2a2
commit
a3209aa344
3 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue