Commit graph

843 commits

Author SHA1 Message Date
Angus Gratton
19b0a19ad6 libc: Recompile newlib to enable float & long double i/o in printf/scanf
Enabled by default, set PRINTF_SCANF_FLOAT_SUPPORT=0 in local.mk/Makefile to disable

newlib-xtensa revision ae10be3

Configure/compile steps:

../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 --prefix=/home/gus/dev/esp/rtos/open-rtos/libc/ --enable-newlib-nano-malloc --enable-newlib-nano-formatted-io --enable-newlib-reent-small --prefix=path_to/esp-open-rtos/libc

CROSS_CFLAGS="-DSIGNAL_PROVIDED -DABORT_PROVIDED" make
make install

Closes #95
2016-02-24 09:10:52 +11:00
Angus Gratton
d1091b69d1 Make the task stack overflow message clearer
Related to #96
2016-02-24 08:54:32 +11:00
hetii
c1aa8f2e73 Merge pull request #1 from foogod/hetii-ds18b20
A couple of fixups prior to merging into main project
2016-02-23 10:20:23 +01:00
Alex Stewart
d0ed5f03a2 A couple of fixups prior to merging into main project
Changed the ds_sensor_t struct to just return a float instead of major/minor
Renamed ds18b20.h functions to have consistent `ds18b20_*` naming.
Removed some unnecessary LICENSE files.  Clarified onewire origin/license.
2016-02-22 21:18:50 -08:00
Alex Stewart
8279b5cfd1 Added some clarifications to comments in esp/gpio.h 2016-02-22 09:32:12 -08:00
Alex Stewart
c36feab845 Separate pullup config out of gpio_enable()
Created `gpio_set_pullup` to configure pullups independently of direction.
Removed GPIO_INPUT_PULLUP direction type.
Added misc other helper functions in iomux.h
2016-02-21 18:34:11 -08:00
Angus Gratton
7c1d7fb43e Merge branch 'feature/dhcp-server' 2016-02-21 10:36:28 +11:00
Grzegorz Hetman
6178865cc6 Add clear version of commit 72f30ad. 2016-02-18 18:42:50 +01:00
Angus Gratton
e12077513f common.mk: Consider possibility that not building inside a git checkout 2016-02-17 15:51:46 +11:00
Angus Gratton
71a2eb7b85 common.mk: Fix places using build/ instead of configurable BUILD_DIR 2016-02-17 15:47:40 +11:00
Angus Gratton
2696e80471 common.mk: Rename FW_BASE to FIRMWARE_DIR, in line with other directory variable names 2016-02-17 15:47:09 +11:00
Angus Gratton
30d8e162b3 blink example: Change default to GPIO2 as this pin has an LED on most boards 2016-02-09 10:58:56 +11:00
Angus Gratton
3dfa2272cc mbedtls: mbedlts_net_bind should bind on all interfaces with bind_ip == NULL
As per mbedtls documentation. This is different to lwip_getaddrinfo()
which uses loopback for a NULL address.

