1. 12 Oct, 2022 1 commit
    • Johny Mattsson's avatar
      Upgrade IDF to v4.4.2 · 38ccd7b2
      Johny Mattsson authored
      Slightly reworked embed_lfs.sh to better cope with attribute size changes
      in future compiler versions, without needing to be updated again.
      
      RMT register naming changed once again...
      38ccd7b2
  2. 30 Aug, 2022 1 commit
  3. 29 Aug, 2022 2 commits
  4. 04 Jun, 2022 1 commit
    • h2zero's avatar
      Explicitly set RMT config::flags. · b8ae6ca6
      h2zero authored
      If this variable is not set in the config it may contain random data and set the clock source to the REF_CLK
      resulting in timing errors, the DHTx, DS18B20 and ws2812 devices to not communicate.
      b8ae6ca6
  5. 26 Jan, 2022 1 commit
  6. 07 Jan, 2022 1 commit
  7. 04 Nov, 2021 1 commit
  8. 20 Oct, 2021 1 commit
    • Johny Mattsson's avatar
      Switch to IDF-provided VFS and standard `io` module. · a2ba49e3
      Johny Mattsson authored
      The IDF-provided VFS resolves several issues:
      
       - The IDF components having a different view of the (virtual) file system
         compared to the Lua environment.
      
       - RTOS task/thread safety. Our legacy VFS was only ever safe to use
         from the LVM thread, which limited its usability. Upgrading it
         would have effectively required a reimplementation of the IDF VFS,
         which would have been a bigger task with larger on-going maintenance
         issues.
      
       - We're no longer needing to maintain our own SPIFFS component.
      
       - We're no longer needing to maintain our own FATFS component.
      
       - The legacy of the 8266's lack of standard C interface to the file system
         is no longer holding us back, meaning that we can use the standard
         Lua `io` module rather than the cobbled-together swiss army knife
         also known as the file module.
      
      Of course, the downside is that we'll either have to declare a backwards
      breakage in regard to the file module, or provide a Lua shim for the old
      functions, where applicable.
      
      Also included is some necessary integer type fixups in unrelated code,
      which apparently had depended on some non-standard types in either the
      SPIFFS or FATFS headers.
      
      A memory leak issue in the sdmmc module was also found and fixed while
      said module got switched over to the Espressif VFS.
      
      Module documentation has been updated to match the new reality (and I
      discovered in some places it wasn't even matching the old reality).
      a2ba49e3
  9. 24 Aug, 2021 1 commit
  10. 23 Aug, 2021 1 commit
    • Johny Mattsson's avatar
      Discard old console driver. · fbef7fea
      Johny Mattsson authored
      The IDF provides all we need these days, and the old driver was just
      needlessly conflicting with the IDF settings and setup.
      
      This also simplifies our uart input path as we no longer need to
      duplicate the raw byte handling for when "run_input" is false.
      fbef7fea
  11. 22 Aug, 2021 1 commit
  12. 21 Aug, 2021 1 commit
    • Johny Mattsson's avatar
      Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch. · 17df207a
      Johny Mattsson authored
      Changes have been kept to a minimum, but a serious chunk of work was
      needed to move from 8266isms to IDFisms.
      
      Some things got refactored into components/lua/common, in particular
      the LFS location awareness.
      
      As part of this work I also evicted our partition table manipulation
      code, as with the current IDF it kept breaking checksums and rendering
      things unbootable, which is the opposite of helpful (which was the
      original intent behind it).
      
      The uart module got relocated from base_nodemcu to the modules component
      properly, after I worked out how to force its inclusion using Kconfig alone.
      17df207a
  13. 11 Aug, 2021 1 commit
    • Johny Mattsson's avatar
      Add ESP32C3 support/coexistence. · f123d462
      Johny Mattsson authored
      The uzlib and parts of Lua had to be switched over to use the
      C standard int types, as their custom typedefs conflicted with
      RISC-V toolchain provided typedefs.
      
      UART console driver updated to do less direct register meddling
      and use the IDF uart driver interface for setup. Still using our
      own ISR rather than the default driver ISR. Down the line we
      might want to investigate whether the IDF ISR would be a better
      fit.
      
      Lua C modules have been split into common and ESP32/ESP32-S
      specific ones. In the future there might also be ESP32-C3
      specific modules, which would go into components/modules-esp32c3
      at that point.
      
      Our old automatic fixup of flash size has been discarded as it
      interferes with the checksumming done by the ROM loader and
      results in unbootable systems. The IDF has already taken on
      this work via the ESPTOOL_FLASHSIZE_DETECT option, which handles
      this situation properly.
      f123d462
  14. 29 Jul, 2021 1 commit
  15. 15 Jul, 2021 1 commit
  16. 17 Sep, 2020 1 commit
  17. 23 Aug, 2020 1 commit
  18. 29 Oct, 2019 1 commit
  19. 12 Oct, 2019 1 commit
    • Johny Mattsson's avatar
      Fix uart regressions & bugs (#2817) · b0558d5b
      Johny Mattsson authored
      * Fix uart regressions & bugs.
      
      Using `uart.on()` with a search character was broken in that it did
      not invoke the callback on a full UART buffer as documented. Logic reworked
      to match docs again.
      
      Fixed memory leak on `task_post()` failure (eep!).
      
      Improved logic to attempt to coalesce input bytes to reduce the number of
      `task_post()` slots used up by the platform uart.
      
      Finally, added a semaphore to prevent the platform uart from overrunning
      the `task_post()` slots all the time on high baud rates (e.g. 1mbit).
      With the semaphore in there, the LVM RTOS task gets a chance to actually
      process the received data and free up a `task_post()` slot or two.
      The above mentioned read coalescing then allows the platform uart to
      immediately catch up.
      
      Also added an error log message if the `task_post()` actually does fail.
      
      * Don't cache the uart delims.
      
      Doing so makes reconfiguring those settings from within the callback not
      take effect until the currently buffered bytes have been processed.
      b0558d5b
  20. 22 Jul, 2019 1 commit
  21. 31 May, 2019 1 commit
  22. 28 Apr, 2019 1 commit
    • devsaurus's avatar
      update to u8g2 2.25.10 · 5faf76b7
      devsaurus authored
      - new displays
      - binding for updateDisplay() and updateDisplayArea()
      - use user_ptr instead of hal workaround
      5faf76b7
  23. 29 Jan, 2019 1 commit
  24. 17 Jan, 2019 1 commit
  25. 30 Nov, 2018 1 commit
    • Skirmantas Lauzikas's avatar
      ESP32: add support for RS485 (#2559) · 3257e557
      Skirmantas Lauzikas authored
      * ESP32: add support for RS485
      
      This commit adds support for switching UART mode to RS485/IRDA.
      Also included are patches for memory leaks then handling UART events other than data.
      
      * ESP32: Documentation for uart.setmode()
      3257e557
  26. 23 Nov, 2018 1 commit
  27. 04 Nov, 2018 1 commit
    • devsaurus's avatar
      pack-port bits and pieces in spiffs.c: · dc0c6ff6
      devsaurus authored
      - implement file.size for spiffs (#1516)
      - fix vfs_lseek() result checking in enduser_setup and clarify SPIFFS_lseek() return value (#1570)
      - Handle error condition in file.read() (#1599)
      dc0c6ff6
  28. 03 Nov, 2018 1 commit
  29. 07 Oct, 2018 2 commits
  30. 15 Apr, 2018 1 commit
  31. 04 Apr, 2018 1 commit
  32. 02 Apr, 2018 1 commit
  33. 18 Dec, 2017 1 commit
  34. 12 Sep, 2017 1 commit
  35. 02 Sep, 2017 1 commit
  36. 27 Jul, 2017 1 commit
  37. 13 Jul, 2017 1 commit
  38. 20 Jun, 2017 1 commit