Commit graph

1236 commits

Author SHA1 Message Date
Hardy Griech
a65693df03
Merge 9624ce6117 into 8fcd44a171 2025-10-30 06:30:19 +00:00
Hardy Griech
9624ce6117 now using multilib concept which makes everything much cleaner and clearer 2025-10-30 07:30:03 +01:00
Hardy Griech
fe941af87f catch the case that PICO_CLIB is not set 2025-10-17 14:39:17 +02:00
Hardy Griech
465dff2808 use the same runtime_init() as for newlib -> picolibc now working for clang19.1.5/21.1.1 2025-10-16 15:46:46 +02:00
Hardy Griech
f7255e7a55 code review I 2025-10-15 21:23:21 +02:00
Hardy Griech
d13a84ff70 make newlib the default 2025-10-15 20:30:24 +02:00
Hardy Griech
bf670a8a32 pico needs also some support 2025-10-15 20:13:34 +02:00
Hardy Griech
9dd3ce5bcf correct bazel config 2025-10-15 18:51:48 +02:00
Hardy Griech
4a775eedfd finetuning: now it is working also with picolibc 2025-10-15 18:48:30 +02:00
Hardy Griech
571d2eda94 make it compile with clang21.1.1: llvm_libc_interface changes 2025-10-15 17:58:40 +02:00
Hardy Griech
6feb9b9b01 make it compile with clang21.1.1: cmake changes for newlib/llvm_libc 2025-10-15 17:57:58 +02:00
Hardy Griech
9d82a9205a Merge remote-tracking branch 'origin/develop' into clang-corrections 2025-10-15 13:04:22 +02:00
Hardy Griech
28aabfa10e enhanced sysroot handling, sysroot did not took selected clib into account 2025-10-15 13:01:31 +02: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