Fixes bug mentioned here https://groups.google.com/forum/#!topic/esp-open-rtos/3KH5TZSTMUw
2016-02-09 10:54:57 +11:00
Angus Gratton
e2759f9e7d Merge pull request #77 from jcard0na/master
Initial PWM implementation from gpascualg
2016-02-09 09:30:51 +11:00
Angus Gratton
7e0fee39c0 Merge pull request #85 from ReadmeCritic/master
Update README URLs based on HTTP redirects
2016-02-09 09:25:33 +11:00
Angus Gratton
d5e50edc0b ota_basic example, ota-tftp support: Add links to the new OTA wiki page 2016-02-08 16:58:31 +11:00
Angus Gratton
c8716747bb Add tls_server example, showing binding a socket and accepting a TLS connection 2016-02-08 15:41:44 +11:00
ReadmeCritic
a72fa10b15 Update README URLs based on HTTP redirects 2016-02-05 14:12:11 -08:00
Angus Gratton
3e7edd43aa Makefile: Don't apply C_CXX_FLAGS to assembler source, move "universal" flags to CPPFLAGS
Closes #79
2016-01-04 12:03:09 +11:00
Angus Gratton
562a8e08f1 Update LWIP to use modified debug macro for C++ compatibility, contributed by @paoloach 2016-01-02 23:10:22 +11:00
Angus Gratton
0ea1b3070e Travis: esptool2 now in its own repository 2015-12-30 15:08:31 +11:00
Angus Gratton
bb0f31369f Bump esp-open-sdk revision used for Travis, fix build as old revisions now missing 2015-12-30 14:09:53 +11:00
Angus Gratton
0102b8090d Makefile: Allow EXTRA_CFLAGS, EXTRA_CXXFLAGS, overriding of CXXFLAGS, etc. 2015-12-30 13:06:39 +11:00
Blipi
72d5dd99fb Initial PWM implementation from gpascualg 2015-12-11 15:20:28 -08:00
Angus Gratton
5200c5f2ef Travis: Don't cache the ccache directory between builds 2015-12-01 09:57:25 +11:00
Angus Gratton
b4af009efe Add esp_gpio.c, including gpio_enable() function
Fix build broken since 812c2fef (unclear why previous commits didn't break?)
2015-12-01 09:56:40 +11:00
Angus Gratton
0078a9e04e Travis: Verbose build output 2015-12-01 09:54:07 +11:00
Angus Gratton
e264d63e35 Pass linker search paths with -L not -Wl,-L, so they take priority over sysroot
This fixes link-time errors where the toolchain used was esp-open-sdk
built with the default STANDALONE=y (meaning there are Espressif SDK
libs in the sysroot).

Closes #74
2015-12-01 09:44:50 +11:00
Angus Gratton
812c2fef21 Removed INLINED (force inline) macro.
Progress towards #57.
2015-11-28 18:01:03 +11:00
Angus Gratton
2d6eeb83ea README: Make PATH step more explicit, as suggested on IRC 2015-11-28 16:33:39 +11:00
Angus Gratton
2887896c76 timers.h: Return error codes instead of true/false for failures 2015-11-28 16:33:39 +11:00
Angus Gratton
336bad573d timers.h: Remove compile-time-auto-inlining complexity
Fixes bug mentioned in #72 (oops!), also progress towards #57.
2015-11-28 16:32:52 +11:00
Angus Gratton
d14d5b1aab stdin_uart_interrupt driver: Don't reset TX FIFO (loses output otherwise)
Fixes bug in 'terminal' example where banner message didn't print on startup.

Relates to #59.
2015-11-21 17:13:08 +11:00
Angus Gratton
01773fd1c9 terminal example: Remove unused BUFFER_SIZE macro, redundant setbuf
(Line-buffering is now disabled by default.)

Relates to #59.
2015-11-21 17:11:41 +11:00
Johan Kanflo
4cfe40d348 extras/stdin_uart_interrupt: stdin via IRQ driven RX driver on UART0
See examples/terminal/ for usage
2015-11-21 16:15:58 +11:00
Angus Gratton
5301174290 registers.h: Add i2s, SLC, RTC register headers 2015-11-20 17:56:38 +11:00
Angus Gratton
d63a341c4c RTC registers: Add some notes about other register values
Still patchy, but more towards #8.
2015-11-20 17:49:46 +11:00
Angus Gratton
925753819e Add in-progress RTC register header (some registers still undocumented)
Author for this work is @foogod, extracted from 1da996e (open-libmain branch).

Progress towards #8.
2015-11-20 17:31:11 +11:00
Angus Gratton
547c57c840 Add SLC interrupt number 1. Closes #69 2015-11-20 17:25:15 +11:00
Alex Stewart
3b3d41d502 Merge pull request #70 from DagAgren/master
Add I2S and SLC register headers
2015-11-19 12:25:30 -08:00
Dag Ågren
cad1655330 Add static asserts and create slc.h header for descriptor struct 2015-11-19 21:14:16 +02:00
Dag Agren
1f1bb4d190 Add I2S and SLC register headers 2015-11-16 00:20:16 +02:00
Angus Gratton
4b5349c236 Makefile CPPFLAGS: Don't need FLASH_SIZE defined any more
To determine flash size from inside a program, better to look via the
SPI flash header at this stage.
2015-11-13 12:20:05 +11:00
Angus Gratton
e8eac9614d Simplify linker script to remove preprocessing, not check flash sizes
Memory layout is now split into two linker scripts for OTA vs
non-OTA (different starting offsets), remaining functionality in
common.ld.

As discussed in #64, progress towards #38
2015-11-13 12:15:01 +11:00
Angus Gratton
fbea34b07a Linker script: Fix IROM0_LEN calculation
Use linker script arithmetic (yay?) to calculate flash size in bytes
from FLASH_SIZE in megabits.

Closes #64
2015-11-13 11:25:08 +11:00
Angus Gratton
5cd31c649a GPIO2 UART iomux values: Remove _BLINK from macro name
This pin acts as a real TX not an activity LED as some pages suggest.
2015-10-28 20:31:50 +11:00
Angus Gratton
0165592231 iomux: Fix bug setting IOMUX_FUNC(4)
Function masking value was incorrect
2015-10-28 20:31:44 +11:00
Alex Stewart
f1808860b2 Add utils/addrsource 2015-10-27 12:14:08 -07:00
Angus Gratton
6506a29d21 serial_echo example: Remove setbuf() call as stdout no longer buffered by default 2015-10-27 13:36:51 +11:00
Angus Gratton
51c752dbcb Remove redundant symbols_norename.txt
No longer used, and all the symbols in those lists are found in newlib
libc or our own source code now.
2015-10-27 09:14:09 +11:00