mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
* Use newlib libc library This change adds libcmin.a, which is created from newlib libc by selectively removing some of the object files (mostly related to heap management). The list of files is available in tools/sdk/lib/make_libcmin.sh. Files which are not needed are commented out. This change adds support for various functions which were missing, like sscanf, strftime, etc. * Fix some of the time functions * Redirect stdout to serial * Implement __putc_r * Switch to custom newlib build Built from https://github.com/igrr/newlib-xtensa using: ./configure --with-newlib --enable-multilib --disable-newlib-io-c99-formats --enable-newlib-supplied-syscalls --enable-target-optspace --program-transform-name="s&^&xtensa-lx106-elf-&" --disable-option-checking --with-target-subdir=xtensa-lx106-elf --target=xtensa-lx106-elf --enable-newlib-nano-formatted-io --enable-newlib-reent-small --prefix=path-to-arduino-core/tools/sdk/libc CROSS_CFLAGS="-DMALLOC_PROVIDED -DSIGNAL_PROVIDED -DABORT_PROVIDED" make make install * Update tests
68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
/*
|
|
* Written by Joel Sherrill <joel@OARcorp.com>.
|
|
*
|
|
* COPYRIGHT (c) 1989-2010.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose without fee is hereby granted, provided that this entire notice
|
|
* is included in all copies of any software which is or includes a copy
|
|
* or modification of this software.
|
|
*
|
|
* THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
|
|
* WARRANTY. IN PARTICULAR, THE AUTHOR MAKES NO REPRESENTATION
|
|
* OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS
|
|
* SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
|
|
#ifndef _SYS_SCHED_H_
|
|
#define _SYS_SCHED_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Scheduling Policies */
|
|
/* Open Group Specifications Issue 6 */
|
|
#if defined(__CYGWIN__)
|
|
#define SCHED_OTHER 3
|
|
#else
|
|
#define SCHED_OTHER 0
|
|
#endif
|
|
|
|
#define SCHED_FIFO 1
|
|
#define SCHED_RR 2
|
|
|
|
#if defined(_POSIX_SPORADIC_SERVER)
|
|
#define SCHED_SPORADIC 4
|
|
#endif
|
|
|
|
/* Scheduling Parameters */
|
|
/* Open Group Specifications Issue 6 */
|
|
|
|
struct sched_param {
|
|
int sched_priority; /* Process execution scheduling priority */
|
|
|
|
#if defined(_POSIX_SPORADIC_SERVER) || defined(_POSIX_THREAD_SPORADIC_SERVER)
|
|
int sched_ss_low_priority; /* Low scheduling priority for sporadic */
|
|
/* server */
|
|
struct timespec sched_ss_repl_period;
|
|
/* Replenishment period for sporadic server */
|
|
struct timespec sched_ss_init_budget;
|
|
/* Initial budget for sporadic server */
|
|
int sched_ss_max_repl; /* Maximum pending replenishments for */
|
|
/* sporadic server */
|
|
#endif
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
/* end of include file */
|
|
|