Commit graph

958 commits

Author SHA1 Message Date
Ruslan V. Uss
46499c0f26
Merge pull request #648 from phkehl/improve_docu
Improve documentation of http_get_bearssl example
2018-07-04 23:23:33 +05:00
Johan Kanflo
b80a00065b Really added missing include 2018-06-30 20:50:57 +02:00
Johan Kanflo
81fb2d4cae Added missing include 2018-06-30 20:32:11 +02:00
Ruslan V. Uss
a8c60e0960
Merge pull request #647 from ourairquality/libmain-save-wifi-params
libmain: add a compile option to avoid saving wifi params to flash
2018-06-17 18:55:27 +05:00
Philippe Kehl
8bec6e0e81 improve http_get_bearssl example documentation
Add text explaining how to build the 'brssl' tool, how to use it and how
to obtain the server certificate for an exiting https host.
2018-06-17 13:59:18 +02:00
Philippe Kehl
59cb689a45 Merge remote-tracking branch 'upstream/master' 2018-06-17 13:45:21 +02:00
Our Air Quality
4d072e20ed sysparam editor: avoid saving any wifi params to flash 2018-06-17 20:32:07 +10:00
Our Air Quality
7a8ee567b6 libmain: add a compile option to avoid saving wifi params to flash
Add source code for sdk_wifi_param_save_protect() and a compile time,
WIFI_PARAM_SAVE, option to skip writing the wifi state to flash. This
avoids wear on the flash and does not appear to be necessary when the
app initializes the state anyway.

Define WIFI_PARAM_SAVE to 0 for the wificfg example.
2018-06-17 20:12:29 +10:00
Ruslan V. Uss
07772c643d
Merge pull request #587 from ourairquality/newlib-locks-nmi
newlib: skip locking when within the NMI Irq.
2018-06-17 13:08:41 +05:00
Ruslan V. Uss
f89ba44f6e
Merge pull request #646 from ourairquality/wificfg-hostname
wificfg: default the hostname in all modes.
2018-06-17 12:40:30 +05:00
Ruslan V. Uss
88ff263f92
Merge pull request #585 from ourairquality/mbedtls-0318
mbedtls: update and integrate upstream fixes.
2018-06-17 12:32:14 +05:00
Ruslan V. Uss
e3a7ee66cd
Merge pull request #629 from ourairquality/uart-rx-rewrite
stdin_uart: rewrite to use a FreeRTOS queue.
2018-06-17 12:20:16 +05:00
Ruslan V. Uss
14c9e8ae6a
Merge pull request #630 from ourairquality/freertos-r2541
FreeRTOS: update to svn r2541.
2018-06-17 12:19:14 +05:00
Ruslan V. Uss
6db65e8a7a
Merge pull request #642 from ourairquality/i2c-clock-stretch-slow
i2c: increase the default clock strech timeout to 250msec.
2018-06-17 12:16:24 +05:00
Ruslan V. Uss
56f7fd2229
Merge pull request #645 from ourairquality/wificfg-shutdown-hooks
wificfg: add shutdown hooks, and add support to wait until connected.
2018-06-17 12:04:16 +05:00
Our Air Quality
024fbd0cf2 wificfg: default the hostname in all modes.
A hostname is also useful in AP mode, so also default it in AP mode -
it was previously only defaulted in station mode.

Correct the host redirection logic, to work when no hostname is defined.
2018-06-17 16:30:24 +10:00
Our Air Quality
5fb2e94fed wificfg: add shutdown hooks, and add support to wait until connected.
Remove the wificfg_got_sta_connect() function and replace it with
wificfg_wait_until_sta_connected(). This replaces a probe function with a wait
function, and this better fits the wifi layer using an event model - the wait
function can wait on a station connection event before returning.

The shutdown hooks are call when the wificfg restart function is used. It can
be used to implement a cleaner restart, for example blocking further i2c and
flash operations.
2018-06-17 16:11:08 +10:00
Our Air Quality
c8c7f97290 i2c: increase the default clock strech timeout to 250msec.
This also redefines the timeout in FreeRTOS clock ticks, and implements a two
stage wait: firstly spinning sampling frequently, and then falling back to a
longer wait while sampling less frequently and yielding.
2018-06-15 08:28:47 +10:00
Ruslan V. Uss
c4fbd770ad
Merge pull request #639 from joostn/jnsilentmdns1
Turn off mdnsresponder debugging by default
2018-06-11 08:26:22 +05:00
Joost Nieuwenhuijse
fdd3b6e20c Turn off mdnsresponder debugging by default
Currently mdnsresponder outputs debug info by default. Make this
optional by defining:

