1
0
mirror of https://github.com/livingcomputermuseum/UniBone.git synced 2026-04-27 20:39:13 +00:00

ACLO/DCLO/INIT moved from PRU to ARM

INTR/DMA request params linked to device params on change
This commit is contained in:
Joerg Hoppe
2019-08-19 13:12:42 +02:00
parent e2229871de
commit 3d1d9d3cf6
23 changed files with 183 additions and 409 deletions

View File

@@ -47,6 +47,8 @@ priority_request_c::~priority_request_c() {
void priority_request_c::set_priority_slot(uint8_t priority_slot) {
assert(priority_slot > 0); // 0 reserved
assert(priority_slot < PRIORITY_SLOT_COUNT);
if (this->slot == priority_slot)
return ; // called on every on_param_change()
unibusdevice_c *ubdevice = unibusdevice_c::find_by_request_slot(priority_slot);
if (ubdevice && ubdevice != this->device) {
WARNING("Slot %u already used by device %s", (unsigned) priority_slot, ubdevice->name.value.c_str());
@@ -105,3 +107,4 @@ void intr_request_c::set_vector(uint16_t vector) {
this->vector = vector;
}