https://github.com/gemarcano/gpico
An opinionated collection of utilities for Raspberry Pi Pico development.
https://github.com/gemarcano/gpico
Last synced: 3 months ago
JSON representation
An opinionated collection of utilities for Raspberry Pi Pico development.
- Host: GitHub
- URL: https://github.com/gemarcano/gpico
- Owner: gemarcano
- License: other
- Created: 2024-03-16T17:52:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-06T23:28:22.000Z (7 months ago)
- Last Synced: 2025-01-25T16:44:43.061Z (5 months ago)
- Language: C++
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gpico, an opinionated collection of utilities for Raspberry Pi Pico development.
## Using the library
Copy the `gpico_import.cmake` file into your project, include it, and then
define `GPICO_PATH` when configuring CMAKE to the location of this repository.This uses [FreeRTOS-Kernel](https://github.com/FreeRTOS/FreeRTOS-Kernel.git)
and the [pico-sdk](https://github.com/raspberrypi/pico-sdk.git).The tinyusb library in the pico-sdk (lib/tinyusb) needs this patch as well:
- [tinyusb #2474](https://github.com/hathach/tinyusb/pull/2474)After applying the patches, the build process is similar to a normal pico-sdk
application```
mkdir build
cd build
cmake ../ -DPICO_SDK_PATH=[path-to-pico-sdk] \
-DPICO_BOARD=pico_w -DCMAKE_BUILD_TYPE=[Debug|Release|RelWithDebInfo] \
-DFREERTOS_KERNEL_PATH=[path-to-FreeRTOS-Kernel] \
-DGPICO_PATH=[path-to-gpico] \
-GNinja ninja
```