Skip to content

Commit 4ceecdb

Browse files
nimble/phy: Make private functions static
1 parent f1808b9 commit 4ceecdb

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

nimble/controller/include/controller/ble_phy.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ void ble_phy_disable(void);
128128
#define BLE_PHY_WFR_ENABLE_RX (0)
129129
#define BLE_PHY_WFR_ENABLE_TXRX (1)
130130

131-
void ble_phy_stop_usec_timer(void);
132131
void ble_phy_wfr_enable(int txrx, uint8_t tx_phy_mode, uint32_t wfr_usecs);
133132

134133
/* Starts rf clock */

nimble/drivers/nrf51/src/ble_phy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ ble_phy_setchan(uint8_t chan, uint32_t access_addr, uint32_t crcinit)
13881388
/**
13891389
* Stop the timer used to count microseconds when using RTC for cputime
13901390
*/
1391-
void
1391+
static void
13921392
ble_phy_stop_usec_timer(void)
13931393
{
13941394
NRF_TIMER0->TASKS_STOP = 1;
@@ -1404,7 +1404,7 @@ ble_phy_stop_usec_timer(void)
14041404
* restarted in receive mode. Generally, the disable routine is called to stop
14051405
* the phy.
14061406
*/
1407-
void
1407+
static void
14081408
ble_phy_disable_irq_and_ppi(void)
14091409
{
14101410
NRF_RADIO->INTENCLR = NRF_RADIO_IRQ_MASK_ALL;

nimble/drivers/nrf52/src/ble_phy.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ int ble_phy_txpower_round(int dbm)
18681868
*
18691869
* @return int 0: success; PHY error code otherwise
18701870
*/
1871-
int
1871+
static int
18721872
ble_phy_set_access_addr(uint32_t access_addr)
18731873
{
18741874
NRF_RADIO->BASE0 = (access_addr << 8);
@@ -1941,7 +1941,7 @@ ble_phy_setchan(uint8_t chan, uint32_t access_addr, uint32_t crcinit)
19411941
/**
19421942
* Stop the timer used to count microseconds when using RTC for cputime
19431943
*/
1944-
void
1944+
static void
19451945
ble_phy_stop_usec_timer(void)
19461946
{
19471947
NRF_TIMER0->TASKS_STOP = 1;
@@ -1957,7 +1957,7 @@ ble_phy_stop_usec_timer(void)
19571957
* restarted in receive mode. Generally, the disable routine is called to stop
19581958
* the phy.
19591959
*/
1960-
void
1960+
static void
19611961
ble_phy_disable_irq_and_ppi(void)
19621962
{
19631963
NRF_RADIO->INTENCLR = NRF_RADIO_IRQ_MASK_ALL;

0 commit comments

Comments
 (0)