Add function prototypes for LWIP SDK functions, allow compilng with -Werror again
This commit is contained in:
parent
dc4ca6861f
commit
7c982da48f
6 changed files with 41 additions and 23 deletions
|
@ -9,7 +9,7 @@
|
||||||
#include "lwip/netdb.h"
|
#include "lwip/netdb.h"
|
||||||
#include "lwip/dns.h"
|
#include "lwip/dns.h"
|
||||||
|
|
||||||
#include "espressif/blob_prototypes.h"
|
#include "espressif/sdk_prototypes.h"
|
||||||
|
|
||||||
#define WEB_SERVER "chainxor.org"
|
#define WEB_SERVER "chainxor.org"
|
||||||
#define WEB_PORT 80
|
#define WEB_PORT 80
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
/* This source file contains function prototypes for public functions defined in the
|
|
||||||
"binary blob" ESP8266 libraries. Sorted by which library they appear in.
|
|
||||||
*/
|
|
||||||
#ifndef BLOB_PROTOTYPES_H
|
|
||||||
#define BLOB_PROTOTYPES_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/*********************************************
|
|
||||||
* libmain.a */
|
|
||||||
|
|
||||||
/* Change UART divider without re-initialising UART.
|
|
||||||
|
|
||||||
uart_no = 0 or 1 for which UART
|
|
||||||
new_divisor = Calculated in the form UART_CLK_FREQ / BAUD
|
|
||||||
*/
|
|
||||||
void uart_div_modify(uint32_t uart_no, uint32_t new_divisor);
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
35
include/espressif/sdk_prototypes.h
Normal file
35
include/espressif/sdk_prototypes.h
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
/* This source file contains function prototypes for functions defined
|
||||||
|
in the remaining "binary blob" ESP IoT RTOS SDK libraries. Sorted
|
||||||
|
by which library they appear in.
|
||||||
|
*/
|
||||||
|
#ifndef SDK_PROTOTYPES_H
|
||||||
|
#define SDK_PROTOTYPES_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
struct ip_addr;
|
||||||
|
|
||||||
|
/*********************************************
|
||||||
|
* Defined in libmain.a
|
||||||
|
*********************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Change UART divider without re-initialising UART.
|
||||||
|
|
||||||
|
uart_no = 0 or 1 for which UART
|
||||||
|
new_divisor = Calculated in the form UART_CLK_FREQ / BAUD
|
||||||
|
*/
|
||||||
|
void uart_div_modify(uint32_t uart_no, uint32_t new_divisor);
|
||||||
|
|
||||||
|
/* Called when an IP gets set on the "station" (client) interface.
|
||||||
|
*/
|
||||||
|
void system_station_got_ip_set(struct ip_addr *ip_addr, struct ip_addr *sn_mask, struct ip_addr *gw_addr);
|
||||||
|
|
||||||
|
/* This is a no-op wrapper around ppRecycleRxPkt, which is defined in libpp.a
|
||||||
|
|
||||||
|
It's called when a pbuf is freed, and allows pp to reuse the 'eb' pointer to ESP-specific
|
||||||
|
pbuf data. (See esp-lwip pbuf.h)
|
||||||
|
*/
|
||||||
|
void system_pp_recycle_rx_pkt(void *eb);
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
|
@ -9,7 +9,7 @@ lwip_INC_DIR = # all in INC_DIRS, needed for normal operation
|
||||||
lwip_SRC_DIR = $(ROOT)/lwip $(LWIP_DIR)api $(LWIP_DIR)core $(LWIP_DIR)core/ipv4 $(LWIP_DIR)netif
|
lwip_SRC_DIR = $(ROOT)/lwip $(LWIP_DIR)api $(LWIP_DIR)core $(LWIP_DIR)core/ipv4 $(LWIP_DIR)netif
|
||||||
|
|
||||||
# LWIP 1.4.1 generates a single warning so we need to disable -Werror when building it
|
# LWIP 1.4.1 generates a single warning so we need to disable -Werror when building it
|
||||||
lwip_CFLAGS = $(subst -Werror,,$(CFLAGS))
|
lwip_CFLAGS = $(CFLAGS) -Wno-address
|
||||||
|
|
||||||
$(eval $(call component_compile_rules,lwip))
|
$(eval $(call component_compile_rules,lwip))
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,9 @@
|
||||||
#ifndef __ARCH_CC_H__
|
#ifndef __ARCH_CC_H__
|
||||||
#define __ARCH_CC_H__
|
#define __ARCH_CC_H__
|
||||||
|
|
||||||
|
/* include ESP SDK prototypes as they're used in some LWIP routines */
|
||||||
|
#include "espressif/sdk_prototypes.h"
|
||||||
|
|
||||||
/* Include some files for defining library routines */
|
/* Include some files for defining library routines */
|
||||||
#include <stdio.h> /* printf, fflush, FILE */
|
#include <stdio.h> /* printf, fflush, FILE */
|
||||||
#include <stdlib.h> /* abort */
|
#include <stdlib.h> /* abort */
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 808c24237c1e9a3862b2eb1e0a94fd34ede6ec79
|
Subproject commit f041c2e4c4c57445cdd8ec7d674dede1be020f02
|
Loading…
Reference in a new issue