1. 27 May, 2023 1 commit
  2. 26 May, 2023 1 commit
  3. 25 May, 2023 1 commit
    • Jan's avatar
      Implement the BD_ADDR(char * address_string) constructor. (#1440) · 4def2f21
      Jan authored
      * Implement the BD_ADDR(char * address_string) constructor.
      
      * Updating implementation to use sscanf.
      
      There is an extra step after the sscanf that checks that we got
      six bytes back and if we did not, it will set all bytes in the
      address to zero.
      
      * Example using BD_ADDR(const char * address_string)
      
      This example shows how BD_ADDR(const char * address_string) can
      be used to create BD_ADDR objects to use for comparisons etc.
      
      * Update LEDeviceScanner.ino formatting
      4def2f21
  4. 24 May, 2023 2 commits
  5. 23 May, 2023 2 commits
  6. 20 May, 2023 2 commits
  7. 19 May, 2023 1 commit
  8. 17 May, 2023 1 commit
  9. 16 May, 2023 3 commits
    • Earle F. Philhower, III's avatar
      Merge latest FreeRTOS/SMP upstream branch (#1449) · a851a928
      Earle F. Philhower, III authored
      Update to head of upstream FreeRTOS/SMP branch.  Very minor changes.
      
      Remove the custom getreent implementation, use the one that was defined
      in the upstream FreeRTOS/smp branch (callback related vs. static vars).
      a851a928
    • Earle F. Philhower, III's avatar
    • Earle F. Philhower, III's avatar
      Use real FreeRTOS tasks to idle core during flash (#1444) · ae908c8e
      Earle F. Philhower, III authored
      Fixes #1439
      
      Use a real FreeRTOS task, at the highest priority, to idle the other core
      while doing flash accesses.
      
      The USB stack seems to have some timing dependent bits which get broken
      if FreeRTOS switches out the current task when it's running.  Avoid any
      issue by disabling preemption on the core for all tud_task calls.
      
      The PendSV handler disable flag can live completely inside the FreeRTOS
      variant port, so remove any reference to it in the main core.
      
      Tested using Multicode-FreeRTOS, #1402 and #1441
      
      The USB FIFO interrupts were still being serviced even when the core was
      frozen, leading to crashes.  Explicitly shut off IRQs on both the victim
      and the initiator core when freezing.
      
      Removed the need for hack __holdUpPendSV flag
      ae908c8e
  10. 15 May, 2023 2 commits
  11. 11 May, 2023 2 commits
  12. 05 May, 2023 3 commits
  13. 02 May, 2023 4 commits
    • Paint Your Dragon's avatar
      2c0ce6f4
    • Earle F. Philhower, III's avatar
      Fix USB Mouse/Joystick HID report ID (#1418) · 89fe754a
      Earle F. Philhower, III authored
      Fixes #1410
      
      The USB Keyboard now has 2 reports (keyboard + consumer control), so when both
      Keyboard and Mouse libraries are included, the Mouse must be report 3, not 2.
      
      Update the Mouse and Joystick report IDs appropriately.
      89fe754a
    • Earle F. Philhower, III's avatar
      Protect the HW random generation from FreeRTOS (#1395) · 01ee673d
      Earle F. Philhower, III authored
      Fixes #1394
      
      The Pico_Rand SDK calls gather bits from the HW ROSC at precise intervals.
      If there is jitter in the sleep_until() call then the ROSC bit collection
      will always think it's failed to acquire the right bit and retry infintitely.
      
      Avoid by wrapping the HW random number calls and the sleep_until() routine.
      Only when in FreeRTOS set a flag to silently make sleep_until() into a
      busy wait loop while in a random number generation step.  When not in the
      random code, do the normal sleep_until call.
      01ee673d
    • Earle F. Philhower, III's avatar
      Fix USB crashes in FreeRTOS (#1419) · 5a949443
      Earle F. Philhower, III authored
      Fixes #1402
      
      The global USB mutex is auto-shadowed with a FreeRTOS semaphore while in
      FreeRTOS mode.  Unfortunately, while the core was using the proper
      FreeRTOS semaphore to lock access to the USB port, the actual FreeRTOS
      USB task was using the naked Pico SDK mutex, leading to cases where it
      could acquire the mutex even though some other FreeRTOS task actually
      owned the shadowed mutex.
      
      Properly lock the shadowed Semaphore, not mutex_t, in the FreeRTOS
      USB periodic task.
      5a949443
  14. 01 May, 2023 3 commits
  15. 22 Apr, 2023 1 commit
  16. 21 Apr, 2023 3 commits
  17. 15 Apr, 2023 1 commit
  18. 12 Apr, 2023 1 commit
  19. 10 Apr, 2023 1 commit
    • Paint Your Dragon's avatar
      Rename USB HOST pins (#1367) · 59981aed
      Paint Your Dragon authored
      Change “N” to “M” and add “HOST” in the USB pins. Only two pins are actually affected; diff appears large to maintain the pleasant aligned-columns format.
      59981aed
  20. 07 Apr, 2023 1 commit
    • Earle F. Philhower, III's avatar
      Rename BTstack lib to BTstackLib (#1360) · 07781e9c
      Earle F. Philhower, III authored
      Fixes #1356
      
      Mac and Windows have case-insensitive filesystems, so the will find
      the internal (all-lowercase) "btstack.h" and not the library's "BTstack.h",
      causing compilation errors.
      
      Rename the library and header to avoid the issue.
      07781e9c
  21. 05 Apr, 2023 1 commit
  22. 04 Apr, 2023 2 commits
  23. 03 Apr, 2023 1 commit