1
0
mirror of https://github.com/raspberrypi/pico-sdk.git synced 2025-08-06 06:02:39 +03:00
Commit Graph

1206 Commits

Author SHA1 Message Date
graham sanderson
0b9c05dfad fix regression caused by moving set_raw_irq_handler_and_unlock() 2025-07-28 18:01:45 -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) 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) 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)
* 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) 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) 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) 2025-07-22 10:39:07 -05:00
Luke Wren
dfc26a00b0 hardware_flash: preserve QSPI pad state over flash access calls. (#2565)
* 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) 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
* 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)
* 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
Graham Sanderson
d32d315624 minor tidying of hardware_rcp header; add an rcp_is_true() that is safe to use on RISC-V too (#2568) 2025-07-17 11:32:28 -05:00
will-v-pi
820a33a39f Add Wi-Fi firmware partition support for Pico 2 W (#1969) 2025-07-17 09:21:24 -05:00
Timo Kokkonen
8fd7c60f09 Add WeAct RP2350B Core board support. (#2570)
* Add WeAct RP2350B Core board support.

* Update to new format.
2025-07-17 08:28:59 -05:00
Graham Sanderson
c7f37fc211 make gpio_acknowledge_irq inline (#2562) 2025-07-16 08:17:40 -05:00
Peter Harper
e62cd02a1b Powman fix (#2499)
* Fix powman_timer_use_gpio

Fixes #2471

* Fix docs for clock_gpio_init etc for RP2350

You can also use gpios 13 and 15 on RP2350

* macro-ify the mapping from GPI to ext_time_ref_source - note i kept this private for now, as it's a bit murky

---------

Co-authored-by: graham sanderson <graham.sanderson@raspberrypi.com>
2025-07-16 08:17:16 -05:00
will-v-pi
c1981f5253 Fix Windows CI (#2563)
Ninja is pre-installed on all Windows runners
2025-07-16 08:16:02 -05:00
will-v-pi
d70cccd561 Add FLASH option to pico_package_uf2_output (#2545)
* Add FLASH option to pico_package_uf2_output

Allows passing FLASH instead of 0x10000000 (eg pico_package_uf2_output(hello_serial FLASH))

* Add `pico_ensure_load_map` function

* Update tools/CMakeLists.txt

* Remove FLASH option and just make PACKADDR optional
2025-07-15 16:53:05 -05:00
Graham Sanderson
d2cdf6c953 add pioasm --version, and print version number in generated files (#2554)
* add pioasm --version, and print version number in generated files

* Hook up pio version string in Bazel build

---------

Co-authored-by: Armando Montanez <amontanez@google.com>
2025-07-15 15:09:36 -05:00
rbryson74
19904be31f Update makefsdata.py to support content encoding Fixes #2548 (#2549)
* Update makefsdata.py to support content encoding

changed makefsdata.py slightly to allow it to recognize files that have been manually gzipped (e.g. "mysite.css.gz") to send the proper Content-Encoding information in the response headers.

* Code review fix

---------

Co-authored-by: Peter Harper <peter.harper@raspberrypi.com>
2025-07-14 12:23:50 -05:00
Markus Gyger
a72865be12 Allow pio_encode_sideset_opt(0, value) (#2485) 2025-07-14 11:42:03 -05:00
Peter Harper
b3aed37a18 Provide an easy way to disable cyw43 logging (#2535)
* Provide an easy way to disable cyw43 logging

All cyw43 logging uses CYW43_PRINTF by default. To disable logging you
have to define this to do nothing. There's no simple way to achieve
this. Make it easier by adding PICO_CYW43_LOGGING_ENABLED which can be
set to zero to disable CYW43_PRINTF.

Fixes #2523

* teensy style change

---------

Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
2025-07-14 11:29:28 -05:00
will-v-pi
69e018504d Add PR branch check action (#2536) 2025-07-14 11:21:11 -05:00
will-v-pi
4ee09729cf Use platform/generator agnostic CMake commands (#2539)
* Use platform/generator agnostic CMake commands

Change the README to use platform/generator agnostic commands to create and build the CMake project

* review fixup

* Apply suggestions from code review

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

* Whitespace fix

---------

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>
2025-07-14 11:20:55 -05:00
will-v-pi
9a4113fbba Lock picotool version on master to 2.1.1 (#2401)
The master SDK branch (and the SDK release tags eg 2.1.1) should point to specific picotool tags, to ensure you get a compatible picotool (note this is beyond the 2.1.1 tag in master, so will just fix this for users who check out the HEAD of master)
2.1.1-correct-picotool
2025-07-07 10:33:58 -05:00
Peter Harper
214c24386a Add a "quick start" section for RISC-V to the readme (#2537) 2025-07-02 09:42:53 -05:00
BogDan Vatra
e5acd29d86 Added Olimex RP2350-PICO2-XL&XXL boards (#2541)
https://github.com/OLIMEX/RP2350-PICO2-XXL
2025-07-02 09:41:25 -05:00
Graham Sanderson
d7c26e68e2 add armv8m.main_soft_nofp_unaligned as a supporter clang runtime (for 20.1.0) (#2542) 2025-06-30 08:11:17 -05:00
will-v-pi
6f856ee4eb Add Board Header Check Action (#2519)
* Add action to check board headers when modified

* Fix invalid escape warning

* Check for more board header errors before exiting script

* Also run when action file changes

* Add back newline at end of check_all_board_headers.sh

* Remove python install step

* `e.__str__()` -> `str(e)`
2025-06-26 09:59:32 -05:00