Skip to content

Commit

Permalink
First commit of V2 to main (#2)
Browse files Browse the repository at this point in the history
* 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
djthorpe authored Oct 24, 2023
1 parent 6c8ed5f commit 38a5192
Show file tree
Hide file tree
Showing 103 changed files with 4,651 additions and 4,116 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/doxygen.yaml
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
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build

# ignore
doc
opts.h
src/old
.vscode

2 changes: 2 additions & 0 deletions .gitmodules
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
19 changes: 0 additions & 19 deletions .vscode/c_cpp_properties.json

This file was deleted.

7 changes: 0 additions & 7 deletions .vscode/launch.json

This file was deleted.

10 changes: 0 additions & 10 deletions .vscode/settings.json

This file was deleted.

54 changes: 40 additions & 14 deletions CMakeLists.txt
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)
Loading

0 comments on commit 38a5192

Please sign in to comment.