1. 30 Jan, 2021 8 commits
    • Jim Mussared's avatar
      tools/makemanifest.py: Add check that freeze path is a directory. · 2aecf378
      Jim Mussared authored
      Avoids accidentally writing
      
          freeze("path/to/file.py")
      
      and getting unexpected results.
      2aecf378
    • Andrew Scheller's avatar
      499e199a
    • stijn's avatar
      github/workflows: Add workflow to verify commit message format. · 37c2f507
      stijn authored
      Using the new tools/verifygitlog.py script.
      37c2f507
    • stijn's avatar
      tools/verifygitlog.py: Add script for verifying commit message format. · d48860c7
      stijn authored
      The main rules enforced are:
      - At most 72 characters in the subject line, with a ": " in it.
      - At most 75 characters per line in the body.
      - No "noreply" email addresses.
      d48860c7
    • stijn's avatar
      lib/utils/pyexec: Remove obsolete LCD initialization. · fca2730e
      stijn authored
      This was added a long time ago in 75abee20
      when USB host support was added to the stm (now stm32) port, and when this
      pyexec code was actually part of the stm port.  It's unlikely to work as
      intended anymore.  If it is needed in the future then generic hook macros
      can be added in pyexec.
      fca2730e
    • stijn's avatar
      py/qstr.h: Remove QSTR_FROM_STR_STATIC macro. · b9a35beb
      stijn authored
      It practically does the same as qstr_from_str and was only used in one
      place, which should actually use the compile-time MP_QSTR_XXX form for
      consistency; qstr_from_str is for runtime strings only.
      b9a35beb
    • Jim Mussared's avatar
      extmod/nimble: Improve the flow control for l2cap recv path. · 47d02b31
      Jim Mussared authored
      If the _IRQ_L2CAP_RECV handler does the actual consumption of the incoming
      data (i.e. via l2cap_recvinto), rather than setting a flag for
      non-scheduler-context to handle it later, then two things can happen:
      
      - It can starve the VM (i.e. the scheduled task never terminates).  This is
        because calling l2cap_recvinto will empty the rx buffer, which will grant
        more credits to the channel (an HCI command), meaning more data can
        arrive.  This means that the loop in hal_uart.c that keeps reading HCI
        data from the uart and executing NimBLE events as they are created will
        not terminate, preventing other VM code from running.
      
      - There's no flow control (i.e. data will arrive too quickly).  The channel
        shouldn't be given credits until after we return from scheduler context.
      
      It's preferable that no work is done in scheduler/IRQ context.  But to
      prevent this being a problem this commit changes l2cap_recvinto so that if
      it is called in IRQ context, and the Python handler empties the rx buffer,
      then don't grant credits until the Python handler is complete.
      Signed-off-by: default avatarJim Mussared <jim.mussared@gmail.com>
      47d02b31
    • Jim Mussared's avatar
      stm32/rfcore: Fix flow control for IPCC RX IRQ. · 0f9a9129
      Jim Mussared authored
      Don't clear the IPCC channel flag until we've actually handled the incoming
      data, or else the wireless firmware may clobber the IPCC buffer if more
      data arrives.  This requires masking the IRQ until the data is handled.
      Signed-off-by: default avatarJim Mussared <jim.mussared@gmail.com>
      0f9a9129
  2. 29 Jan, 2021 21 commits
  3. 27 Jan, 2021 1 commit
    • nanjekyejoannah's avatar
      docs/develop: Add MicroPython Internals chapter. · 4eaebc19
      nanjekyejoannah authored
      This commit adds many new sections to the existing "Developing and building
      MicroPython" chapter to make it all about the internals of MicroPython.
      
      This work was done as part of Google's Season of Docs 2020.
      4eaebc19
  4. 24 Jan, 2021 2 commits
  5. 23 Jan, 2021 6 commits
  6. 22 Jan, 2021 1 commit
  7. 18 Jan, 2021 1 commit