Commit graph

946 commits

Author SHA1 Message Date
Ruslan V. Uss
342ba29b63
Merge pull request #527 from ourairquality/freertos-v10-0-1
FreeRTOS v10.0.1
2017-12-24 00:34:17 +05:00
Our Air Quality
59a4d85663 FreeRTOS v10.0.1
Mainly some simplifications to the copyright terms.
2017-12-23 21:10:57 +11:00
Gunar Schorcht
ca0b5da905 - Delaying and repeating i2c operation automatically when i2c interface is busy removed. User has to deal with concurrency using semaphores.
- GPIO_ID_PIN macros removed
- Soft reset mechanism of SHT3x does not work when sensor is in any measurement mode. Therefore, it does not abort initialization procedure anymore
- typos
- changes to use the same source code with ESP8266 (esp-open-rtos) and ESP32 (ESP-IDF)
2017-12-21 19:02:02 +01:00
Gunar Schorcht
f0425e7abd - small corrections
- changes to use the same source code with ESP8266 (esp-open-rtos) and
  ESP32 (ESP-IDF)
2017-12-21 19:00:16 +01:00
Gunar Schorcht
07f3c08244 - minor changes
- changes to use the same source code with ESP8266 (esp-open-rtos) and
  ESP32 (ESP-IDF)
