nimble/phy: Update ISR tracing

This updates ISR tracing to match mynewt-core.
This commit is contained in:
Andrzej Kaczmarek
2018-05-21 13:18:44 +02:00
parent 111d91a407
commit 773bd4c7e8
4 changed files with 17 additions and 2 deletions
+5
View File
@@ -283,11 +283,14 @@ ble_rng_isr(void)
{
uint8_t rnum;
os_trace_isr_enter();
/* No callback? Clear and disable interrupts */
if (g_ble_rng_isr_cb == NULL) {
NRF_RNG->INTENCLR = 1;
NRF_RNG->EVENTS_VALRDY = 0;
(void)NRF_RNG->SHORTS;
os_trace_isr_exit();
return;
}
@@ -297,6 +300,8 @@ ble_rng_isr(void)
rnum = (uint8_t)NRF_RNG->VALUE;
(*g_ble_rng_isr_cb)(rnum);
}
os_trace_isr_exit();
}
/**
+4
View File
@@ -763,6 +763,8 @@ ble_phy_isr(void)
{
uint32_t irq_en;
os_trace_isr_enter();
/* Read irq register to determine which interrupts are enabled */
irq_en = NRF_RADIO->INTENCLR;
@@ -798,6 +800,8 @@ ble_phy_isr(void)
/* Count # of interrupts */
STATS_INC(ble_phy_stats, phy_isrs);
os_trace_isr_exit();
}
/**
+4 -2
View File
@@ -289,13 +289,14 @@ ble_rng_isr(void)
{
uint8_t rnum;
os_trace_enter_isr();
os_trace_isr_enter();
/* No callback? Clear and disable interrupts */
if (g_ble_rng_isr_cb == NULL) {
NRF_RNG->INTENCLR = 1;
NRF_RNG->EVENTS_VALRDY = 0;
(void)NRF_RNG->SHORTS;
os_trace_isr_exit();
return;
}
@@ -305,7 +306,8 @@ ble_rng_isr(void)
rnum = (uint8_t)NRF_RNG->VALUE;
(*g_ble_rng_isr_cb)(rnum);
}
os_trace_exit_isr();
os_trace_isr_exit();
}
/**
+4
View File
@@ -1160,6 +1160,8 @@ ble_phy_isr(void)
{
uint32_t irq_en;
os_trace_isr_enter();
/* Read irq register to determine which interrupts are enabled */
irq_en = NRF_RADIO->INTENCLR;
@@ -1210,6 +1212,8 @@ ble_phy_isr(void)
/* Count # of interrupts */
STATS_INC(ble_phy_stats, phy_isrs);
os_trace_isr_exit();
}
#if MYNEWT_VAL(BLE_PHY_DBG_TIME_TXRXEN_READY_PIN) >= 0 || \