AP_HAL_AVR: check in utility/ISRRegistry

This commit is contained in:
Pat Hickey 2012-08-27 17:20:43 -07:00 committed by Andrew Tridgell
parent 064faafdd3
commit 776a1074c9
2 changed files with 1 additions and 8 deletions

View File

@ -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)
{

View File

@ -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);