Commit graph

734 commits

Author SHA1 Message Date
Johan Kanflo
d05a637c5d wificfg bugfix and enhancements 2017-10-10 15:53:36 +02:00
Johan Kanflo
e3403eb5db Added fflush for terminal echo (#455) 2017-10-10 15:37:43 +02:00
Erwin Boskma
e24b6579ff Added support for RGBW NeoPixels (#449) 2017-10-08 23:02:39 +05:00
Zaltora
68cc1451b2 example and dhcp debug (#447) 2017-10-08 11:47:23 +05:00
Ruslan V. Uss
546cc47121 Merge pull request #437 from ourairquality/oaq-merge-1
* bmp180: comment typo
* ds3231: minor code style fixes. Comment, on the week day start.
* Reverse engineered ets_timers.o Switch from FreeRTOS queue to task notification. Removed unknown/unused code. Rename sdk_ets_handler_isr to process_pending_timers. Add function for microseconds Simplify time to ticks conversion
* ets_timer: code for using the FreeRTOS timers, and remove from libs.
* libc: update to a recent newlib version.
* LwIP v2 support
* spi_write: use uint32_t for the page iteration counter. The page counter was using an uint8_t which seems unnecessary and might wrap.
* sysparam_get_bool: memcpy the binary values out.
* FreeRTOS 9.0.1
* Add an argument to ISRs. Disable interrupts while masking them.
* sysparam: reserve one more flash sector before placing the sysparams. This is to help work with recent SDKs that add a RF cal sector by default in the fifth last sector - just so the sysparam sectors do not jump around when using different SDK versions.
* upnp example: strip down the lwipopts.h file
* sysparam editor: accept newline to end a line of input.
* Add Wificfg. Uses the sysparam store to save the wifi configuration. Adds a basic http server for configuration.
* lwip: disable the tcpip_core_locking_input option. With this option enabled some lwip input processing occurs in the pp task which works well for some uses but some code uses a lot of stack (e.g. mdns) and will overflow the pp task stask, or might unnecessarily slow the critical pp task,
so disable this by default and if not already defined.
* sdk_cnx_add_rc: fix overflow of the table, when no match is found. Also adds source code for sdk_cnx_rc_search, adding a null pointer dereference. Check (that is not expected to be seen), and source code for sdk_cnx_remove_rc.
* http_get example: fix compilation with ipv6 disabled.
* lwip: update to master branch.
* wificfg: allow the AP channel to be 1.
* lwip: rework the tcp ooseq handling. It now accounts for the number of rx pool buffers used and the
available memory when deciding the number of ooseq buffers to retain. Enable the TCP Selective ACK support which appears to help a lot on lossy wifi when using the OOSEQ option.
* Update lwip, fixes losses of pcbs and associated problems.
* lwip: revise the tcp ooseq limit calulations. Was making a mess of the calculation sign. Also added a COPY_PP_RX_PBUFS define to include appropriate limits for this option.
* lwip: ooseq_max_bytes() - set a practical target memory size.
* lwip: revise ooseq handling. Modified for lwip backwards compatibility based on upstream feedback.
* lwip: update to the 2.0.3 release
* lwip: merge upstream master.
* libc: update to upstream master.
* lwip: fix building without TCP_QUEUE_OOSEQ
2017-10-02 04:50:35 +05:00
Our Air Quality
70aa7a90a5 lwip: fix building without TCP_QUEUE_OOSEQ 2017-10-01 21:26:15 +11:00
Our Air Quality
6080bb6ef2 libc: update to upstream master. 2017-09-21 23:44:24 +10:00
Our Air Quality
1e76ce25d5 lwip: merge upstream master. 2017-09-21 20:55:00 +10:00
Our Air Quality
5e92d55af5 lwip: update to the 2.0.3 release 2017-09-18 21:28:29 +10:00
Our Air Quality
0a1fd09459 lwip: revise ooseq handling.
Modified for lwip backwards compatibility based on upstream feedback.
2017-09-08 10:48:44 +10:00
Our Air Quality
893f715852 lwip: ooseq_max_bytes() - set a practical target memory size. 2017-09-04 18:13:27 +10:00
Our Air Quality
730a0f40c7 lwip: revise the tcp ooseq limit calulations.
Was making a mess of the calculation sign.

Also added a COPY_PP_RX_PBUFS define to include appropriate limits
for this option.
2017-09-04 17:22:30 +10:00
Our Air Quality
49f7951013 Update lwip, fixes losses of pcbs and associated problems. 2017-09-04 07:31:42 +10:00
Our Air Quality
f5817aef01 lwip: rework the tcp ooseq handling.
It now accounts for the number of rx pool buffers used and the
available memory when deciding the number of ooseq buffers to retain.

Enable the TCP Selective ACK support which appears to help a lot on
lossy wifi when using the OOSEQ option.
2017-09-03 20:13:54 +10:00
Zaltora
b83c2629b9 I2C bus upgrade (#432) 2017-09-01 14:29:32 +05:00
Ruslan V. Uss
d100f42b1f Merge pull request #440 from flannelhead/user-exception-handler
Add a hook for a user defined exception handler
2017-09-01 14:28:49 +05:00
Our Air Quality
1bfa6c4364 wificfg: allow the AP channel to be 1. 2017-08-30 13:53:01 +10:00
Our Air Quality
fea8a3f4e7 lwip: update to master branch. 2017-08-30 13:52:50 +10:00
Our Air Quality
29da4e9279 sdk_cnx_add_rc: fix overflow of the table, when no match is found.
Also adds source code for sdk_cnx_rc_search, adding a null pointer dereference
check (that is not expected to be seen), and source code for sdk_cnx_remove_rc.
2017-08-30 13:51:32 +10:00
Our Air Quality
87994d3bb4 http_get example: fix compilation with ipv6 disabled. 2017-08-30 13:51:32 +10:00
Our Air Quality
0d5e3bb663 lwip: disable the tcpip_core_locking_input option
With this option enabled some lwip input processing occurs in the pp task which
works well for some uses but some code uses a lot of stack (e.g. mdns) and will
overflow the pp task stask, or might unnecessarily slow the critical pp task,
so disable this by default and if not already defined.
2017-08-30 13:51:32 +10:00
Our Air Quality
b79da1f1f1 sysparam editor: accept newline to end a line of input. 2017-08-30 13:51:32 +10:00
Our Air Quality
5aabd643da ds3231: minor code style fixes.
Comment, on the week day start.
2017-08-30 13:51:32 +10:00
Our Air Quality
56a73454dd bmp180: comment typo 2017-08-30 13:51:32 +10:00
Our Air Quality
55958b8bc3 sysparam_get_bool: memcpy the binary values out. 2017-08-30 13:51:32 +10:00
Our Air Quality
b6fc58b743 spi_write: use uint32_t for the page iteration counter.
The page counter was using an uint8_t which seems unnecessary and might wrap.
2017-08-30 13:51:32 +10:00
Our Air Quality
3dbf129fa1 ets_timer: code for using the FreeRTOS timers, and remove from libs. 2017-08-30 13:51:32 +10:00
sheinz
326708c903 Reverse engineered ets_timers.o
Switch from FreeRTOS queue to task notification.
Removed unknown/unused code.

Rename sdk_ets_handler_isr to process_pending_timers
Add function for microseconds
Simplify time to ticks conversion
2017-08-30 13:51:32 +10:00
Our Air Quality
8b0a1ae362 Add Wificfg
Uses the sysparam store to save the wifi configuration.
Adds a basic http server for configuration.
2017-08-30 13:51:32 +10:00
Our Air Quality
af4ac44cb5 libc: update to a recent newlib version. 2017-08-30 13:51:32 +10:00
Our Air Quality
cd23acaa4a LwIP v2 support 2017-08-30 13:51:32 +10:00
Our Air Quality
1cfded6389 upnp example: strip down the lwipopts.h file 2017-08-30 13:51:32 +10:00
Our Air Quality
17eb160be7 FreeRTOS 9.0.1 2017-08-30 13:51:32 +10:00
Our Air Quality
5583543f14 Add an argument to ISRs. Disable interrupts while masking them. 2017-08-30 13:51:32 +10:00
Our Air Quality
ec5dabd237 sysparam: reserve one more flash sector before placing the sysparams
This is to help work with recent SDKs that add a RF cal sector by
default in the fifth last sector - just so the sysparam sectors do not
jump around when using different SDK versions.
2017-08-30 13:51:32 +10:00
Sakari Kapanen
4838072ecf Added an API for user exception handlers 2017-08-29 09:51:23 +03:00
Ruslan V. Uss
42ccb47eb3 Merge pull request #439 from Zaltora/ssd1306_fix
Fix SPI3 protocol with SSD1306
2017-08-24 18:41:02 +05:00
lilian
674c450416 Fix SPI3 protocol with SSD1306 2017-08-22 15:10:15 -03:00
Ruslan V. Uss
077fe622da Merge pull request #438 from sheinz/fix/travis
Fix pyserial import on travis CI
2017-08-20 01:32:21 +05:00
sheinz
8ce00cdf21 Fix pyserial import on travis CI 2017-08-18 17:38:38 +03:00
Ruslan V. Uss
f51becd0a7 Merge pull request #433 from flannelhead/httpd-typedef-fix
httpd: add missing typedef
2017-08-05 01:34:04 +05:00
Ruslan V. Uss
9347a6b165 Merge pull request #431 from ourairquality/i2c-default-speed
i2c: remove wip 400k define
2017-08-04 15:46:04 +05:00
Sakari Kapanen
30920ce4ec httpd: add missing typedef 2017-08-04 07:18:42 +03:00
Our Air Quality
afa834a805 i2c: remove wip 400k define
Looks like this was test wip code that should not have been included.
Want to be able to set the i2c per-project rather than having to patch
the driver.
2017-08-02 10:36:06 +10:00
Ruslan V. Uss
9523e872f8 Merge pull request #418 from apiel/master
Upnp example emulating a Wemo switch
2017-07-24 16:26:37 +05:00
Ruslan V. Uss
29b9054cb1 Merge pull request #415 from ourairquality/rm-libgcc-in-rom
Remove code from libgcc that is provided by the ROM.
2017-07-24 16:17:31 +05:00
Ruslan V. Uss
1544768025 Merge pull request #416 from ourairquality/lmac-use-hwrand
Use hwrand for the sdk uses of rand, in particular with the NMI.
2017-07-24 16:16:30 +05:00
alex
3c050bc4d1 Upnp example emulating a Wemo switch 2017-07-20 20:23:52 +02:00
Our Air Quality
6a0da03809 Use hwrand for the sdk uses of rand, in particular with the NMI.
The fiq NMI calls rand() from lmac:lmac.a:sdk_lmacTxFrame and the NMI
must not touch the newlib reent structure or enter critical regions
etc, so just use the simple and safe hwrand implementation as a
substitute.
2017-07-20 16:24:45 +10:00
Our Air Quality
9e302c59ed Remove code from libgcc and libc that is provided by the ROM.
This saves about 2.5k of iram.
2017-07-16 23:09:33 +10:00