@@ -32,8 +32,6 @@ char *wifi_station_get_hostname(void);
32
32
33
33
int atoi (const char * nptr );
34
34
35
- void ets_install_putc1 (void * routine ); // necessary for #define os_xxx -> ets_xxx
36
- void ets_isr_attach (int intr , void * handler , void * arg );
37
35
void ets_isr_mask (unsigned intr );
38
36
void ets_isr_unmask (unsigned intr );
39
37
void ets_intr_lock (void );
@@ -48,12 +46,9 @@ int ets_sprintf(char *str, const char *format, ...) __attribute__ ((format (pri
48
46
int ets_str2macaddr (void * , void * );
49
47
int ets_strcmp (const char * s1 , const char * s2 );
50
48
char * ets_strcpy (char * dest , const char * src );
51
- size_t ets_strlen (const char * s );
52
- int ets_strncmp (const char * s1 , const char * s2 , int len );
53
49
char * ets_strncpy (char * dest , const char * src , size_t n );
54
50
char * ets_strstr (const char * haystack , const char * needle );
55
51
56
- void ets_timer_arm_new (ETSTimer * a , int b , int c , int isMstimer );
57
52
void ets_timer_disarm (ETSTimer * a );
58
53
void ets_timer_setfn (ETSTimer * t , ETSTimerFunc * fn , void * parg );
59
54
@@ -62,36 +57,12 @@ void ets_update_cpu_frequency(int freqmhz);
62
57
int os_snprintf (char * str , size_t size , const char * format , ...) __attribute__((format (printf , 3 , 4 )));
63
58
int os_printf_plus (const char * format , ...) __attribute__((format (printf , 1 , 2 )));
64
59
65
- // memory allocation functions are "different" due to memory debugging functionality
66
- // added in SDK 1.4.0
67
- #ifndef ESPSDK_1_3_0
68
- void vPortFree (void * ptr , char * file , int line );
69
- void * pvPortMalloc (size_t xWantedSize , char * file , int line );
70
- void * pvPortZalloc (size_t , char * file , int line );
71
60
void * vPortMalloc (size_t xWantedSize );
72
61
void pvPortFree (void * ptr );
73
- void * pvPortRealloc (void * pv , size_t size , char * file , int line );
74
- #else
75
- void vPortFree (void * ptr );
76
- void * pvPortMalloc (size_t xWantedSize );
77
- void * pvPortZalloc (size_t );
78
- void * vPortMalloc (size_t xWantedSize );
79
- void pvPortFree (void * ptr );
80
- void * pvPortRealloc (void * pv , size_t size );
81
- #define os_realloc pvPortRealloc
82
- void * pvPortRealloc (void * ptr , size_t size );
83
- #endif
84
62
85
- void uart_div_modify (int no , unsigned int freq );
86
63
uint32 system_get_time ();
87
64
int rand (void );
88
65
void ets_bzero (void * s , size_t n );
89
- void ets_delay_us (int ms );
90
-
91
- // disappeared in SDK 1.1.0:
92
- #define os_timer_done ets_timer_done
93
- #define os_timer_handler_isr ets_timer_handler_isr
94
- #define os_timer_init ets_timer_init
95
66
96
67
// This is not missing in SDK 1.1.0 but causes a parens error
97
68
#undef PIN_FUNC_SELECT
@@ -101,12 +72,4 @@ void ets_delay_us(int ms);
101
72
|( (((FUNC&BIT2)<<2)|(FUNC&0x3))<<PERIPHS_IO_MUX_FUNC_S) ); \
102
73
} while (0)
103
74
104
-
105
- // Shortcuts for memory functions
106
- //#define os_malloc pvPortMalloc // defined in SDK 1.4.0 onwards
107
- //#define os_free vPortFree // defined in SDK 1.4.0 onwards
108
- //#define os_zalloc pvPortZalloc // defined in SDK 1.4.0 onwards
109
- //uint8 wifi_get_opmode(void); // defined in SDK 1.0.0 onwards
110
- //int os_random(); // defined in SDK 1.1.0 onwards
111
-
112
75
#endif
0 commit comments