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;
|
using namespace AP_HAL_AVR;
|
||||||
|
|
||||||
proc_ptr ISRRegistry::_registry[ISR_REGISTRY_NUM_SLOTS];
|
proc_ptr ISRRegistry::_registry[ISR_REGISTRY_NUM_SLOTS] = {NULL};
|
||||||
|
|
||||||
void ISRRegistry::init() {
|
|
||||||
for(int i = 0; i < ISR_REGISTRY_NUM_SLOTS; i++) {
|
|
||||||
_registry[i] = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int ISRRegistry::register_signal(int signal, proc_ptr proc)
|
int ISRRegistry::register_signal(int signal, proc_ptr proc)
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,6 @@ typedef void (*proc_ptr)(void);
|
|||||||
|
|
||||||
class AP_HAL_AVR::ISRRegistry {
|
class AP_HAL_AVR::ISRRegistry {
|
||||||
public:
|
public:
|
||||||
void init();
|
|
||||||
int register_signal(int isr_number, proc_ptr proc);
|
int register_signal(int isr_number, proc_ptr proc);
|
||||||
int unregister_signal(int isr_number);
|
int unregister_signal(int isr_number);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user