Add function prototypes for LWIP SDK functions, allow compilng with -Werror again

This commit is contained in:
Angus Gratton 2015-05-21 12:59:23 +10:00
parent dc4ca6861f
commit 7c982da48f
6 changed files with 41 additions and 23 deletions

View file

@ -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

View 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