Skip to content

Commit ab2e360

Browse files
committed
fix(802.15.4): add no inline to some static function
1 parent 69d72ca commit ab2e360

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

components/ieee802154/driver/esp_ieee802154_dev.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ uint8_t ieee802154_get_recent_lqi(void)
161161
return s_rx_frame_info[s_recent_rx_frame_info_index].lqi;
162162
}
163163

164-
IEEE802154_STATIC void set_next_rx_buffer(void)
164+
IEEE802154_STATIC IEEE802154_NOINLINE void set_next_rx_buffer(void)
165165
{
166166
uint8_t* next_rx_buffer = NULL;
167167
uint8_t index = 0;
@@ -194,7 +194,7 @@ IEEE802154_STATIC void set_next_rx_buffer(void)
194194
ieee802154_ll_set_rx_addr(next_rx_buffer);
195195
}
196196

197-
static bool stop_rx(void)
197+
IEEE802154_NOINLINE static bool stop_rx(void)
198198
{
199199
ieee802154_ll_events events;
200200

@@ -210,7 +210,7 @@ static bool stop_rx(void)
210210
return true;
211211
}
212212

213-
static bool stop_tx_ack(void)
213+
IEEE802154_NOINLINE static bool stop_tx_ack(void)
214214
{
215215
ieee802154_set_cmd(IEEE802154_CMD_STOP);
216216

@@ -221,7 +221,7 @@ static bool stop_tx_ack(void)
221221
return true;
222222
}
223223

224-
static bool stop_tx(void)
224+
IEEE802154_NOINLINE static bool stop_tx(void)
225225
{
226226
ieee802154_ll_events events;
227227

@@ -245,21 +245,21 @@ static bool stop_tx(void)
245245
return true;
246246
}
247247

248-
static bool stop_cca(void)
248+
IEEE802154_NOINLINE static bool stop_cca(void)
249249
{
250250
ieee802154_set_cmd(IEEE802154_CMD_STOP);
251251
ieee802154_ll_clear_events(IEEE802154_EVENT_ED_DONE | IEEE802154_EVENT_RX_ABORT);
252252
return true;
253253
}
254254

255-
static bool stop_tx_cca(void)
255+
IEEE802154_NOINLINE static bool stop_tx_cca(void)
256256
{
257257
stop_tx(); // in case the transmission already started
258258
ieee802154_ll_clear_events(IEEE802154_EVENT_TX_ABORT);
259259
return true;
260260
}
261261

262-
static bool stop_rx_ack(void)
262+
IEEE802154_NOINLINE static bool stop_rx_ack(void)
263263
{
264264
ieee802154_ll_events events;
265265

@@ -281,7 +281,7 @@ static bool stop_rx_ack(void)
281281
return true;
282282
}
283283

284-
static bool stop_ed(void)
284+
IEEE802154_NOINLINE static bool stop_ed(void)
285285
{
286286
ieee802154_set_cmd(IEEE802154_CMD_STOP);
287287

@@ -290,7 +290,7 @@ static bool stop_ed(void)
290290
return true;
291291
}
292292

293-
IEEE802154_STATIC bool stop_current_operation(void)
293+
IEEE802154_NOINLINE IEEE802154_STATIC bool stop_current_operation(void)
294294
{
295295
event_end_process();
296296
switch (s_ieee802154_state) {
@@ -629,7 +629,7 @@ IEEE802154_STATIC IRAM_ATTR void ieee802154_exit_critical(void)
629629
portEXIT_CRITICAL(&s_ieee802154_spinlock);
630630
}
631631

632-
static void ieee802154_isr(void *arg)
632+
IEEE802154_NOINLINE static void ieee802154_isr(void *arg)
633633
{
634634
ieee802154_enter_critical();
635635
ieee802154_ll_events events = ieee802154_ll_get_events();
@@ -878,7 +878,7 @@ esp_err_t ieee802154_transmit(const uint8_t *frame, bool cca)
878878
return ieee802154_transmit_internal(frame, cca);
879879
}
880880

881-
static inline bool is_target_time_expired(uint32_t target, uint32_t now)
881+
IEEE802154_NOINLINE static bool is_target_time_expired(uint32_t target, uint32_t now)
882882
{
883883
return (((now - target) & (1 << 31)) == 0);
884884
}

components/ieee802154/driver/esp_ieee802154_pib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void ieee802154_pib_init(void)
4545
set_pending();
4646
}
4747

48-
static uint8_t ieee802154_txpower_convert(int8_t txpower)
48+
IEEE802154_NOINLINE static uint8_t ieee802154_txpower_convert(int8_t txpower)
4949
{
5050
uint8_t ieee820154_txpower_index = 0;
5151
if (txpower >= IEEE802154_TXPOWER_VALUE_MAX) {

components/ieee802154/linker.lf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ entries:
4444
esp_ieee802154_dev: ieee802154_receive (noflash)
4545
esp_ieee802154_pib: ieee802154_pib_update (noflash)
4646
esp_ieee802154_pib: ieee802154_txpower_convert (noflash)
47-
esp_ieee802154_pib: ieee802154_set_panid_addr (noflash)
4847
esp_ieee802154_util: ieee802154_channel_to_freq (noflash)
4948
esp_ieee802154: esp_ieee802154_transmit_at (noflash)
5049
esp_ieee802154: esp_ieee802154_receive_at (noflash)
@@ -55,7 +54,6 @@ entries:
5554
esp_ieee802154: esp_ieee802154_enh_ack_generator (noflash)
5655
esp_ieee802154: esp_ieee802154_get_extended_address (noflash)
5756
esp_ieee802154: esp_ieee802154_set_transmit_security (noflash)
58-
esp_ieee802154_pib: ieee802154_pib_get_extended_address (noflash)
5957

6058
if OPENTHREAD_LINK_METRICS = y:
6159
esp_ieee802154: esp_ieee802154_get_recent_lqi (noflash)

0 commit comments

Comments
 (0)