Skip to content

Commit 98159a3

Browse files
committed
Merge branch 'jacmet-sdk-2x-support'
2 parents da28d38 + ad4a391 commit 98159a3

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

include/espmissingincludes.h

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
1415
typedef struct espconn espconn;
1516

1617
int 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);
1920
void ets_isr_mask(unsigned intr);
2021
void ets_isr_unmask(unsigned intr);
2122
int 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
2526
int ets_str2macaddr(void *, void *);
2627
int ets_strcmp(const char *s1, const char *s2);
2728
char *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);
3031
char *ets_strncpy(char *dest, const char *src, size_t n);
3132
char *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);
3334
void ets_timer_disarm(os_timer_t *a);
3435
void ets_timer_setfn(os_timer_t *t, ETSTimerFunc *fn, void *parg);
3536
void ets_update_cpu_frequency(int freqmhz);
3637
void *os_memmove(void *dest, const void *src, size_t n);
3738
int os_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
3839
int os_snprintf(char *str, size_t size, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
3940
int 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);
4142
uint8 wifi_get_opmode(void);
4243
uint32 system_get_time();
4344
int rand(void);
4445
void 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);
5455
void *vPortMalloc(size_t xWantedSize);
5556
void 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

Comments
 (0)