Skip to content
Snippets Groups Projects
Commit 87b87631 authored by Gunar Schorcht's avatar Gunar Schorcht Committed by Schorcht
Browse files

cpu/esp8266: functions that have to run in IRAM

Due to performance reasons _esp_wifi_recv_cb and _send have to be executed in IRAM.
parent 96d0910d
Branches
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ static bool _in_esp_wifi_recv_cb = false;
/**
* @brief Callback when ethernet frame is received. Has to run in IRAM.
*/
void _esp_wifi_recv_cb(struct pbuf *pb, struct netif *netif)
void IRAM _esp_wifi_recv_cb(struct pbuf *pb, struct netif *netif)
{
assert(pb != NULL);
assert(netif != NULL);
......@@ -244,8 +244,7 @@ uint8_t _send_pkt_buf[ETHERNET_MAX_LEN];
/** function used to send an ethernet frame over WiFi */
extern err_t ieee80211_output_pbuf(struct netif *netif, struct pbuf *p);
/** guard variable to avoid reentrance to _send */
static int _send(netdev_t *netdev, const iolist_t *iolist)
static int IRAM _send(netdev_t *netdev, const iolist_t *iolist)
{
ESP_WIFI_DEBUG("%p %p", netdev, iolist);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment