1. 22 Aug, 2021 1 commit
  2. 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
  3. 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
  4. 15 Jul, 2021 1 commit
  5. 02 Apr, 2021 1 commit
  6. 17 Jan, 2021 1 commit
  7. 05 Jan, 2021 1 commit
  8. 22 Aug, 2020 1 commit
  9. 22 Jul, 2019 1 commit
  10. 31 Jan, 2019 1 commit
  11. 10 Nov, 2018 1 commit
  12. 02 Mar, 2017 1 commit
  13. 27 Nov, 2016 1 commit
  14. 24 Nov, 2016 1 commit
    • Johny Mattsson's avatar
      Updated to latest IDF. · c4911ca3
      Johny Mattsson authored
      This fixes the panic-on-restart issue and the crash-on-uart-input-before-flash-mapped issue.
      
      Node module updated to reflect new function names for sleep/restart.
      c4911ca3
  15. 28 Sep, 2016 1 commit
  16. 26 Sep, 2016 1 commit
    • Johny Mattsson's avatar
      Most of the node module from dev. · 6349fc86
      Johny Mattsson authored
      node.dsleep() no longer takes options.
      node.output() not yet supported (needs syscall registration/chaining support)
      
      Dynamic CPU frequency changing not currently supported in the IDF.
      Various chip IDs not currently available/obtainable.
      Boot reason completely revamped in ESP32, will need new code.
      6349fc86
  17. 20 Sep, 2016 1 commit
    • Johny Mattsson's avatar
      Successfully boot barebones NodeMCU on ESP32 (only). · 9bbf8f43
      Johny Mattsson authored
      RTOS driver evicted as it did not play nice with stdio etc.
      
      Implemented a minimal driver to fully support Lua console on UART0. Output
      on UART0 done via stdout (provided by the IDF). Input and setup handled
      via driver_console/console.c. In addition to the direct input function
      console_getc(), the driver also registers in the syscall tables to enable
      regular stdio input functions to work (yay!). The Lua VM is still using the
      direct interface since it's less overhead, but does also work when going
      through stdin/fd 0.
      
      Auto-bauding on the console is not yet functional; revisit when the UART docs
      are available.
      
      Module registration/linking/enabling moved over to be Kconfig based. See
      updates to base_nodemcu/include/module.h and base_nodemcu/Kconfig for
      details.
      
      The sdk-overrides directory/approach is no longer used. The IDF is simply
      too different to the old RTOS SDK - we need to adapt our code directly instead.
      
      Everything in app/ is now unused, and will need to be gradually migrated
      into components/ though it is probably better to migrate straight from the
      latest dev branch.
      9bbf8f43