#define MDNS_RESPONDER_DEBUGGING=1
2018-06-08 22:09:15 +02:00
Joost Nieuwenhuijse
a16997dee1 Merge branch 'SuperHouse/master' 2018-06-08 21:54:16 +02:00
Ruslan V. Uss
af52af782f
Merge pull request #637 from ourairquality/i2c-stdio
i2c: include stdio.h for debugging.
2018-06-08 14:41:42 +05:00
Our Air Quality
b4271792b9 i2c: include stdio.h for debugging. 2018-06-08 19:21:21 +10:00
Ruslan V. Uss
d9c5f2eaa2
Merge pull request #635 from quietboil/improved
ssd1306: Allow SPI3 support to be disabled
2018-06-06 19:30:05 +05:00
Alex Demenchuk
c3b7a01891 Add SPI3 SUPPORT preprocessor macro to CFLAGS 2018-06-05 16:17:26 -04:00
Ruslan V. Uss
eed96df5dd
Merge pull request #634 from ourairquality/sysparam-init-sem
sysparam: always create the semaphore on init.
2018-06-05 20:05:39 +05:00
Our Air Quality
090db8da5e sysparam: always create the semaphore on init.
Otherwise when initialization was not successful it may fail with an
assertion in FreeRTOS rather than returning SYSPARAM_ERR_NOINIT.
2018-06-05 22:24:48 +10:00
Our Air Quality
182258e2c3 FreeRTOS: update to svn r2541. 2018-05-31 14:24:58 +10:00
Our Air Quality
6be0b6b20e stdin_uart: rewrite to use a FreeRTOS queue.
Rewrite to have the IRQ handler read the character and place it in a
FreeRTOS queue.
2018-05-31 14:14:50 +10:00
Ruslan V. Uss
93d43d7825
Merge pull request #622 from ourairquality/uart-nonblock-vtime
stdin_uart_interrupt: add support for nonblock and a timeout.
2018-05-20 02:48:30 +05:00
Zaltora
4dc7d825bc Initial HW PWM (Delta-Sigma) (#609) 2018-05-20 02:47:29 +05:00
Ruslan V. Uss
10f361c8ca
Merge pull request #625 from joostn/jn_cpp1
Improved C++ support, support C++ exceptions
2018-05-18 20:00:42 +05:00
Joost Nieuwenhuijse
2985d1d11e Make operator new / delete weak
so you can implement your own, e.g. if you need a throwing operator new.
2018-05-16 17:56:15 +02:00
Joost Nieuwenhuijse
233f9a6a31 Change linker script to support C++ exceptions
See:
https://github.com/espressif/esp-idf/issues/459
https://github.com/jcmvbkbc/crosstool-NG/issues/54
2018-05-16 17:54:56 +02:00
Joost Nieuwenhuijse
ee001e0231 Move large lib_a-svfwprintf to flash
lib_a-svfwprintf may get included when linking against libstdc++
This will overflow IRAM

https://github.com/SuperHouse/esp-open-rtos/issues/623
2018-05-16 17:53:17 +02:00
Our Air Quality
efff445a03 stdin_uart_interrupt: add support for nonblock and a timeout. 2018-05-05 13:00:06 +10:00
Ruslan V. Uss
5830e001cf
Merge pull request #621 from ourairquality/dhcpc-flag-stopped
sdk_wifi_station_dhcpc_stop: ensure the client is flagged as stopped.
2018-04-30 15:14:18 +05:00
Our Air Quality
6db5525fbb sdk_wifi_station_dhcpc_stop: ensure the client is flagged as stopped.
Need to flag the dhcp client as stopped, even if the netif is not yet
initialized, because the flag is used to control the starting of the
dhcpc.
2018-04-30 14:08:41 +10:00
Ruslan V. Uss
61d3f5b445
Merge pull request #615 from ourairquality/os_delay_us
sdk_os_delay_us: rewrite to avoid hal.h
2018-04-27 01:20:30 +05:00
Ruslan V. Uss
a8c0e44cc7
Merge pull request #616 from ourairquality/new-flash-sizes
Recognise some new flash size codes.
2018-04-27 01:19:47 +05:00
Ruslan V. Uss
2b818ab6e3
Merge pull request #617 from ourairquality/rboot-1_4_2
rboot: update to 1.4.2
2018-04-27 01:19:17 +05:00
Our Air Quality
c183804aa2 rboot: update to 1.4.2 2018-04-25 23:27:01 +10:00
Our Air Quality
46559496c6 Recognise some new flash size codes.
This at least recognises the 2MB-c1, 4MB-c1, 8MB, and 16MB flash
size codes.
2018-04-25 23:06:28 +10:00
Our Air Quality
cec6b7c19f sdk_os_delay_us: rewrite to avoid hal.h
Seems to fail to compile recently, missing xthal_get_ccount(), so
avoid using hal.h which is outside esp-open-rtos.
2018-04-25 13:05:25 +10:00
Ruslan V. Uss
782eaabb97
Merge pull request #612 from rerobika/sdio_send_command
Fix SDIO send_command
2018-04-21 22:05:33 +05:00
Robert Fancsik
3b5510dce1 Fix SDIO send_command
This patch fixes the problem, while receiving R1b type of response from the card.
In case of R1b response the continuous stream that the card sends must be checked whether the signal indicates busy status and wait until a non zero response.
2018-04-20 19:59:59 +02:00
Ruslan V. Uss
4581999feb
Merge pull request #608 from rerobika/sdio_write_block_fix
Fix for sdio_write_sectors
2018-04-17 01:03:38 +05:00
Robert Fancsik
b43c3cee2d Fix for sdio_write_sectors
The issue was found by using f_mkdir("directory_name").
The function always returned FR_DISK_ERR due to an unhadled case in sdio_write_sectors().
According to this documentation: http://www.convict.lu/pdf/ProdManualSDCardv1.9.pdf#page=92 stop transmission command should be sent after writing multiple blocks.
This patch fixes this bug also adds a test case for it.
2018-04-16 12:11:05 +02:00
Ruslan V. Uss
0fa4213577
Merge pull request #607 from FlavioBayer/patch-1
bugfix/ets_timer.c: race condition while disarming
2018-04-14 00:11:10 +05:00
Flavio Bayer
de426c08b6
bugfix/ets_timer.c: race condition while disarming
If `sdk_ets_timer_arm_ms_us` is called right after `vPortExitCritical` inside `sdk_ets_timer_disarm` on line 247 (by an ISR for example, which was my case), execution will loop forever on line 196, since `timer->next!=ETS_TIMER_NOT_ARMED`, which was supposed to be changed in line 248.
By delaying the IRS or context switch until `sdk_ets_timer_disarm` the problem is fixed.
2018-04-13 16:08:03 -03:00