2015-06-02 05:20:19 +00:00
|
|
|
/* sdk_private.h
|
2015-05-30 09:11:04 +00:00
|
|
|
|
2015-06-02 05:20:19 +00:00
|
|
|
This source file contains function prototypes for "private" but
|
|
|
|
useful functions defined in the "binary blob" ESP IoT RTOS SDK libraries.
|
2015-05-30 09:11:04 +00:00
|
|
|
|
2015-06-02 05:20:19 +00:00
|
|
|
For the "public" API, check the esp_common header file and the various
|
|
|
|
sub-headers it includes.
|
|
|
|
|
|
|
|
Function names here have the 'sdk_' prefix that is attached to all
|
|
|
|
binary library symbols by the esp-open-rtos build process.
|
|
|
|
|
|
|
|
This file is a part of esp-open-rtos.
|
2015-05-21 02:59:23 +00:00
|
|
|
*/
|
2015-06-02 05:20:19 +00:00
|
|
|
#ifndef SDK_PRIVATE_H
|
|
|
|
#define SDK_PRIVATE_H
|
2015-05-21 02:59:23 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
*/
|
2015-05-30 09:11:04 +00:00
|
|
|
void sdk_uart_div_modify(uint32_t uart_no, uint32_t new_divisor);
|
|
|
|
|
|
|
|
/* Read a single character from the UART.
|
|
|
|
*/
|
|
|
|
char sdk_uart_rx_one_char(void);
|
|
|
|
|
|
|
|
/* Write a single character to the UART.
|
|
|
|
*/
|
|
|
|
void sdk_os_putc(char c);
|
2015-05-21 02:59:23 +00:00
|
|
|
|
|
|
|
/* Called when an IP gets set on the "station" (client) interface.
|
|
|
|
*/
|
2015-05-30 09:11:04 +00:00
|
|
|
void sdk_system_station_got_ip_set(struct ip_addr *ip_addr, struct ip_addr *sn_mask, struct ip_addr *gw_addr);
|
2015-05-21 02:59:23 +00:00
|
|
|
|
|
|
|
/* 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)
|
|
|
|
*/
|
2015-05-30 09:11:04 +00:00
|
|
|
void sdk_system_pp_recycle_rx_pkt(void *eb);
|
|
|
|
|
2015-05-21 02:59:23 +00:00
|
|
|
#endif
|