mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-30 18:57:14 +02:00
Update IDF to 9a26296
This commit is contained in:
@ -34,10 +34,8 @@ void esp_reent_init(struct _reent* r);
|
||||
void esp_setup_syscall_table();
|
||||
|
||||
/**
|
||||
* Initialize hardware timer used as time source for newlib time functions.
|
||||
*
|
||||
* Called from the startup code, not intended to be called from application.
|
||||
* Update current microsecond time from RTC
|
||||
*/
|
||||
void esp_setup_time_syscalls();
|
||||
void esp_set_time_from_rtc();
|
||||
|
||||
#endif //__ESP_NEWLIB_H__
|
||||
|
@ -210,6 +210,12 @@ extern "C" {
|
||||
|
||||
#endif /* __CYGWIN__ */
|
||||
|
||||
/* ESP-IDF-specific: enable pthreads support */
|
||||
#ifdef __XTENSA__
|
||||
#define _POSIX_THREADS 1
|
||||
#define _UNIX98_THREAD_MUTEX_ATTRIBUTES 1
|
||||
#endif
|
||||
|
||||
/* Per the permission given in POSIX.1-2008 section 2.2.1, define
|
||||
* _POSIX_C_SOURCE if _XOPEN_SOURCE is defined and _POSIX_C_SOURCE is not.
|
||||
* (_XOPEN_SOURCE indicates that XSI extensions are desired by an application.)
|
||||
|
@ -58,6 +58,8 @@ struct sched_param {
|
||||
#endif
|
||||
};
|
||||
|
||||
int sched_yield( void );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -20,7 +20,7 @@ struct timeval {
|
||||
};
|
||||
|
||||
/* BSD time macros used by RTEMS code */
|
||||
#if defined (__rtems__) || defined (__CYGWIN__)
|
||||
#if defined (__rtems__) || defined (__CYGWIN__) || defined(__XTENSA__)
|
||||
|
||||
/* Convenience macros for operations on timevals.
|
||||
NOTE: `timercmp' does not work for >= or <=. */
|
||||
|
Reference in New Issue
Block a user