inital commit

This commit is contained in:
MReenen 2024-02-24 20:08:44 +01:00
commit 6d19e1dc97
5 changed files with 36 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/build

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "libs/pico-sdk"]
path = libs/pico-sdk
url = https://github.com/raspberrypi/pico-sdk.git

20
CMakeLists.txt Normal file
View File

@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.13)
# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(libs/pico-sdk/pico_sdk_init.cmake)
project(my_project)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
add_executable(hello_world
src/main.c
)
# Add pico_stdlib library which aggregates commonly used features
target_link_libraries(hello_world pico_stdlib)
# create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(hello_world)

1
libs/pico-sdk Submodule

@ -0,0 +1 @@
Subproject commit 6a7db34ff63345a7badec79ebea3aaef1712f374

9
src/main.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include "pico/stdlib.h"
int main() {
setup_default_uart();
printf("Hello, world!\n");
return 0;
}