1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00
Commit Graph

33 Commits

Author SHA1 Message Date
371d1412fe provide implementation of _exit (#3698) 2017-10-13 02:18:53 +08:00
2126146e20 Fix warnings (#2881)
* Suppressed -Wunused-parameter and -Wunused-function by casting to void unused identifiers.

* Explicit initialization of all fields to suppress -Wmissing-field-initializers.

* Fixed signed/unsigned integer comparison.

* memset initialization of structs.

* More -Wunused-parameter fixes.
2017-01-31 10:07:59 +03:00
d7d98d03ca Use libc from newlib (#1752)
* 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
2016-06-23 17:27:57 +08:00
4c587e28bc Fix Exception 2 when using printf or vprintf
ets_vprintf signature is not the same as vprintf, it takes an output function as a first argument.
2016-04-17 02:12:01 +03:00
4c75793508 Fix undefined reference to putchar 2016-02-14 22:16:46 +03:00
3e42042b86 Fix warning in libc_replacements.c 2016-02-04 20:02:47 +03:00
339140c756 Use umm_malloc for heap management 2016-02-04 13:14:47 +03:00
4cf72e7ef4 Add libc time functions
Merging https://github.com/igrr/axtls-8266/pull/1 by @Juppit into the core
2015-11-08 23:44:25 +03:00
4f35207951 Move some core functions back into RAM 2015-10-06 16:11:40 +03:00
cf424a9290 Fix build warning (#740) 2015-09-30 23:15:55 +03:00
9a2f2f2849 Add axTLS, first draft of WiFiClientSecure (#43) 2015-09-01 15:45:12 +03:00
bae97e5cc1 strtol and strtoul in flash 2015-08-10 16:25:28 +03:00
06676482cc strtod: allow endptr to be null 2015-08-10 16:17:16 +03:00
3b9ea5c837 add strtol and strtoul from newlib 2015-08-10 16:16:18 +03:00
49dc457fe5 Add strlcpy implementation (#465) 2015-07-07 14:39:39 +03:00
bd5187afc4 Use ROM functions directly instead of wrappers 2015-07-06 10:45:05 +03:00
f1c914fff8 Fix strncat (#509) 2015-07-06 08:18:54 +03:00
5f72ed23a5 Fix math functions calling themselves recursively (#233, #354) 2015-06-19 19:45:54 +03:00
534b9f47d4 strtok fix
public strtok_r implementation
2015-05-29 08:57:00 -07:00
e0f9a4173e force all os_malloc calls to request a aligned size.
- this fix Fatal exception (9) by unaligned class memory
2015-05-17 13:33:10 +02:00
81d27b403e PgmSpace working
PSTR() and F() macros correctly place string into flash memory relying
on PROGMEM
PROGMEM uses ICACHE_RODATA_ATTR
Print and String classes fixed up
str* classes fixed up
2015-05-13 11:27:54 -07:00
dd7d34ef9d add more NULL prt checks in strtok_r
Conflicts:
	libraries/SD/src/SD.cpp
	libraries/SD/src/SD.h
2015-05-12 17:10:19 +02:00
ca4c361a58 strnlen implementation
since there is no ets_strnlen, provide an implementation
2015-04-24 15:59:34 -07:00
f033fe8e6e Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-04-21 19:25:23 +02:00
d6bb217a56 Fix for undefined reference to strtok_r 2015-04-20 01:10:00 -05:00
7ceff75e33 test for #86 2015-04-19 10:25:25 +02:00
b6ea1e45af add includes for <stddef.h> <stdarg.h> <stdio.h> to Arduino.h
add strtok
2015-04-17 12:19:58 +02:00
1866ef0c98 Move some functions to .irom0.text 2015-04-11 10:59:36 +08:00
f165a0afcd use Eclipse auto Format to get rip auf the tab, space and code style inconsistency 2015-04-06 19:33:50 +02:00
be6b8f8a2d add more libc functions
add missing ICACHE_RODATA_ATTR define in #else case
2015-04-06 18:41:03 +02:00
5550792d7d add __ieee754 functions 2015-04-03 22:56:46 +02:00
0efbe3a0c8 remove completed libc 2015-04-03 13:41:29 +02:00
dbee544ed8 Provide replacements for malloc, free and other libc functions
#11
2015-04-03 00:01:51 +03:00