mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-03 22:48:28 -04:00
AP_HAL_AVR: check in utility/ISRRegistry
This commit is contained in:
parent
064faafdd3
commit
776a1074c9
@ -6,13 +6,7 @@
|
||||
|
||||
using namespace AP_HAL_AVR;
|
||||
|
||||
proc_ptr ISRRegistry::_registry[ISR_REGISTRY_NUM_SLOTS];
|
||||
|
||||
void ISRRegistry::init() {
|
||||
for(int i = 0; i < ISR_REGISTRY_NUM_SLOTS; i++) {
|
||||
_registry[i] = NULL;
|
||||
}
|
||||
}
|
||||
proc_ptr ISRRegistry::_registry[ISR_REGISTRY_NUM_SLOTS] = {NULL};
|
||||
|
||||
int ISRRegistry::register_signal(int signal, proc_ptr proc)
|
||||
{
|
||||
|
@ -14,7 +14,6 @@ typedef void (*proc_ptr)(void);
|
||||
|
||||
class AP_HAL_AVR::ISRRegistry {
|
||||
public:
|
||||
void init();
|
||||
int register_signal(int isr_number, proc_ptr proc);
|
||||
int unregister_signal(int isr_number);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user