https://github.com/raspberrypi/pico-host-sdl
https://github.com/raspberrypi/pico-host-sdl
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/raspberrypi/pico-host-sdl
- Owner: raspberrypi
- License: bsd-3-clause
- Created: 2021-01-20T15:02:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-25T07:40:04.000Z (over 1 year ago)
- Last Synced: 2025-01-29T21:43:31.475Z (about 1 year ago)
- Language: C
- Size: 88.9 KB
- Stars: 29
- Watchers: 13
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
Awesome Lists containing this project
README
# Overview
This repository adds additional functionality to `PICO_PLATOFRM=host` to allow testing of `pico_audio_` and `pico_scanvideo` related applications in the host environment. It is not intended to be a complete simulator for the RP2040!!!!
It additionally provides support for `pico_multicore_` and support for `pico_time` timers.
# Using
To use, configure your _host_ mode CMake build with:
`-DPICO_PLATFORM=host -DPICO_SDK_PRE_LIST_DIRS=/pico_host_sdl`
You will get audio and video and two core support with semaphores/spinlocks etc via SDL.
# Notes
This has only been tested on macOS and Linux operating systems. It will _NOT_ work with the MSVC compiler, however it might work on Windows if you build with gcc or WSL2
The setup/build is currently a little convoluted because `pico-extras` is needed by this repository even if your application isn't using it (i.e. just uses the bare `pico-sdk`)