1. 14 May, 2019 4 commits
  2. 13 May, 2019 4 commits
  3. 10 May, 2019 2 commits
  4. 09 May, 2019 4 commits
  5. 08 May, 2019 2 commits
  6. 07 May, 2019 4 commits
    • Damien George's avatar
      stm32: Move factory reset files and code to separate source file. · 97753a1b
      Damien George authored
      The new function factory_reset_make_files() populates the given filesystem
      with the default factory files.  It is defined with weak linkage so it can
      be overridden by a board.
      
      This commit also brings some minor user-facing changes:
      
      - boot.py is now no longer created unconditionally if it doesn't exist, it
        is now only created when the filesystem is formatted and the other files
        are populated (so, before, if the user deleted boot.py it would be
        recreated at next boot; now it won't be).
      
      - pybcdc.inf and README.txt are only created if the board has USB, because
        they only really make sense if the filesystem is exposed via USB.
      97753a1b
    • Damien George's avatar
      stm32/machine_uart: Change default UART timeout to 0, for non blocking. · 34942d0a
      Damien George authored
      It's more common to need non-blocking behaviour when reading from a UART,
      rather than having a large timeout like 1000ms (the original behaviour).
      With a large timeout it's 1) likely that the function will read forever if
      characters keep trickling it; or 2) the function will unnecessarily wait
      when characters come sporadically, eg at a REPL prompt.
      34942d0a
    • Damien George's avatar
      mpy-cross: Add --version command line option to print version info. · 7e90e22e
      Damien George authored
      Prints something like:
      
      MicroPython v1.10-304-g8031b7a2 on 2019-05-02; mpy-cross emitting mpy v4
      7e90e22e
    • Mike Causer's avatar
      docs/esp8266: Add tutorial for APA102 LEDs. · 6323cbda
      Mike Causer authored
      6323cbda
  7. 06 May, 2019 3 commits
  8. 03 May, 2019 3 commits
  9. 02 May, 2019 5 commits
    • Nguyen Hoan Hoang's avatar
      nrf/boards: Add support for BLYST Nano module based boards. · 9a6f6fd6
      Nguyen Hoan Hoang authored
      - IBK-BLYST-NANO: Breakout board
      - IDK-BLYST-NANO: DevKit board with builtin IDAP-M CMSIS-DAP Debug JTAG,
        RGB led
      - BLUEIO-TAG-EVIM: Sensor tag board (environmental sensor
        (T, H, P, Air quality) + 9 axis motion sensor)
      
      Also, the LED module has been updated to support individual base level
      configuration of each LED. If set, this will be used instead of the
      common configuration, MICROPY_HW_LED_PULLUP. The new configuration,
      MICROPY_HW_LEDX_LEVEL, where X is the LED number can be used to set
      the base level of the specific LED.
      9a6f6fd6
    • Chris Mason's avatar
      stm32/boards: Add NUCLEO_F413ZH board configuration. · 2a791170
      Chris Mason authored
      The alternate function pin allocations are different to other NUCLEO-144
      boards.  This is because the STM32F413 has a very high peripheral count:
      10x UART, 5x SPI, 3x I2C, 3x CAN.  The pinout was chosen to expose all
      these devices on separate pins except CAN3 which shares a pin with UART1
      and SPI1 which shares pins with DAC.
      2a791170
    • Chris Mason's avatar
      stm32: Add support for F413 MCUs. · 1b956ec8
      Chris Mason authored
      Includes:
      - Support for CAN3.
      - Support for UART9 and UART10.
      - stm32f413xg.ld and stm32f413xh.ld linker scripts.
      - stm32f413_af.csv alternate function mapping.
      - startup_stm32f413xx.s because F413 has different interrupt vector table.
      - Memory configuration with: 240K filesystem, 240K heap, 16K stack.
      1b956ec8
    • Damien George's avatar
    • Damien George's avatar
      stm32/powerctrl: Support changing frequency when HSI is clock source. · 3fbf32b9
      Damien George authored
      This patch makes pllvalues.py generate two tables: one for when HSI is used
      and one for when HSE is used.  The correct table is then selected at
      compile time via the existing MICROPY_HW_CLK_USE_HSI.
      3fbf32b9
  10. 01 May, 2019 7 commits
  11. 30 Apr, 2019 2 commits
    • Paul Sokolovsky's avatar
      tests/ussl_basic: Disable setblocking() calls. · 7b540013
      Paul Sokolovsky authored
      Now that setblocking() is implemented in modussl_axtls, it calls into the
      underlying stream object, and io.BytesIO doesn't have setblocking().
      7b540013
    • Paul Sokolovsky's avatar
      extmod/modussl_axtls: Add non-blocking mode support. · c7644531
      Paul Sokolovsky authored
      It consists of:
      
      1. "do_handhake" param (default True) to wrap_socket(). If it's False,
      handshake won't be performed by wrap_socket(), as it would be done in
      blocking way normally. Instead, SSL socket can be set to non-blocking mode,
      and handshake would be performed before the first read/write request (by
      just returning EAGAIN to these requests, while instead reading/writing/
      processing handshake over the connection). Unfortunately, axTLS doesn't
      really support non-blocking handshake correctly. So, while framework for
      this is implemented on MicroPython's module side, in case of axTLS, it
      won't work reliably.
      
      2. Implementation of .setblocking() method. It must be called on SSL socket
      for blocking vs non-blocking operation to be handled correctly (for
      example, it's not enough to wrap non-blocking socket with wrap_socket()
      call - resulting SSL socket won't be itself non-blocking).  Note that
      .setblocking() propagates call to the underlying socket object, as
      expected.
      c7644531