Commit graph

1225 commits

Author SHA1 Message Date
reiyawea
4d66e2d6b8
Merge ac9b71d64c into 8fcd44a171 2025-12-02 02:40:12 +01:00
armandomontanez
8fcd44a171
Forward declare __sev(), __wfe(), __wfi() (#2658)
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
If the compiler in use offers __sev(), __wfe(), or __wfi(), forward
declare them to be sure they're available for use.
2025-09-15 13:14:08 -05:00
Andrew Scheller
6b395cce04
Fix pico_status_led to change the color of an already-on colored LED (#2632)
Partially fixes #2630, as it doesn't take care of the required delay between setting the LED
2025-09-15 13:09:21 -05:00
armandomontanez
87c9c013fe
More robust clobbering of ARM builtins on host (#2657)
Since ARM hosts have builtins listed in hardware/sync.h, these builtins
should be clobbered. Newer versions of LLVM/Clang emit an error when
clobbering these builtins, so this switches the overrides to use the
same patterns as pico_atomic to clobber the builtins.
2025-09-15 13:04:09 -05:00
Martin Budden
17b914418d
Fix unused parameter warning. (#2663) 2025-09-15 12:53:06 -05:00
Andrew Scheller
db75b67533
Fix Multicoore typo (#2661) 2025-09-15 12:23:26 -05:00
Earle F. Philhower, III
ad2f4143eb
Fix always-true comparison warning in pio_insn (#2608)
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
The sideset_bit_count in pio_encode_sideset_opt is unsigned, so any comparison
"sideset_bit_count >= 0" will always be true.  GCC with pedantic warnings
will complain when this happens.

Remove the unneeded >=0 portion of the parameter validity check.

Fixes #2607
2025-09-10 10:18:22 -05:00
Rainer Keller
4e1371f5fa
Update instructions.h (#2647)
Fix copy-paste-error. With RP2350's Hazard3 should never show up, but anyway.
2025-09-10 10:17:10 -05:00
Rainer Keller
d581553414
Correct two typos (#2648)
* Update sha256_alt.h

Fix trivial copy-paste error in comment

* Update README.md

Another small typo in documentation
2025-09-10 10:16:54 -05:00
will-v-pi
486b78e245
Fix race in gpio_set_irq_enabled_with_callback (#2635)
The order depends on whether you're enabling or disabling
2025-09-10 10:15:58 -05:00
josch
36f1df6d72
src/boards/include/boards/*.h: remove executable bit (#2652)
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Board Headers / check-board-headers (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
find src -type f -perm /a+x -name '*.h' -print0 | xargs --null chmod -x
2025-09-08 13:13:35 -05:00
graham sanderson
299fb7db10 fix compiler warning
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
2025-08-27 16:48:57 -05:00
Graham Sanderson
6a3da02ada
remove spurious cmake code, which seems to break some versions of cmake (#2637) 2025-08-27 11:16:43 -05:00
Andrew Scheller
adcf8be22f
pico_status_led doxygen typo (#2636)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
2025-08-26 17:36:40 +01:00
Graham Sanderson
b30caca4fd
fix regression caused by moving set_raw_irq_handler_and_unlock() (#2631)
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
2025-08-19 08:37:01 -05:00
graham sanderson
1ca77d6afd start 2.2.1-develop
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
2025-07-29 07:01:55 -05:00
graham sanderson
a1438dff1d SDK 2.2.0 Release
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Board Headers / check-board-headers (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Multi GCC / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
2025-07-28 23:37:46 -05:00
graham sanderson
b375d7fd38 wow; runtime.c has been missing from host/pico_runtime for a while
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
2025-07-28 23:37:27 -05:00
Graham Sanderson
681574b728
add pico_status_led to host (#2605)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
2025-07-28 19:30:14 -05:00
Peter Harper
ef5bc2c044
Fix build issue with status led (#2600) 2025-07-28 15:28:48 -05:00
Andrew Scheller
9b1e125a3e
pico_status_led doxygen improvements (#2601) 2025-07-28 15:27:40 -05:00
Graham Sanderson
c493a3a64d
fix errors in generated headers/SVD (#2599)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
2025-07-28 12:22:50 -05:00
el-bert0
3f6f0fc0ef
pico_rand (#2598) 2025-07-28 12:00:41 -05:00
el-bert0
4635b37e68
Enable hardware_irq library also in host and not only in rp2_common (#2596) 2025-07-28 11:56:56 -05:00
Peter Harper
9227cadf84
add pico_status_led (#2501)
Co-authored-by: graham sanderson <graham.sanderson@raspberrypi.com>
2025-07-28 11:56:15 -05:00
Graham Sanderson
bb66fdfac0
pico_encode_gpio_wait doc improvement (#2579)
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
2025-07-25 09:45:30 -05:00
Graham Sanderson
3461d65d79
add some missing pico_config and pico_cmake_config entries (#2559) 2025-07-25 09:44:08 -05:00
graham sanderson
e298fe60f1 merge (discarding changes) one off master fix back into develop 2025-07-25 09:39:00 -05:00
Graham Sanderson
c4e30ce693
Update docs, and add methods for new RP2350 DMA features (#2588)
* Update docs, and add methods for new RP2350 dma_transfer modes
Update docs, and add methods for handling reversed/double-increment DMA

* Apply suggestions from code review

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>

* more review fixes

* add typedefs and rename dma_channel_config to be consistent

* Apply suggestions from code review

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>

* Apply suggestions from code review

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>

---------

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>
2025-07-25 09:14:58 -05:00
Andrew Scheller
4f5ebb8d26
Refactor extraction-scripts to reduce code-duplication (#2592)
extract_configs.py now supports reading min, max or default values
from a #define value (which reduces false-positives)
2025-07-25 09:14:31 -05:00
Andrew Scheller
de5fb4f71f
Doxygen "group" fixes (#2591)
- Add missing libraries to docs/index.h
 - Remove duplicate libraries from docs/index.h
 - Add new script to match up doxygen groups with the PICO_CONFIG groups
2025-07-25 09:13:40 -05:00
andygpz11
50b4a22ccd
Fix minor typos in error header (#2594) (#2594) 2025-07-25 08:38:06 -05:00
Graham Sanderson
59d2b0228b
add some doxygen to hard_assert (#2582)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
* add some doxygen to hard_assert

* typo

Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>

---------

Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>
2025-07-24 16:34:21 -05:00
Alexey Vazhnov
dad01128f4
Fix typo: IMAGEDEF → IMAGE_DEF, as it is defined in the datasheet (#2589) 2025-07-24 16:33:59 -05:00
will-v-pi
b51a993bc1
Improve pico_use_wifi_firmware_partition docs (#2580)
* Improve pico_use_wifi_firmware_partition docs

* Replace assert with hard_assert

Fixes compilation warning about unused ret variable in release builds

* firmware -> wifi_firmware

* Maybe improve wording?

* Clarify TBYB, and add `-ux` to firmware load
2025-07-24 16:25:30 -05:00
Graham Sanderson
d011e8abd4
add a task completion semaphore to guarantee async_context task is finished before async_context cleanup finishes (#2587)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
2025-07-23 13:35:26 -05:00
Andrew Scheller
c650739c4c
Look for other possible "missing PICO_CONFIG" lines, and make message more obvious (#2477)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
2025-07-23 09:18:07 -05:00
will-v-pi
58d000f210
Improve rom_pick_ab_update_partition docs (#2577)
* Improve rom_pick_ab_update_partition docs

* Some review fixups

Add more `\ref`s and tidy up wording

* Move function docs next to rom_pick_ab_partition

* Add \return to rom_pick_ab_partition docs

* Rename rom_pick_ab_update_partition -> rom_pick_ab_partition_during_update and replace "call"
2025-07-23 09:13:10 -05:00
Peter Harper
bf4906b1b5
Improve error code description for some cyw43 connection methods (#2586)
* Improve error code description for some cyw43 connection methods

Fixes #2564

* Apply suggestions from code review

Put error description on separate lines for clarity.

Co-authored-by: Andrew Scheller <lurch@durge.org>

---------

Co-authored-by: Andrew Scheller <lurch@durge.org>
2025-07-23 09:11:18 -05:00
Andrew Scheller
f194749d47
Update and expand docs/weblinks_page.md (#2575)
* Update and expand docs/weblinks_page.md

* Add link to RM2 datasheet too

* Updated shortlinks
2025-07-23 09:10:24 -05:00
will-v-pi
9b876bbc24
Fix location of map file on Ninja (#2584) 2025-07-23 08:51:36 -05:00
Fadhil Riyanto
2afa251201
fix typo "serialzed" -> "serialized" (#2583)
Signed-off-by: fadhil riyanto <me@fadev.org>
2025-07-23 08:46:21 -05:00
Graham Sanderson
2e2651f087
add default implementation of _get_entropy() that returns -1 to avoid linker warning (#2578)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
2025-07-22 10:39:07 -05:00
Luke Wren
dfc26a00b0
hardware_flash: preserve QSPI pad state over flash access calls. (#2565)
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
* hardware_flash: preserve QSPI pad state over flash access calls.

Add new function, flash_start_xip(), which explicitly performs a
first-time XIP setup (including initialising pads). This is mostly
useful for PICO_NO_FLASH=1 binaries where there is actually an attached
external flash.

Fixes #2333

* Address review comments
2025-07-20 17:19:38 -05:00
Luke Wren
175abe7315
Clarify pio_gpio_init doxygen (fixes #2387) (#2574)
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Build on macOS / build (push) Has been cancelled
Build on Windows / build (push) Has been cancelled
2025-07-18 15:51:36 +01:00
Graham Sanderson
4242010f11
Misc cleanup (#2569)
* miscellaneous cleanup:

* cleanup some #ifdefs which were slightly hacky when RP2350 was added; use HAS_ flags in preference to PICO_RP2040/RP2350
* make some dependencies more explicit - i.e. compile if the user doesn't want to include certain libraries
* cleanup some directory A -> directory B relative path names in CMakeLists.txt to be SDK root -> directory B
2025-07-18 09:37:21 -05:00
Jeunese
4003a64789
Merge style and grammar updates
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
* Update mainpage.md

Re-wrote to be in line with style guidance and to be easier to read.

* Changed "adjust" to "refine" (previously "fine-tune").

* Updated first paragraph of the "SDK design" section.

* Minor fixes

* Minor grammatical updates

* Changed "adjust and refine" to "tweak"
2025-07-18 10:27:41 +01:00
will-v-pi
f5e0371ad5
Make spacer sections allocatable (#2515)
Some checks are pending
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Waiting to run
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Waiting to run
Bazel presubmit checks / other-bazel-checks (push) Waiting to run
Check Configs / check-configs (push) Waiting to run
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run
* Default to allocating spacer sections (stack & heap), with PICO_CRT0_ALLOCATE_SPACERS config option to disable the behaviour

* Add pico_check_linker_script function to check for compatibility of custom linker scripts

* tweak error message

---------

Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
2025-07-17 11:33:23 -05:00
Graham Sanderson
968289625b
Gpio to gpout clock handle (#2561)
* add gpio_to_gpout_clock_handle to encapsulate GPIO->gpout mapping

* oops; wrong parenthesis placement
2025-07-17 11:33:05 -05:00
Graham Sanderson
af518de1c3
add missing libraries to test/kitchen_sink and auto-gen includes (#2567)
* add missing libraries to test/kitchen_sink and auto-gen includes

* bazel fix
2025-07-17 11:32:46 -05:00