mirror of https://github.com/ARMmbed/mbed-os.git
- fix some type mismatch which causes error in build time
parent
e3018e766b
commit
8c7e738263
|
@ -7,7 +7,7 @@ namespace mbed {
|
|||
|
||||
typedef void (*pvoidf)(void);
|
||||
|
||||
InterruptManager* InterruptManager::_instance = NULL;
|
||||
InterruptManager* InterruptManager::_instance = (InterruptManager*)NULL;
|
||||
|
||||
InterruptManager* InterruptManager::get() {
|
||||
if (NULL == _instance)
|
||||
|
@ -25,7 +25,7 @@ void InterruptManager::destroy() {
|
|||
// is very likely to occur
|
||||
if (NULL != _instance) {
|
||||
delete _instance;
|
||||
_instance = NULL;
|
||||
_instance = (InterruptManager*)NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ bool InterruptManager::remove_handler(pFunctionPointer_t handler, IRQn_Type irq)
|
|||
if (_chains[irq_pos]->size() == 1 && NULL != _chains[irq_pos]->get(0)->get_function()) {
|
||||
NVIC_SetVector(irq, (uint32_t)_chains[irq_pos]->get(0)->get_function());
|
||||
delete _chains[irq_pos];
|
||||
_chains[irq_pos] = NULL;
|
||||
_chains[irq_pos] = (CallChain*) NULL;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue