You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.4 KiB
61 lines
2.4 KiB
10 years ago
|
#ifndef ESPMISSINGINCLUDES_H
|
||
|
#define ESPMISSINGINCLUDES_H
|
||
10 years ago
|
|
||
10 years ago
|
#include <stdint.h>
|
||
10 years ago
|
#include <c_types.h>
|
||
|
#include <ets_sys.h>
|
||
10 years ago
|
#include <eagle_soc.h>
|
||
10 years ago
|
|
||
|
//Missing function prototypes in include folders. Gcc will warn on these if we don't define 'em anywhere.
|
||
|
//MOST OF THESE ARE GUESSED! but they seem to swork and shut up the compiler.
|
||
10 years ago
|
typedef struct espconn espconn;
|
||
10 years ago
|
|
||
|
int atoi(const char *nptr);
|
||
|
void ets_install_putc1(void *routine);
|
||
|
void ets_isr_attach(int intr, void *handler, void *arg);
|
||
|
void ets_isr_mask(unsigned intr);
|
||
|
void ets_isr_unmask(unsigned intr);
|
||
|
int ets_memcmp(const void *s1, const void *s2, size_t n);
|
||
10 years ago
|
void *ets_memcpy(void *dest, const void *src, size_t n);
|
||
|
void *ets_memset(void *s, int c, size_t n);
|
||
10 years ago
|
int ets_sprintf(char *str, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
|
||
|
int ets_str2macaddr(void *, void *);
|
||
10 years ago
|
int ets_strcmp(const char *s1, const char *s2);
|
||
|
char *ets_strcpy(char *dest, const char *src);
|
||
10 years ago
|
size_t ets_strlen(const char *s);
|
||
|
int ets_strncmp(const char *s1, const char *s2, int len);
|
||
10 years ago
|
char *ets_strncpy(char *dest, const char *src, size_t n);
|
||
|
char *ets_strstr(const char *haystack, const char *needle);
|
||
10 years ago
|
void ets_timer_arm_new(ETSTimer *a, int b, int c, int isMstimer);
|
||
|
void ets_timer_disarm(ETSTimer *a);
|
||
|
void ets_timer_setfn(ETSTimer *t, ETSTimerFunc *fn, void *parg);
|
||
10 years ago
|
void ets_update_cpu_frequency(int freqmhz);
|
||
10 years ago
|
int os_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
||
10 years ago
|
int os_snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
|
||
10 years ago
|
int os_printf_plus(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
|
||
10 years ago
|
void pvPortFree(void *ptr);
|
||
|
void *pvPortMalloc(size_t xWantedSize);
|
||
|
void *pvPortZalloc(size_t);
|
||
|
void uart_div_modify(int no, unsigned int freq);
|
||
|
void vPortFree(void *ptr);
|
||
|
void *vPortMalloc(size_t xWantedSize);
|
||
10 years ago
|
uint8 wifi_get_opmode(void);
|
||
|
uint32 system_get_time();
|
||
|
int rand(void);
|
||
|
void ets_bzero(void *s, size_t n);
|
||
10 years ago
|
void ets_delay_us(int ms);
|
||
10 years ago
|
|
||
|
|
||
|
//Standard PIN_FUNC_SELECT gives a warning. Replace by a non-warning one.
|
||
|
#ifdef PIN_FUNC_SELECT
|
||
|
#undef PIN_FUNC_SELECT
|
||
|
#define PIN_FUNC_SELECT(PIN_NAME, FUNC) do { \
|
||
|
WRITE_PERI_REG(PIN_NAME, \
|
||
|
(READ_PERI_REG(PIN_NAME) \
|
||
|
& (~(PERIPHS_IO_MUX_FUNC<<PERIPHS_IO_MUX_FUNC_S))) \
|
||
|
|( (((FUNC&BIT2)<<2)|(FUNC&0x3))<<PERIPHS_IO_MUX_FUNC_S) ); \
|
||
|
} while (0)
|
||
|
#endif
|
||
|
|
||
10 years ago
|
#endif
|