1. 07 Aug, 2024 6 commits
  2. 02 Aug, 2024 8 commits
  3. 01 Aug, 2024 3 commits
  4. 31 Jul, 2024 3 commits
  5. 26 Jul, 2024 6 commits
  6. 25 Jul, 2024 10 commits
  7. 24 Jul, 2024 1 commit
    • Felix Dörre's avatar
      rp2/lwip_inc: Enable IPv6 per default on rp2 port. · 7fe8f030
      Felix Dörre authored
      Having IPv6 support is important, especially for IoT-Devices which might be
      many, requiring individual IP-addresses. In particular direct access via
      link-local addresses and having deterministic SLAAC-addresses can be quite
      convenient. Also in IPv6-only networks or for connecting to IPv6-only
      services, this is very useful.
      
      For the Pico W, there is enough flash and RAM that enabling IPv6 by default
      is the right choice.
      
      Should IPv6 support in a network exist (i.e. there are Router
      Advertisements), but not provide connectivity, connecting by domain name
      should not be a problem as DNS will default to return the IPv4-address (if
      that exists), unless reconfigured at runtime to prefer IPv6.
      
      In any case a user can disable obtaining SLAAC-addresses with:
      
          <nic>.ipconfig(autoconf6=False)
      Signed-off-by: default avatarFelix Dörre <felix@dogcraft.de>
      7fe8f030
  8. 23 Jul, 2024 3 commits
    • Angus Gratton's avatar
      rp2: Stop machine.idle() blocking indefinitely. · ba985334
      Angus Gratton authored
      Updates rp2 port to always resume from idle within 1ms max.
      
      When rp2 port went tickless the behaviour of machine.idle() changed as
      there is no longer a tick interrupt to wake it up every millisecond. On a
      quiet system it would now block indefinitely. No other port does this.
      
      See parent commit for justification of why this change is useful.
      
      Also adds a test case that fails without this change.
      
      This work was funded through GitHub Sponsors.
      Signed-off-by: default avatarAngus Gratton <angus@redyak.com.au>
      ba985334
    • Angus Gratton's avatar
      docs: Specify that machine.idle() returns at least every 1ms. · 81daba31
      Angus Gratton authored
      A lot of existing code (i.e. micropython-lib lps22h, lcd160cr sensor
      drivers, lora sync_modem driver, usb-device-hid) calls machine.idle()
      inside a tight loop that is polling some condition. This reduces the power
      usage compared to constantly looping, but can be faster than calling a
      sleep function. However on a tickless port there's not always an interrupt
      before the condition they are polling for, so it's difficult to restructure
      this code if machine.idle() doesn't have any upper limit on execution time.
      
      This commit specifies an upper limit of 1ms before machine.idle() resumes
      execution. This is already the case for all ports except rp2.
      
      This work was funded through GitHub Sponsors.
      Signed-off-by: default avatarAngus Gratton <angus@redyak.com.au>
      81daba31
    • Phil Howard's avatar
      rp2/rp2_pio: Disable correct IRQ for PIO1. · e1ecc232
      Phil Howard authored
      Fix a typo that was disabling PIO0_IRQ_1 instead of PIO1_IRQ_0.
      Signed-off-by: default avatarPhil Howard <phil@gadgetoid.com>
      e1ecc232