Experimenting with buttons via hardware interrupts, sensors via i2c, and motors in FreeRTOS on the rp2040-based Pico Feather
This program depends on the pico-sdk and the FreeRTOS-Kernel
-
Clone the repository:
git clone https://github.com/loganfin/rtos-motor.git
-
Configure the build directory using CMake:
-
If you already have the pico-sdk and the FreeRTOS-Kernel on your machine:
cmake -B build -DPICO_SDK_PATH=</path/to/pico-sdk/> -DPICO_SDK_FREERTOS_SOURCE=</path/to/FreeRTOS-Kernel>
-
If you don't have the pico-sdk or the FreeRTOS-Kernel on your machine:
git submodule update --init git -C lib/pico-sdk/ submodule update --init cmake -B build
-
-
Build the program:
cmake --build build
The uf2 binary will be located inside the build
directory that was created with the cmake -B build
command.