-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates to picofuse * Updated pool code * Added fuse application * Updates * Updates * Updated * Updated pool * Updated to compile for pico * Added LED * Updated code and added blink test * Updated ADC * WIP: GPIO events * Updated assert * Updated documentation * Added docs * Updated
- Loading branch information
Showing
103 changed files
with
4,651 additions
and
4,116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
name: Create documentation | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
doxygen: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Install Doxygen | ||
run: sudo apt-get install doxygen | ||
- name: Generate documentation | ||
run: doxygen Doxyfile | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'doc' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
build | ||
|
||
# ignore | ||
doc | ||
opts.h | ||
src/old | ||
.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[submodule "lib/pico-sdk"] | ||
path = lib/pico-sdk | ||
url = https://github.com/raspberrypi/pico-sdk | ||
branch = 1.5.1 | ||
[submodule "lib/picotool"] | ||
path = lib/picotool | ||
url = https://github.com/raspberrypi/picotool.git | ||
branch = 1.1.2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,48 @@ | ||
# Versions | ||
cmake_minimum_required(VERSION 3.12) | ||
|
||
set(CMAKE_C_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
include(lib/pico-sdk/pico_sdk_init.cmake) | ||
|
||
project(picofuse CXX C ASM) | ||
|
||
pico_sdk_init() | ||
# PICO_BOARD | ||
if (DEFINED ENV{PICO_BOARD}) | ||
set(PICO_BOARD $ENV{PICO_BOARD}) | ||
message("Using PICO_BOARD from environment ('${PICO_BOARD}')") | ||
else() | ||
if (NOT PICO_BOARD) | ||
set(PICO_BOARD "pico") | ||
message("Defaulting PICO target board to ${PICO_BOARD} since not specified") | ||
else() | ||
message("PICO target board is ${PICO_BOARD}") | ||
endif() | ||
endif() | ||
|
||
# TARGET set to linux, darwin or pico depending on PICO_BOARD | ||
if(PICO_BOARD STREQUAL "linux") | ||
set(TARGET "linux") | ||
elseif(PICO_BOARD STREQUAL "darwin") | ||
set(TARGET "darwin") | ||
else() | ||
set(TARGET "pico") | ||
include(lib/pico-sdk/pico_sdk_init.cmake) | ||
endif() | ||
|
||
# Define project | ||
project(fuse CXX C ASM) | ||
message("Set TARGET to ${TARGET}") | ||
add_compile_definitions(TARGET=${TARGET}) | ||
|
||
# Libraries | ||
add_subdirectory(src/fuse) | ||
add_subdirectory(src/rp2040) | ||
add_subdirectory(src/pimoroni) | ||
|
||
# Examples | ||
add_subdirectory(examples/inkypack) | ||
add_subdirectory(examples/picodisplay) | ||
|
||
|
||
|
||
# Pico libraries | ||
if(${TARGET} STREQUAL "pico") | ||
pico_sdk_init() | ||
add_subdirectory(src/picofuse) | ||
endif() | ||
|
||
# Tests | ||
add_subdirectory(tests/blink) | ||
add_subdirectory(tests/fuseapp) | ||
add_subdirectory(tests/panic) | ||
add_subdirectory(tests/pool) | ||
add_subdirectory(tests/temperature) |
Oops, something went wrong.