Initial commit
This commit is contained in:
8
code/interruptdispatcher_assign.cpp
Normal file
8
code/interruptdispatcher_assign.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
// Excerpt from the "InterruptDispatcher" class
|
||||
void InterruptDispatcher::assign(uint8_t slot, InterruptHandler &isr) {
|
||||
if (handler[slot] == nullptr) {
|
||||
handler[slot] = new Util::ArrayList<InterruptHandler*>;
|
||||
}
|
||||
|
||||
handler[slot]->add(&isr); // Register an interrupt handler to an interrupt vector
|
||||
}
|
||||
Reference in New Issue
Block a user