1. 04 Mar, 2019 1 commit
  2. 12 Feb, 2019 1 commit
  3. 08 Feb, 2019 1 commit
    • Deomid Ryabkov's avatar
      Improve ESP flasher baud rate setting · 0b2e474d
      Deomid Ryabkov authored
      Use old baud rate and autodetected divider to calculate new divider.
      
      This works better with higher baud rates and drifting clocks.
      
      CL: mos: Improve ESP flasher baud rate setting
      
      PUBLISHED_FROM=7761e756c3ae7cc76e3b9a4fe3e40d06a779b2e8
      0b2e474d
  4. 30 Jan, 2019 1 commit
    • Deomid Ryabkov's avatar
      Log file:line instead of function; add cs_log_set_file_level() · 95a36b17
      Deomid Ryabkov authored
      cs_log_set_filter() is removed in favor of cs_log_set_file_level() which
      allows setting log verbosity of individual files and/or lines.
      
      E.g.: `mg_=1,mjs=1,=4` - level for for everything except mjs and mongoose.
      
      We use the fact that we are usually pretty careful with our file names and use prefixes consistently.
      
      In mos, `debug.file_level` sets the option on boot and `Sys.SetDebug` is updated to parse `file_level` option to change it at runtime.
      
      CL: Log file:line instead of function; add cs_log_set_file_level()
      
      PUBLISHED_FROM=49f18d4d0d3dd224865129a4f8fe6cccd1d9bc12
      95a36b17
  5. 08 Jan, 2019 1 commit
  6. 25 Dec, 2018 1 commit
  7. 21 Dec, 2018 1 commit
  8. 18 Dec, 2018 1 commit
  9. 10 Dec, 2018 1 commit
    • Deomid Ryabkov's avatar
      Ensure that user sees all the data before connection is closed · e2dfac94
      Deomid Ryabkov authored
      If user throttles receive by setting recv_mbuf_limit,
      after the net interface reports connection as closed we must wait
      for data to trickle through before disposing of it.
      There can still b data in the buffers (e.g. SSL).
      
      CL: mg: Ensure that user sees all the data before connection is closed
      
      PUBLISHED_FROM=22be0fa368950a9fdb03cfb00febc7c0a1674b01
      e2dfac94
  10. 28 Nov, 2018 1 commit
    • Deomid Ryabkov's avatar
      Add create-fw-bundle command · 139c2061
      Deomid Ryabkov authored
      Replacement for fw_meta.py commands and also supports unbundling .hex files.
      
      General syntax is:
      
      ```
       $ mos create-fw-bundle -o fw.zip part1:prop1=val1,prop2=val2,... part2:...
      ```
      
      Example of building a mos fw bundle for ESP8266:
      ```
       $ mos create-fw-bundle -o fw.zip --platform esp8266 --build-info=build_info.json \
          boot:addr=0x0,src=rboot.bin,update=false \
          boot_cfg:addr=0x7000,size=0x1000,fill=0xff \
          fw:addr=0x100000,src=demo-c.bin \
          fs:src=fs.bin,type=fs,addr=0x8000,fs_size=262144,fs_block_size=4096,fs_page_size=256,fs_erase_size=4096
      ```
      
      Example of converting a HEX file to a bundle:
      ```
       $ mos create-fw-bundle -o fw.zip host:type=host,src=hostfw.hex
      ```
      
      CL: mos: Add create-fw-bundle command
      
      PUBLISHED_FROM=35f52ea53e4b5900463415257323a4c08cf45deb
      139c2061
  11. 28 Sep, 2018 1 commit
  12. 25 Sep, 2018 3 commits
    • Deomid Ryabkov's avatar
      CC3200: Fix boot loader regression · 492b8f69
      Deomid Ryabkov authored
      Go back to Ubuntu 16.04 and older gcc-arm (4.9.3).
      
      Boot loader just won't run when compiled with newer GCC (7.x).
      It's likely that it can be fixed with compile switches but I couldn't figure it out quickly, so going to just downgrade for now to get it back to workign state.
      
      CL: CC3200: Fix boot loader regression
      
      PUBLISHED_FROM=b70b03bd17e03c7dae02328b32b855f3ca3ad6a9
      492b8f69
    • Deomid Ryabkov's avatar
      Add mgos_gpio_blink() · 8ccee820
      Deomid Ryabkov authored
      CL: Add mgos_gpio_blink()
      
      PUBLISHED_FROM=a5d2e2f44413d1ab363abeeaf0fb497bd8f63d6d
      8ccee820
    • Deomid Ryabkov's avatar
      Fix build w/o logging · b99a94a6
      Deomid Ryabkov authored
      PUBLISHED_FROM=694346bd6562c55e5ab00886df47f7cbfb0a3720
      b99a94a6
  13. 20 Sep, 2018 1 commit
  14. 11 Sep, 2018 1 commit
    • Deomid Ryabkov's avatar
      Update STM32 build image · f63d833a
      Deomid Ryabkov authored
       * Update CubeL4 to 1.13.0
       * Rebuild OurTLS with `-DMBEDTLS_X509_CA_CHAIN_ON_DISK`
       * Add `-Wextra` and fix build issues
      
      CL: Update STM32 build image
      
      PUBLISHED_FROM=a7eacff7580bab6c6e40bdaf6164df575a717c55
      f63d833a
  15. 06 Sep, 2018 3 commits
    • Deomid Ryabkov's avatar
      STM32: Make LWIP optional · 20f54059
      Deomid Ryabkov authored
      CL: STM32: Make LWIP optional
      
      PUBLISHED_FROM=eebffe7800a74d7b69aafd95e476b2e90328be98
      20f54059
    • Deomid Ryabkov's avatar
      Add net_if_null, a no-op net interface · 563c3130
      Deomid Ryabkov authored
      Can be used for cases where device has no networking but mongoose is still needed for its event loop.
      
      CL: mg: Add net_if_null, a no-op net interface
      
      PUBLISHED_FROM=e79b4a8667508bbde1437dda9dad77ce3a3aa630
      563c3130
    • Deomid Ryabkov's avatar
      Refactor mg polling · 421e099f
      Deomid Ryabkov authored
       * Change return type of mg_mgr_poll to return number of events
       * Add mg_mgr_min_timer
       * Refactor main poll loop to remove LwIP-specific stuff
      
      CL: Refactor mg polling
      
      PUBLISHED_FROM=dc94618b32fa3c84a2f053bd04d134297780ec82
      421e099f
  16. 18 Aug, 2018 1 commit
  17. 23 Jul, 2018 1 commit
  18. 12 Jul, 2018 1 commit
  19. 26 Jun, 2018 1 commit
  20. 18 Jun, 2018 1 commit
  21. 06 Jun, 2018 1 commit
  22. 10 May, 2018 1 commit
  23. 26 Apr, 2018 1 commit
  24. 13 Apr, 2018 1 commit
  25. 11 Apr, 2018 1 commit
  26. 03 Apr, 2018 1 commit
  27. 30 Mar, 2018 1 commit
    • Deomid Ryabkov's avatar
      Mongoose net_if and ssl_if refactoring · 3e33e577
      Deomid Ryabkov authored
      A major cleanup, disentangling net_if and ssl_if.
      Pulled a lot of common logic into the core and reduced size of net_if implementations.
      
      CL: Mongoose net_if and ssl_if refactoring
      
      PUBLISHED_FROM=29bd4dcb264a1fd96b3dd164e2d880e1c2c0921e
      3e33e577
  28. 28 Mar, 2018 1 commit
  29. 23 Feb, 2018 1 commit
  30. 10 Feb, 2018 1 commit
    • Deomid Ryabkov's avatar
      Make sure test assertions are evaluated once · a3c4a48e
      Deomid Ryabkov authored
      E.g. if `ASSERT_EQ(myfunc(), 123)` fails, `myfunc()` would be invoked again to print the actual value.
      This can cause confusion sometimes.
      To avoid this, we cast arguments to double, which is wide enough for most cases and we provide a variant for 64 bit value types for when it's not.
      We also perform a check and fail if argument to the check results in loss of precision.
      
      CL: none
      
      PUBLISHED_FROM=a14551289d92e8a5dead21d16471ebddebe938a8
      a3c4a48e
  31. 08 Feb, 2018 1 commit
  32. 07 Feb, 2018 3 commits
  33. 06 Feb, 2018 1 commit
  34. 05 Feb, 2018 1 commit