Skip to content

Commit 2ffc61a

Browse files
paul-szczepanek-armpan-
authored andcommitted
added timer IRQ handler for TIMER2
1 parent 9354bc2 commit 2ffc61a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/NRFCordioHCIDriver.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
250250
return buf_pool_desc_t(buffer, pool_desc);
251251
}
252252

253+
extern "C" void TIMER2_IRQHandler();
254+
253255
void NRFCordioHCIDriver::do_initialize()
254256
{
255257
if(_is_init) {
@@ -298,6 +300,7 @@ void NRFCordioHCIDriver::do_initialize()
298300

299301
// For some reason, the mbed target uses this (TIMER0_IRQHandler_v) vector name instead of the "standard" TIMER0_IRQHandler one
300302
NVIC_SetVector(TIMER0_IRQn, (uint32_t)TIMER0_IRQHandler);
303+
NVIC_SetVector(TIMER2_IRQn, (uint32_t)TIMER2_IRQHandler);
301304

302305
// Extremely ugly
303306
for(uint32_t irqn = 0; irqn < 32; irqn++)

0 commit comments

Comments
 (0)