1. 12 Apr, 2021 1 commit
    • robert-hh's avatar
      rp2/machine_uart: Add buffered transfer of data with rxbuf/txbuf kwargs. · 1be74b94
      robert-hh authored
      Instantiation and init now support the rxbuf and txbuf keywords for setting
      the buffer size.  The default size is 256 bytes.  The minimum and maximum
      sizes are 32 and 32766 respectively.
      
      uart.write() still includes checks for timeout, even if it is very unlikely
      to happen due to a) lack of flow control support and b) the minimal timeout
      values being longer than the time it needs to send a byte.
      1be74b94
  2. 11 Apr, 2021 1 commit
    • robert-hh's avatar
      rp2/rp2_pio: Add StateMachine restart,rx_fifo,tx_fifo helper functions. · 22554cf8
      robert-hh authored
      StateMachine.restart: Restarts the state machine
      StateMachine.rx_fifo: Return the number of RX FIFO items, 0 if empty
      StateMachine.tx_fifo: Return the number of TX FIFO items, 0 if empty
      
      restart() seems to be the most useful one, as it resets the state machine
      to the initial state without the need to re-initialise/re-create.  It also
      makes PIO code easier, because then stalling as an error state can be
      unlocked.
      
      rx_fifo() is also useful, for MP code to check for data and timeout if no
      data arrived.  Complex logic is easier handled in Python code than in PIO
      code.
      
      tx_fifo() can be useful to check states where data is not processed, and is
      mostly for symmetry.
      22554cf8
  3. 09 Apr, 2021 9 commits
  4. 08 Apr, 2021 1 commit
  5. 07 Apr, 2021 5 commits
  6. 06 Apr, 2021 4 commits
  7. 02 Apr, 2021 1 commit
  8. 01 Apr, 2021 4 commits
  9. 31 Mar, 2021 1 commit
    • Liam Fraser's avatar
      rp2: Don't advertise remote wakeup for USB serial. · ca3d51f1
      Liam Fraser authored
      This USB feature is currently not supported.  With this flag enabled (and
      the feature not implemented) the USB serial will stop working if there is a
      delay of more than about 2 seconds between messages, which can occur with
      USB autosuspend enabled.
      
      Fixes issue #6866.
      ca3d51f1
  10. 30 Mar, 2021 5 commits
  11. 26 Mar, 2021 1 commit
  12. 19 Mar, 2021 1 commit
    • Damien George's avatar
      bare-arm: Clean up the code, make it run on an F405, and add a README. · 4fc2866f
      Damien George authored
      This commit simplifies and cleans up the bare-arm port, and adds just
      enough system and library code to make it execute on an STM32F405 MCU.
      
      The mpconfigport.h configuration is simplified to just specify those
      configuration values that are different from the defaults.  And the
      addition of -fdata-sections and -ffunction-sections means the final
      firmware is smaller than it previously was, by about 4200 bytes.
      
      A README is also added.
      Signed-off-by: default avatarDamien George <damien@micropython.org>
      4fc2866f
  13. 17 Mar, 2021 1 commit
  14. 16 Mar, 2021 5 commits