1. 08 9月, 2020 9 次提交
  2. 04 9月, 2020 2 次提交
  3. 03 9月, 2020 2 次提交
  4. 02 9月, 2020 1 次提交
  5. 01 9月, 2020 5 次提交
  6. 30 8月, 2020 3 次提交
  7. 29 8月, 2020 4 次提交
  8. 28 8月, 2020 1 次提交
  9. 27 8月, 2020 4 次提交
    • M
      extmod/machine_i2c: Fix buffer overrun if 'addrsize' is bigger than 32. · cef678b2
      Michael Buesch 提交于
      The memory operation functions read_mem() and write_mem() create a
      temporary buffer on the local C stack for the address bytes with the size
      of 4 bytes.  This buffer is filled in a loop from the user supplied address
      and address length.  If the user supplied 'addrsize' is bigger than 32, the
      local buffer is overrun.
      
      Fix this by raising an exception for invalid 'addrsize' values.
      Signed-off-by: NMichael Buesch <m@bues.ch>
      cef678b2
    • S
      tests/run-tests: Make test output directory configurable. · 0c3f9d58
      stijn 提交于
      A configurable result directory is advantageous because it enables
      using a dedicated location, eventually outside of the source tree,
      instead of forcing the output files into a fixed directory which might
      also contain other files already. For that reason the default output
      directory also has been changed to tests/results/.
      0c3f9d58
    • S
      tests/run-tests: Use absolute paths where possible. · 405893af
      stijn 提交于
      Replace some usages of paths relative to the current working directory
      with absolute paths relative to the tests directory.
      
      Fixes and resulting changes:
      - default values of MICROPYTHON and MPYCROSS are absolute paths and
        always correct
      - likewise, the correct full paths for tools and extmod directories
        are appended to sys.path
      - printing/cleaning failures works properly since it expects the .exp
        and .out files in the tests directory which is also where they
        are written to now, plus no more need for changing directories
      
      This fixes #5872 and allows running custom tests which use run-tests
      without having to cd to the tests directory first, and the test output
      still is in the tests/ directory instead of the current working directory.
      
      Discovery of tests and all skip test logic based on paths relative to
      the current working directory remains unchanged which essentially means
      that for running most of MicroPython's own tests, run-tests must still
      be ran from within it's directory, so document that.
      405893af
    • R
      nrf/Makefile: Improve user C modules support. · 91c5d168
      Roberto Colistete Jr 提交于
      Add CFLAGS_EXTRA to CFLAGS. Include LDFLAGS_MOD to the compilation.
      And, add SRC_MOD to SRC_QSTR.
      91c5d168
  10. 26 8月, 2020 4 次提交
  11. 25 8月, 2020 1 次提交
    • D
      extmod/vfs_lfs: Add mtime support to littlefs files. · 2acc0878
      Damien George 提交于
      This commit adds support for modification time of files on littlefs v2
      filesystems, using file attributes.  For some background see issue #6114.
      
      Features/properties of this implementation:
      - Only supported on littlefs2 (not littlefs1).
      - Uses littlefs2's general file attributes to store the timestamp.
      - The timestamp is 64-bits and stores nanoseconds since 1970/1/1 (if the
        range to the year 2554 is not enough then additional bits can be added to
        this timestamp by adding another file attribute).
      - mtime is enabled by default but can be disabled in the constructor, eg:
        uos.mount(uos.VfsLfs2(bdev, mtime=False), '/flash')
      - It's fully backwards compatible, existing littlefs2 filesystems will work
        without reformatting and timestamps will be added transparently to
        existing files (once they are opened for writing).
      - Files without timestamps will open correctly, and stat will just return 0
        for their timestamp.
      - mtime can be disabled or enabled each mount time and timestamps will only
        be updated if mtime is enabled (otherwise they will be untouched).
      Signed-off-by: NDamien George <damien@micropython.org>
      2acc0878
  12. 22 8月, 2020 4 次提交