1. 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
  2. 05 Oct, 2021 1 commit
  3. 16 Sep, 2021 2 commits
    • Johny Mattsson's avatar
      Fixup LROT_MASKs for all modules. · ea968de6
      Johny Mattsson authored
      Search-and-replace considered harmful. I completely missed the need to
      explicitly declare "fast" tag functions (__xyz) in the mask field to
      LROT_BEGIN()/LROT_END() when I brought over the 5.1+5.3 support.
      Without those flags set properly, the LVM doesn't even bother going
      looking for those methods, which in this case led to garbage collection
      not calling the __gc functions, among other horrible things.
      
      Mea culpa.
      ea968de6
    • Johny Mattsson's avatar
      Added heaptrace module. · 5e52a9e2
      Johny Mattsson authored
      5e52a9e2
  4. 09 Sep, 2021 2 commits
  5. 01 Sep, 2021 1 commit
  6. 26 Aug, 2021 1 commit
  7. 25 Aug, 2021 1 commit
  8. 23 Aug, 2021 3 commits
  9. 22 Aug, 2021 1 commit
  10. 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
  11. 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
  12. 29 Jul, 2021 1 commit
  13. 28 Jul, 2021 2 commits
  14. 26 Jul, 2021 1 commit
  15. 22 Jul, 2021 1 commit
  16. 21 Jul, 2021 1 commit
  17. 20 Jul, 2021 1 commit
    • Johny Mattsson's avatar
      idf4: part 2.2 - update wifi & eth modules to new APIs · d2f8121e
      Johny Mattsson authored
      Only compile-tested so far.
      
      Of note is that the WiFi auto-connect (flag) functionality has been removed
      from the IDF, and as a follow-on so has the "auto" field in the wifi config.
      
      On the Ethernet side, support for the TLK110 PHY seems to have been removed,
      but on the other hand there is now new support for several others.
      d2f8121e
  18. 19 Jul, 2021 1 commit
  19. 15 Jul, 2021 2 commits
  20. 02 Apr, 2021 1 commit
  21. 22 Jan, 2021 1 commit
  22. 17 Jan, 2021 1 commit
  23. 05 Jan, 2021 2 commits
  24. 23 Aug, 2020 1 commit
  25. 22 Aug, 2020 1 commit
  26. 03 Aug, 2020 1 commit
    • David Thornley's avatar
      Fix bthci compilation issue (#3201) · 7774b5fa
      David Thornley authored
      Manifests as multiple definition of esp_event_send during compilation, as bthci triggers inclusion of `event_loop.c`. Also improved lbth_init() to support BTDM or BLE_ONLY controller modes.
      7774b5fa
  27. 27 Jul, 2020 1 commit
  28. 08 Jul, 2020 1 commit
  29. 18 May, 2020 1 commit
  30. 01 May, 2020 1 commit
  31. 27 Apr, 2020 1 commit
  32. 27 Oct, 2019 1 commit
    • John Lauer's avatar
      Add touch sensor module (#2863) · 9a5327ca
      John Lauer authored
      * Touch module 1st checkin
      * ESP32. Check-in 2 for Touch sensor module
      * ESP32: Touch module. Sample Lua code.
      * ESP32: Latest YouTube vid
      * ESP32: Touch docs update
      * Added opt_* methods for value retrieval
      9a5327ca
  33. 27 Sep, 2019 1 commit