1. 09 Nov, 2023 3 commits
  2. 08 Nov, 2023 1 commit
  3. 07 Nov, 2023 5 commits
    • stijn's avatar
      windows: Use the MicroPython logo as application icon. · 958c6d91
      stijn authored
      Add a .ico file with common icon image size, created from
      vector-logo-2.png, and embed it into the resulting executable.
      Signed-off-by: default avatarstijn <stijn@ignitron.net>
      958c6d91
    • Damien George's avatar
      extmod/machine_adc_block: Factor esp32 ADCBlock bindings to common code. · 03eae488
      Damien George authored
      This is a code factoring to have the Python bindings in one location, and
      all the ports use those same bindings.  At this stage only esp32 implements
      this class, so the code for the bindings comes from that port.
      
      The documentation is also updated to reflect the esp32's behaviour of
      ADCBlock.connect().
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      03eae488
    • Jim Mussared's avatar
      py/qstr: Special case qstr_find_strn for empty string. · 4212799f
      Jim Mussared authored
      This handles the case where an empty bytes/bytearray/str could pass in
      NULL as the str argument (with length zero). This would result in UB in
      strncmp. Even though our bare-metal implementation of strncmp handles
      this, best to avoid it for when we're using system strncmp.
      
      This work was funded through GitHub Sponsors.
      Signed-off-by: default avatarJim Mussared <jim.mussared@gmail.com>
      4212799f
    • Jim Mussared's avatar
      shared/libc/string0: Don't deref args for n==0 case. · 9be0623d
      Jim Mussared authored
      C99 says that strncmp has UB for either string being NULL, so the
      current behavior is technically correct, but it's an easy fix to handle
      this case correctly.
      
      7.1.4: "unless explicitly stated otherwise in the detailed
      description... if an argument to a function has ...null pointer.. the
      behavior is undefined".
      
      7.21.1: "Unless explicitly stated otherwise in the description of a
      particular function in this subclause, pointer arguments on such a call
      shall still have valid values, as described in 7.1.4".
      
      Also make the same change for the minimal version in bare-arm/lib.c.
      
      This work was funded through GitHub Sponsors.
      Signed-off-by: default avatarJim Mussared <jim.mussared@gmail.com>
      9be0623d
    • Alessandro Gatti's avatar
      tools/tinytest-codegen.py: Externalise tests list. · bea6ff82
      Alessandro Gatti authored
      Remove port-specific test directories and excluded tests from
      tinytest-codegen, and let it read said information from an external file.
      This way tinytest-codegen is not limited to always generate tests for the
      `qemu-arm` target.
      
      This allows having port-specific test directory and excluded tests for more
      than one QEMU bare-metal target.
      
      The `qemu-arm` port Makefile was modified to work with the generator
      changes and a tests profile file was added to said port.
      Signed-off-by: default avatarAlessandro Gatti <a.gatti@frob.it>
      bea6ff82
  4. 06 Nov, 2023 4 commits
  5. 04 Nov, 2023 4 commits
  6. 03 Nov, 2023 23 commits