2017-12-21 18:58:52 +01:00
Our Air Quality
aa0b7f5005 Reclaim a chunk of unused dram in the wdev bss area, 8000 bytes. 2017-12-19 14:12:02 +11:00
Ruslan V. Uss
c3ae04c93f
Merge pull request #511 from ourairquality/newlib-locks
Newlib: implement locks
2017-12-14 08:30:20 +05:00
Ruslan V. Uss
642e98e0b3
Merge pull request #521 from ourairquality/print_meminfo-fixes
sdk_system_print_meminfo: fix and correct heap end.
2017-12-14 02:47:20 +05:00
Ruslan V. Uss
48a33e6c2e
Merge pull request #520 from ourairquality/wificfg-const-strings
wificfg: declare strings 'const' when appropriate.
2017-12-14 02:47:03 +05:00
Our Air Quality
f0d2c34399 sdk_system_print_meminfo: fix and correct heap end. 2017-12-14 08:15:04 +11:00
Our Air Quality
8ae8019045 wificfg: declare strings 'const' when appropriate. 2017-12-14 08:00:10 +11:00
Our Air Quality
724bf797b1 Reuse the startup stack for the dynamic heap.
Once scheduling has started, the startup stack is no longer usable, control can
never return to that stack. So bump up the heap end in the first task that runs
after scheduling has started. This gives back about 1k.
2017-12-14 07:48:25 +11:00
Our Air Quality
f27bc0f452 wificfg: remove the AP WEP mode option (#514)
* wificfg: remove the AP WEP mode option

The WEP mode does not appear to be implement in the sdk for the AP mode, and
defaults to open when WEP is requested which is probably not intended. Remove
the WEP option from the wifi config interface.

* lwip: enable mdns dns queries.

* wificfg: support mDNS on the softAP interface.
2017-12-13 21:29:49 +05:00
Ruslan V. Uss
c1937ea754
Merge pull request #518 from ourairquality/freertos-v10-1
FreeRTOS v10 fixes.
2017-12-13 16:08:24 +05:00
Our Air Quality
36322def89 FreeRTOS v10 fixes.
svn r2522:
FreeRTOS kernel: Fix extern "C" { in stream_buffer.h.
FreeRTOS kernel: Correct tskKERNEL_VERSION_NUMBER and tskKERNEL_VERSION_MAJOR constants for V10.
Ensure the currently executing task is printed correctly in vTaskList().
2017-12-13 21:16:40 +11:00
Ruslan V. Uss
95ff7ef378
Merge pull request #517 from UncleRus/fatfs_r13a
FatFs updated to R13a
2017-12-13 11:17:35 +05:00
Our Air Quality
e9d9201527 Newlib: implement locks
* Dynamically allocate arc4random data. Saves about 1k off the bss.
2017-12-13 11:29:43 +11:00
UncleRus
7f010ef1fe FatFs updated to R13a 2017-12-12 11:39:22 +05:00
Ruslan V. Uss
89c6c410ff
Merge pull request #516 from ourairquality/softap-multicast
softap: allow output of multicast frames.
2017-12-12 10:28:21 +05:00
Our Air Quality
0a07fe11e5 softap: allow output of multicast frames.
Multicast frames were being dropped by ieee80211_output_pbuf. It appears to look
up the destination address using cnx_node_search which only has an entry for the
broadcast address (all ones). This patch modifies cnx_node_search to return the
broadcast cnx_node for the multicast addresses too.

This is needed to support services such as mDNS on the softap interface.
2017-12-12 12:03:19 +11:00
Our Air Quality
85338ee672 mDNS-responder: ipv6 support and fixes
* Adds ipv6 support. Compiles with ipv6 enabled and then accepts ipv6
  connections and answers AAAA questions.

* Fixes a few overflows of the reply buffer. Reduce the default reply buffer
  size, name it MDNS_RESPONDER_REPLY_SIZE, and allow overriding.

* Fix mdns_add_TXT.

* Prefer malloc to large stack buffers, to control stack sizes, and try to
  malloc only the buffer size needed where known in advance.

* Determine the IP addresses when responding, eliminating the update function
  and the update task.

* Allow use in SoftAP and StationAP mode too.

* Fix to compile without the debug output.

* Slightly better integration with lwip.

* Accept a NULL TXT entry.

* Some code style changes, not comprehensive.
2017-12-12 11:34:21 +11:00
Gunar Schorcht
61f23d0cf4 CCS811 driver added (#479) 2017-12-11 08:00:53 +05:00
Ruslan V. Uss
2f62c6e9df
Merge pull request #509 from ourairquality/wificfg-ipv6-mdns
wificfg: IPv6 and mDNS support
2017-12-11 07:32:37 +05:00
Our Air Quality
d178d36e0e wificfg: add config option for mDNS 2017-12-10 10:32:21 +11:00
Our Air Quality
44d44a2cc5 wificfg: IPv6 and mDNS support
* When IPv6 is enabled the http server and the captive portal dns now also
  accept IPv6 connections. The interface and peer IPv6 address are now also
  reported.

* The http server no longer redirects <name>.local to an IP address for better
  integration with mDNS.

* Add mDNS support, for the extras/mdnsresponder or the LWIP mDNS responder,
  and enable the LWIP mDNS responder for examples/wificfg.
2017-12-10 10:32:21 +11:00
Our Air Quality
c4dcfb1cac lwip: update
* Update to current master branch

* Quietens unused variable warnings building mDNS.
2017-12-10 10:32:21 +11:00
Ruslan V. Uss
1d77f3ec1f
Merge pull request #500 from ourairquality/amazon-freertos-100
FreeRTOS v10.0.0
2017-12-09 22:29:06 +05:00
Sakari Kapanen
d41c0f1d72 I2C optimization (#503)
Fix of #480
2017-12-09 22:27:39 +05:00
Ruslan V. Uss
4ae2a6cdf0
Merge pull request #507 from imihajlow/master
Allow overrides of sntp.h
2017-12-09 22:26:53 +05:00
Ruslan V. Uss
776656d79b
Merge pull request #512 from ourairquality/esphttpd_wsbcast_stack
esphttpd: increase stack size for task wsbcast
2017-12-09 22:25:58 +05:00
Our Air Quality
c2eed89318 esphttpd: increase stack size for task wsbcast
Seeing stack overflows on this one.
2017-12-09 23:43:03 +11:00
Ivan Mikhailov
69220ee866 Allow overrides of sntp.h
Changed quote marks with triangle brackets
for sntp.h to allow user creating a custom sntp.h
2017-12-07 20:55:03 +01:00
Our Air Quality
a7f7f5c01c FreeRTOS v10.0.0
Based on svn r2519.

* Re-licensed with the MIT license, and by Amazon.

* New for this releases are Stream buffers and message buffers.
2017-12-07 11:13:07 +11:00
Sashka
d05d3020eb Bringing libesphttpd up-to-date (#504)
* libesphttpd: added extras and example

* Added "heatshrink" as a submodule

* Updated libesphttpd

* Updated libesphttpd

* Trying to fix the commit id

* Updated libesphttpd

* Added zlib1g-dev package

* Use native gcc to build mkespfsimage and mkupgimg

* Added NS and GW for DHCP server configuration

* Making libeshttpd up-to-date

* Making libeshttpd up-to-date (heatshrink updated)

* Making libesphttpd up-to-date
2017-12-06 20:13:29 +05:00
Maxim Kulkin
6faf7c569d Fix mdnsresponder compilation issues (#481) 2017-12-05 12:15:18 +05:00
Ruslan V. Uss
f67495f4f0
Merge pull request #486 from ekalyvio/master
Fixed Repeated-start in I2C
2017-12-02 14:45:46 +05:00
Ruslan V. Uss
3214c13fbc
Merge pull request #491 from funnydog/fixes
Fix the SPIFFS POSIX API (#489)
2017-12-02 14:41:41 +05:00
Zaltora
962196ef1d color and timing (ws2812_i2s) (#493) 2017-12-02 14:37:52 +05:00
Zaltora
a0f846013c pwm fix (#485)
* pwm fix special state + debug print + IRAM interupt
* Special state = don't set timer, safer
* fix timer crash, cant divide by 0
* pwm dont start when duty is set
* reverse option
* fix low duty crash + comments
2017-12-02 11:54:04 +05:00
funnydog
8354c03a12 Fix the SPIFFS POSIX API (#489)
The commit ebdd2f9 defined some offsets to differentiate between the
standard, socket and file descriptors.

SPIFFS_FILEHDL_OFFSET was updated accordingly but the code didn't use
that constant and this broke the SPIFFS POSIX API.

Fix it by initializing the fh_ix_offset field of the spiffs_config
structure to SPIFFS_FILEHDL_OFFSET.
2017-11-22 16:45:48 +01:00
Ruslan V. Uss
9b4a58c8e1
Merge pull request #484 from Zaltora/ina3221_option
Ina3221 crash with NULL fix
2017-11-22 16:43:39 +05:00
Efthymios Kalyviotis
0e6694144f Fixed Repeated-start in I2C 2017-11-19 23:27:55 +02:00
lilian
8a9c3fd9e8 ina3221 ptr NULL security 2017-11-17 20:44:02 +01:00
Gunar Schorcht
691cf4ed62 Driver for Bosch Sensortec BME680 added (#469)
* Driver for Bosch Sensortec BME680 added
2017-11-07 12:47:58 +05:00
Ruslan V. Uss
e0410b2c5d
Merge pull request #475 from UncleRus/i2c_fix2
Configurable I2C clock stretching
2017-10-29 19:13:48 +05:00
rus
1d3ca574f1 Fix #471 2017-10-28 22:57:22 +05:00
Ruslan V. Uss
f9d639f7f4 Merge pull request #478 from Petezah/fix.ssd1303.cpp
Fix a typo in ssd1306 driver that prevents compiling with c++ compiler
2017-10-27 19:52:17 +05:00
Peter Dunshee
f8c87c3d6c Fix a typo in ssd1306 driver that prevents compiling with c++ compiler 2017-10-27 09:04:57 -05:00
Ruslan V. Uss
7cd1afc52d Merge pull request #465 from UncleRus/pcf8591_update
PCF8591 driver update
2017-10-25 13:01:40 +05:00
Sashka
09b8b8087c Add libesphttpd to extras and supporting example (#458)
* libesphttpd: added extras and example

* Added "heatshrink" as a submodule

* Updated libesphttpd

* Updated libesphttpd

* Trying to fix the commit id

* Updated libesphttpd

* Added zlib1g-dev package

* Use native gcc to build mkespfsimage and mkupgimg

* Added NS and GW for DHCP server configuration
2017-10-23 23:59:13 +02:00