Skip to content

Commit bfcbefa

Browse files
authored
Merge pull request #472 from raspberrypi/release.1.2.0
SDK 1.2.0 release; see release notes for details
2 parents afc10f3 + fdf695b commit bfcbefa

File tree

184 files changed

+25745
-1092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+25745
-1092
lines changed

.gitmodules

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[submodule "tinyusb"]
22
path = lib/tinyusb
3-
url = https://github.com/raspberrypi/tinyusb.git
4-
branch = pico
3+
url = https://github.com/hathach/tinyusb.git

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
cmake_minimum_required(VERSION 3.13)
2+
3+
# Note: this CMakeLists.txt can be used as a top-level CMakeLists.txt for the SDK itself. For all other uses
4+
# it is included as a subdirectory via the pico_sdk_init() method provided by pico_sdk_init.cmake
25
if (NOT TARGET _pico_sdk_inclusion_marker)
36
add_library(_pico_sdk_inclusion_marker INTERFACE)
7+
# This is a no-op unless we are the top-level CMakeLists.txt
48
include(pico_sdk_init.cmake)
59

610
project(pico_sdk C CXX ASM)
@@ -24,6 +28,7 @@ if (NOT TARGET _pico_sdk_inclusion_marker)
2428

2529
# allow customization
2630
add_sub_list_dirs(PICO_SDK_PRE_LIST_DIRS)
31+
add_sub_list_files(PICO_SDK_PRE_LIST_FILES)
2732

2833
add_subdirectory(tools)
2934
add_subdirectory(src)
@@ -32,6 +37,7 @@ if (NOT TARGET _pico_sdk_inclusion_marker)
3237

3338
# allow customization
3439
add_sub_list_dirs(PICO_SDK_POST_LIST_DIRS)
40+
add_sub_list_files(PICO_SDK_POST_LIST_FILES)
3541

3642
if (PICO_SDK_TOP_LEVEL_PROJECT AND NOT DEFINED PICO_SDK_TESTS_ENABLED)
3743
set(PICO_SDK_TESTS_ENABLED 1)
@@ -44,5 +50,9 @@ if (NOT TARGET _pico_sdk_inclusion_marker)
4450

4551
# add docs at the end, as we gather documentation dirs as we go
4652
add_subdirectory(docs)
53+
54+
if (NOT PICO_SDK_TOP_LEVEL_PROJECT)
55+
pico_promote_common_scope_vars()
56+
endif()
4757
endif()
4858

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Raspberry Pi Pico SDK (henceforth the SDK) provides the headers, libraries a
44
necessary to write programs for the RP2040-based devices such as the Raspberry Pi Pico
55
in C, C++ or assembly language.
66

7-
The SDK is designed to provide an API and programming environment that is familiar both to non-embedded C developers and embedded C developers alike.
7+
The SDK is designed to provide an API and programming environment that is familiar both to non-embedded C developers and embedded C developers alike.
88
A single program runs on the device at a time and starts with a conventional `main()` method. Standard C/C++ libraries are supported along with
99
C level libraries/APIs for accessing all of the RP2040's hardware include PIO (Programmable IO).
1010

@@ -38,7 +38,7 @@ instructions for other platforms, and just in general, we recommend you see [Ras
3838

3939
1. Install CMake (at least version 3.13), and GCC cross compiler
4040
```
41-
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi
41+
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
4242
```
4343
1. Set up your project to point to use the Raspberry Pi Pico SDK
4444

cmake/pico_pre_load_toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ if (DEFINED PICO_COMPILER)
3636
select one from \"cmake/toolchains\" folder.")
3737
endif ()
3838
endif ()
39+
message("PICO compiler is ${PICO_COMPILER}")
3940
endif ()
4041

41-
message("PICO compiler is ${PICO_COMPILER}")
4242
unset(PICO_COMPILER CACHE)
4343

cmake/preload/toolchains/pico_arm_gcc.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (NOT PICO_GCC_TRIPLE)
1212
message("PICO_GCC_TRIPLE set from environment: $ENV{PICO_GCC_TRIPLE}")
1313
else()
1414
set(PICO_GCC_TRIPLE arm-none-eabi)
15-
message("PICO_GCC_TRIPLE defaulted to arm-none-eabi")
15+
#pico_message_debug("PICO_GCC_TRIPLE defaulted to arm-none-eabi")
1616
endif()
1717
endif()
1818

docs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
find_package(Doxygen)
1+
find_package(Doxygen QUIET)
22
if (PICO_SDK_TOP_LEVEL_PROJECT AND ${DOXYGEN_FOUND})
33
set(PICO_BUILD_DOCS_DEFAULT 1)
44
endif()

docs/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Examples Index {#examples_page}
22

3-
This page links to the various example code fragments in this documentation. For more complete examples, please see the pico_examples repository, which contains complete buildable projects.
3+
This page links to the various example code fragments in this documentation. For more complete examples, please see the [pico-examples](https://github.com/raspberrypi/pico-examples) repository, which contains complete buildable projects.
44

55
- [RTC example](@ref rtc_example)
66
- [UART example](@ref uart_example)

docs/index.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* \defgroup hardware_clocks hardware_clocks
1818
* \defgroup hardware_divider hardware_divider
1919
* \defgroup hardware_dma hardware_dma
20+
* \defgroup hardware_exception hardware_exception
2021
* \defgroup hardware_flash hardware_flash
2122
* \defgroup hardware_gpio hardware_gpio
2223
* \defgroup hardware_i2c hardware_i2c

docs/mainpage.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ The SDK builds an executable which is bare metal, i.e. it includes the entirety
2525
## Examples
2626

2727

28-
This SDK contains a number of example code fragments. An index of these examples can be found [here](@ref examples_page)
29-
28+
This SDK documentation contains a number of example code fragments. An index of these examples can be found [here](@ref examples_page). These examples, and any other source code included in this documentation, is Copyright © 2020 Raspberry Pi (Trading) Ltd. and licensed under the [3-Clause BSD](https://opensource.org/licenses/BSD-3-Clause) license.
3029

3130

lib/tinyusb

Submodule tinyusb updated 819 files

0 commit comments

Comments
 (0)