Commit Graph

817 Commits

Author SHA1 Message Date
Philippe G 3b6299dc1a AirPlay: no realloc, safe TCB cleanup, tools convergence 2021-12-17 10:54:25 -08:00
Philippe G a266c07114 move to stock esp_http_server but keep it under control
- means 3 sockets are used (data + 2 for control)
- but LRU is activated (uses the 2 extra sockets to wake from select)
- backlog is just 1 (listen)
- only 3 sockets can be consumed before LRU activates
- for now, connections are kept-alive
2021-12-14 11:52:51 -08:00
Philippe G 412880d628 bring back ctrl message in http_server - part#1 2021-12-13 19:53:02 -08:00
Philippe G 7b361a0c2c release 2021-12-12 22:16:46 -08:00
Philippe G 344730e1bc optimize GPIO expander + external decoder fix
- external decoders sink callback had infinite loop when output buffer was full and would never empty
- race condition when playback stopped/restarted while waiting for output buffer to empty
2021-12-10 23:03:13 -08:00
Philippe G af48710e31 Validate MCP23S17 + typos correction 2021-12-10 12:10:26 -08:00
Philippe G a9efcfeca8 safe NVS parsing 2021-12-06 18:29:04 -08:00
Philippe G 5ac153f808 Add MCP23s17 + further optimizations 2021-12-05 18:21:39 -08:00
Philippe G ec6dcb83f8 missing %d in expander isr log 2021-12-04 21:09:55 -08:00
Philippe G 16ba8e9e1f small correction for MCP23017 that now works! 2021-12-04 19:32:52 -08:00
Philippe G d2494b73db Rotary encoder + simplify
- GPIO expander works with rotary encoder
- Much better mimic real GPIO, including ISR, to minimize impact on clients
2021-12-04 12:40:56 -08:00
Philippe G 1649a7e2a0 add trace for ST7735 offset 2021-12-02 11:10:30 -08:00
Philippe G 2fbea79a5b Add offset for ST7735 2021-12-02 11:04:52 -08:00
Philippe G 2a9d87b6c5 add multi-expander 2021-12-01 19:15:29 -08:00
Philippe G 034f64c62a add mcp23017 (untested) and refactor things a bit 2021-12-01 18:20:07 -08:00
Philippe G c0f5ca1e10 fix expander as output (works now on 9535) 2021-12-01 14:28:32 -08:00
Philippe G 559f4ce69f SPI can only be HSPI + remove unused defines in globdefs 2021-12-01 09:30:34 -08:00
Philippe G 6fb458eff7 min expanded GPIO is based on esp32's data 2021-11-30 23:56:54 -08:00
Philippe G 970c72d416 add writable expander GPIOs 2021-11-30 23:51:52 -08:00
Philippe G 5c99ab56f9 create queue before task... 2021-11-30 21:41:48 -08:00
Philippe G 62b0b1fac0 first function pcx9535 version 2021-11-30 21:28:52 -08:00
Philippe G 4ee36c24f4 add async write and mutex 2021-11-30 17:10:59 -08:00
Philippe G 3d123e86ac add pc(a/f)85xx (untested) and write mode
Still no mutex
2021-11-29 23:29:17 -08:00
Philippe G 507c2c9755 first commit of GPIO expander 2021-11-29 19:24:52 -08:00
Philippe G 016bc1bb4d adjusting telnet stack size 2021-11-27 00:46:21 -08:00
Philippe G 17a3058b23 cleaning 2021-11-27 00:11:10 -08:00
Philippe G bbca38aaec Can't set NDEBUG with bluedroid (compiler optimization bug) + remove code when BT/AirPlay are not used 2021-11-26 18:07:20 -08:00
Philippe G ec860480a9 no call to BT in decoder init when BT is compiled out 2021-11-26 00:48:40 -08:00
Philippe G d4fa8638d7 Timer stack needs a bit more room + no EXT_RAM_ATTR for .data (again) 2021-11-26 00:32:36 -08:00
Philippe G c2f3e225d2 memory leak in telnet + more tweaks 2021-11-25 19:29:31 -08:00
Philippe G bc0783f7b9 don't use pthread_attr if we want esp.cfg to prevail 2021-11-25 18:31:19 -08:00
Philippe G a07cdbf3b5 optimize queue sizes and move more data to SPIRAM 2021-11-25 01:22:04 -08:00
Philippe G a8521223c9 forgot to push telnet.c 2021-11-24 23:24:10 -08:00
Philippe G ada74ab127 telnet & http server send command to stdin of console
The NVS commands must be executed using an internal stack, so push all keyboard-like inputs to the console
2021-11-24 23:15:13 -08:00
Philippe G 9588ae9f39 amp gpio control with jack - release 2021-11-20 11:08:48 -08:00
Philippe G d4b0bc4edb SPIRAM cannot be used for initialized data - release 2021-11-18 18:37:18 -08:00
Philippe G 635d382d71 fully remove ctrl_fd (was uninitialized in server loop) - release 2021-11-18 12:22:48 -08:00
Philippe G b3e67a8571 backport typo - release 2021-11-17 10:31:19 -08:00
Philippe G 08b22504bc allow array to be used in dac_controlset - release 2021-11-17 10:24:01 -08:00
philippe44 c236044228 limit sockets used by HTTP server (#122)
seems that ctrl and msg sockets are not needed
2021-11-17 07:59:30 -05:00
Philippe G faa9976d3d switching or losing server connection was exhausting sockets - release 2021-11-13 19:17:50 -08:00
Philippe G 1dbffe6753 no EXTRAM attribute + cosmetics - release 2021-11-13 16:43:51 -08:00
Philippe G 974ff5fa68 strncpy is not safe + memory optimization 2021-11-03 22:00:07 -07:00
Philippe G 5f5466fcb0 add "MISO" to system's spi_config 2021-10-31 16:13:42 -07:00
Philippe G 4f6dcc2cc7 add SPI ethernet 2021-10-31 14:45:35 -07:00
Philippe G a98b1d00b0 Ethernet + AirPlay fixes 2021-10-30 17:51:22 -07:00
Philippe G 96a05d8a6b fix opus error -136 (increase pseudo-stack) - release 2021-10-24 11:12:28 -07:00
Philippe G 3575245324 extra callback in preset caused NULL call - release 2021-10-20 21:24:36 -07:00
Philippe G 13294ddd0c Continue searching for STA in AP mode when SSID has been set 2021-10-05 12:22:46 -07:00
Philippe G 50390dbc61 Fix i2s mode for 32 bits & SPDIF - release 2021-09-24 18:19:50 -07:00