Skip to content

Commit f2a6e8b

Browse files
paul-szczepanek-armpan-
authored andcommitted
update comment
1 parent 2ffc61a commit f2a6e8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ const LlRtCfg_t NRFCordioHCIDriver::_ll_cfg = {
198198
};
199199

200200
extern "C" void TIMER0_IRQHandler(void);
201+
extern "C" void TIMER2_IRQHandler(void);
201202

202203
NRFCordioHCIDriver::NRFCordioHCIDriver(CordioHCITransportDriver& transport_driver) : cordio::CordioHCIDriver(transport_driver), _is_init(false), _stack_buffer(NULL)
203204
{
@@ -250,8 +251,6 @@ ble::vendor::cordio::buf_pool_desc_t NRFCordioHCIDriver::get_buffer_pool_descrip
250251
return buf_pool_desc_t(buffer, pool_desc);
251252
}
252253

253-
extern "C" void TIMER2_IRQHandler();
254-
255254
void NRFCordioHCIDriver::do_initialize()
256255
{
257256
if(_is_init) {
@@ -298,7 +297,8 @@ void NRFCordioHCIDriver::do_initialize()
298297
NRF_RADIO->POWER = 0;
299298
NRF_RADIO->POWER = 1;
300299

301-
// For some reason, the mbed target uses this (TIMER0_IRQHandler_v) vector name instead of the "standard" TIMER0_IRQHandler one
300+
// mbed-os target uses IRQ Handler names with _v added at the end
301+
// (TIMER0_IRQHandler_v and TIMER2_IRQHandler_v) so we need to register these manually
302302
NVIC_SetVector(TIMER0_IRQn, (uint32_t)TIMER0_IRQHandler);
303303
NVIC_SetVector(TIMER2_IRQn, (uint32_t)TIMER2_IRQHandler);
304304

0 commit comments

Comments
 (0)