@@ -9,13 +9,14 @@ int strcasecmp(const char *a, const char *b);
99#ifndef FREERTOS
1010#include <eagle_soc.h>
1111#include <ets_sys.h>
12+
1213//Missing function prototypes in include folders. Gcc will warn on these if we don't define 'em anywhere.
1314//MOST OF THESE ARE GUESSED! but they seem to swork and shut up the compiler.
1415typedef struct espconn espconn ;
1516
1617int atoi (const char * nptr );
17- void ets_install_putc1 (void * routine );
18- void ets_isr_attach (int intr , void * handler , void * arg );
18+ void ets_install_putc1 (void ( * routine )( char c ) );
19+ void ets_isr_attach (int intr , void ( * handler )( void * ) , void * arg );
1920void ets_isr_mask (unsigned intr );
2021void ets_isr_unmask (unsigned intr );
2122int ets_memcmp (const void * s1 , const void * s2 , size_t n );
@@ -25,24 +26,24 @@ int ets_sprintf(char *str, const char *format, ...) __attribute__ ((format (pri
2526int ets_str2macaddr (void * , void * );
2627int ets_strcmp (const char * s1 , const char * s2 );
2728char * ets_strcpy (char * dest , const char * src );
28- size_t ets_strlen (const char * s );
29- int ets_strncmp (const char * s1 , const char * s2 , int len );
29+ int ets_strlen (const char * s );
30+ int ets_strncmp (const char * s1 , const char * s2 , unsigned int len );
3031char * ets_strncpy (char * dest , const char * src , size_t n );
3132char * ets_strstr (const char * haystack , const char * needle );
32- void ets_timer_arm_new (os_timer_t * a , int b , int c , int isMstimer );
33+ void ets_timer_arm_new (os_timer_t * a , uint32_t b , bool repeat , bool isMstimer );
3334void ets_timer_disarm (os_timer_t * a );
3435void ets_timer_setfn (os_timer_t * t , ETSTimerFunc * fn , void * parg );
3536void ets_update_cpu_frequency (int freqmhz );
3637void * os_memmove (void * dest , const void * src , size_t n );
3738int os_printf (const char * format , ...) __attribute__ ((format (printf , 1 , 2 )));
3839int os_snprintf (char * str , size_t size , const char * format , ...) __attribute__ ((format (printf , 3 , 4 )));
3940int os_printf_plus (const char * format , ...) __attribute__ ((format (printf , 1 , 2 )));
40- void uart_div_modify (int no , unsigned int freq );
41+ void uart_div_modify (uint8 no , uint32 freq );
4142uint8 wifi_get_opmode (void );
4243uint32 system_get_time ();
4344int rand (void );
4445void ets_bzero (void * s , size_t n );
45- void ets_delay_us (int ms );
46+ void ets_delay_us (uint16_t ms );
4647
4748//Hack: this is defined in SDK 1.4.0 and undefined in 1.3.0. It's only used for this, the symbol itself
4849//has no meaning here.
@@ -54,11 +55,11 @@ void vPortFree(void *ptr);
5455void * vPortMalloc (size_t xWantedSize );
5556void pvPortFree (void * ptr );
5657#else
57- void * pvPortMalloc (size_t xWantedSize , const char * file , int line );
58- void * pvPortZalloc (size_t , const char * file , int line );
59- void vPortFree (void * ptr , const char * file , int line );
60- void * vPortMalloc (size_t xWantedSize , const char * file , int line );
61- void pvPortFree (void * ptr , const char * file , int line );
58+ void * pvPortMalloc (size_t xWantedSize , const char * file , unsigned line );
59+ void * pvPortZalloc (size_t , const char * file , unsigned line );
60+ void vPortFree (void * ptr , const char * file , unsigned line );
61+ void * vPortMalloc (size_t xWantedSize , const char * file , unsigned line );
62+ void pvPortFree (void * ptr , const char * file , unsigned line );
6263#endif
6364
6465//Standard PIN_FUNC_SELECT gives a warning. Replace by a non-warning one.
0 commit comments