Skip to content

Commit 27fced9

Browse files
committed
Fix compile issues because of LwIP code relocation
1 parent a0f0bd9 commit 27fced9

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

cores/esp32/esp32-hal-time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#include "esp32-hal.h"
16-
#include "apps/sntp/sntp.h"
16+
#include "lwip/apps/sntp.h"
1717

1818
static void setTimeZone(long offset, int daylight)
1919
{

libraries/AsyncUDP/src/AsyncUDP.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern "C" {
1515
#include "lwip/priv/tcpip_priv.h"
1616

1717
typedef struct {
18-
struct tcpip_api_call call;
18+
struct tcpip_api_call_data call;
1919
udp_pcb * pcb;
2020
const ip_addr_t *addr;
2121
uint16_t port;
@@ -24,7 +24,7 @@ typedef struct {
2424
err_t err;
2525
} udp_api_call_t;
2626

27-
static err_t _udp_connect_api(struct tcpip_api_call *api_call_msg){
27+
static err_t _udp_connect_api(struct tcpip_api_call_data *api_call_msg){
2828
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
2929
msg->err = udp_connect(msg->pcb, msg->addr, msg->port);
3030
return msg->err;
@@ -35,11 +35,11 @@ static err_t _udp_connect(struct udp_pcb *pcb, const ip_addr_t *addr, u16_t port
3535
msg.pcb = pcb;
3636
msg.addr = addr;
3737
msg.port = port;
38-
tcpip_api_call(_udp_connect_api, (struct tcpip_api_call*)&msg);
38+
tcpip_api_call(_udp_connect_api, (struct tcpip_api_call_data*)&msg);
3939
return msg.err;
4040
}
4141

42-
static err_t _udp_disconnect_api(struct tcpip_api_call *api_call_msg){
42+
static err_t _udp_disconnect_api(struct tcpip_api_call_data *api_call_msg){
4343
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
4444
msg->err = 0;
4545
udp_disconnect(msg->pcb);
@@ -49,10 +49,10 @@ static err_t _udp_disconnect_api(struct tcpip_api_call *api_call_msg){
4949
static void _udp_disconnect(struct udp_pcb *pcb){
5050
udp_api_call_t msg;
5151
msg.pcb = pcb;
52-
tcpip_api_call(_udp_disconnect_api, (struct tcpip_api_call*)&msg);
52+
tcpip_api_call(_udp_disconnect_api, (struct tcpip_api_call_data*)&msg);
5353
}
5454

55-
static err_t _udp_remove_api(struct tcpip_api_call *api_call_msg){
55+
static err_t _udp_remove_api(struct tcpip_api_call_data *api_call_msg){
5656
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
5757
msg->err = 0;
5858
udp_remove(msg->pcb);
@@ -62,10 +62,10 @@ static err_t _udp_remove_api(struct tcpip_api_call *api_call_msg){
6262
static void _udp_remove(struct udp_pcb *pcb){
6363
udp_api_call_t msg;
6464
msg.pcb = pcb;
65-
tcpip_api_call(_udp_remove_api, (struct tcpip_api_call*)&msg);
65+
tcpip_api_call(_udp_remove_api, (struct tcpip_api_call_data*)&msg);
6666
}
6767

68-
static err_t _udp_bind_api(struct tcpip_api_call *api_call_msg){
68+
static err_t _udp_bind_api(struct tcpip_api_call_data *api_call_msg){
6969
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
7070
msg->err = udp_bind(msg->pcb, msg->addr, msg->port);
7171
return msg->err;
@@ -76,11 +76,11 @@ static err_t _udp_bind(struct udp_pcb *pcb, const ip_addr_t *addr, u16_t port){
7676
msg.pcb = pcb;
7777
msg.addr = addr;
7878
msg.port = port;
79-
tcpip_api_call(_udp_bind_api, (struct tcpip_api_call*)&msg);
79+
tcpip_api_call(_udp_bind_api, (struct tcpip_api_call_data*)&msg);
8080
return msg.err;
8181
}
8282

83-
static err_t _udp_sendto_api(struct tcpip_api_call *api_call_msg){
83+
static err_t _udp_sendto_api(struct tcpip_api_call_data *api_call_msg){
8484
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
8585
msg->err = udp_sendto(msg->pcb, msg->pb, msg->addr, msg->port);
8686
return msg->err;
@@ -92,11 +92,11 @@ static err_t _udp_sendto(struct udp_pcb *pcb, struct pbuf *pb, const ip_addr_t *
9292
msg.addr = addr;
9393
msg.port = port;
9494
msg.pb = pb;
95-
tcpip_api_call(_udp_sendto_api, (struct tcpip_api_call*)&msg);
95+
tcpip_api_call(_udp_sendto_api, (struct tcpip_api_call_data*)&msg);
9696
return msg.err;
9797
}
9898

99-
static err_t _udp_sendto_if_api(struct tcpip_api_call *api_call_msg){
99+
static err_t _udp_sendto_if_api(struct tcpip_api_call_data *api_call_msg){
100100
udp_api_call_t * msg = (udp_api_call_t *)api_call_msg;
101101
msg->err = udp_sendto_if(msg->pcb, msg->pb, msg->addr, msg->port, msg->netif);
102102
return msg->err;
@@ -109,7 +109,7 @@ static err_t _udp_sendto_if(struct udp_pcb *pcb, struct pbuf *pb, const ip_addr_
109109
msg.port = port;
110110
msg.pb = pb;
111111
msg.netif = netif;
112-
tcpip_api_call(_udp_sendto_if_api, (struct tcpip_api_call*)&msg);
112+
tcpip_api_call(_udp_sendto_if_api, (struct tcpip_api_call_data*)&msg);
113113
return msg.err;
114114
}
115115

libraries/SD_MMC/src/SD_MMC.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@ bool SDMMCFS::begin(const char * mountpoint, bool mode1bit)
5050
.init = &sdmmc_host_init,
5151
.set_bus_width = &sdmmc_host_set_bus_width,
5252
.get_bus_width = &sdmmc_host_get_slot_width,
53+
.set_bus_ddr_mode = &sdmmc_host_set_bus_ddr_mode,
5354
.set_card_clk = &sdmmc_host_set_card_clk,
5455
.do_transaction = &sdmmc_host_do_transaction,
5556
.deinit = &sdmmc_host_deinit,
56-
.io_int_enable = sdmmc_host_io_int_enable,
57-
.io_int_wait = sdmmc_host_io_int_wait,
58-
.command_timeout_ms = 0,
57+
.io_int_enable = &sdmmc_host_io_int_enable,
58+
.io_int_wait = &sdmmc_host_io_int_wait,
59+
.command_timeout_ms = 0
5960
};
6061
host.max_freq_khz = SDMMC_FREQ_HIGHSPEED;
6162
#ifdef BOARD_HAS_1BIT_SDMMC

libraries/WiFi/src/WiFiAP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern "C" {
3737
#include <esp_wifi.h>
3838
#include <esp_event_loop.h>
3939
#include <lwip/ip_addr.h>
40-
#include "apps/dhcpserver_options.h"
40+
#include "dhcpserver/dhcpserver_options.h"
4141
}
4242

4343

0 commit comments

Comments
 (0)