Skip to content

Commit

Permalink
Adds normalization for ADC inputs.
Browse files Browse the repository at this point in the history
Introduces device-level support and examples for Lichen Bifocals.
  • Loading branch information
colinbdclark committed Apr 16, 2024
1 parent 718a162 commit 9431935
Show file tree
Hide file tree
Showing 17 changed files with 947 additions and 70 deletions.
64 changes: 62 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,67 @@
"type": "cortex-debug"
},
{
"name": "Remote Lichen Sines",
"name": "Remote Lichen Bifocals Sine Oscillator",
"configFiles": [
"interface/stlink.cfg",
"target/stm32h7x.cfg"
],
"cwd": "${workspaceFolder}/hosts/daisy/examples/lichen-bifocals/sine-oscillator",
"debuggerArgs": [
"-d",
"${workspaceRoot}/hosts/daisy/examples/lichen-bifocals/sine-oscillator"
],
"executable": "${workspaceRoot}/hosts/daisy/examples/lichen-bifocals/sine-oscillator/build/lichen-bifocals-sine-oscillator.elf",
"interface": "swd",
"openOCDLaunchCommands": [
"init",
"reset init"
],
"preLaunchTask": "Debug Build Lichen Bifocals Examples",
"preRestartCommands": [
"load",
"enable breakpoint",
"monitor reset"
],
"request": "launch",
"runToEntryPoint": "main",
"servertype": "openocd",
"showDevDebugOutput": "parsed",
"svdFile": "${workspaceRoot}/.vscode/STM32H750x.svd",
"type": "cortex-debug"
},
{
"name": "Remote Lichen Bifocals Filter",
"configFiles": [
"interface/stlink.cfg",
"target/stm32h7x.cfg"
],
"cwd": "${workspaceFolder}/hosts/daisy/examples/lichen-bifocals/filter",
"debuggerArgs": [
"-d",
"${workspaceRoot}/hosts/daisy/examples/lichen-bifocals/filter"
],
"executable": "${workspaceRoot}/hosts/daisy/examples/lichen-bifocals/filter/build/lichen-bifocals-filter.elf",
"interface": "swd",
"openOCDLaunchCommands": [
"init",
"reset init"
],
"preLaunchTask": "Debug Build Lichen Bifocals Examples",
"preRestartCommands": [
"load",
"enable breakpoint",
"monitor reset"
],
"request": "launch",
"runToEntryPoint": "main",
"servertype": "openocd",
"showDevDebugOutput": "parsed",
"svdFile": "${workspaceRoot}/.vscode/STM32H750x.svd",
"type": "cortex-debug"
},
{
"name": "Remote Lichen Medium Sines",
"configFiles": [
"interface/stlink.cfg",
"target/stm32h7x.cfg"
Expand Down Expand Up @@ -495,7 +555,7 @@
"type": "cortex-debug"
},
{
"name": "Remote Lichen Chorus",
"name": "Remote Lichen Medium Chorus",
"configFiles": [
"interface/stlink.cfg",
"target/stm32h7x.cfg"
Expand Down
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,20 @@
],
"type": "shell"
},
{
"label": "Debug Build Lichen Bifocals Examples",
"dependsOn": [
"Build libdaisy"
],
"command": "make clean;DEBUG=1 OPT=-Og make",
"options": {
"cwd": "${workspaceFolder}/hosts/daisy/examples/lichen-bifocals"
},
"problemMatcher": [
"$gcc"
],
"type": "shell"
},
{
"label": "Debug Build Lichen Freddie Examples",
"dependsOn": [
Expand Down
5 changes: 5 additions & 0 deletions hosts/daisy/examples/lichen-bifocals/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
all:
$(MAKE) -C filter

clean:
$(MAKE) -C filter clean
21 changes: 21 additions & 0 deletions hosts/daisy/examples/lichen-bifocals/filter/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Project Name
TARGET ?= lichen-bifocals-filter

DEBUG = 0
OPT = -O3

# Sources
C_SOURCES += ../../../../../libsignaletic/vendor/tlsf/tlsf.c ../../../../../libsignaletic/src/libsignaletic.c ../../../src/signaletic-host.c
C_INCLUDES += -I../../../../../libsignaletic/vendor/tlsf -I../../../../../libsignaletic/include

CPP_INCLUDES += -I../vendor/lib -I../../../vendor/lib/dev -I../../../include
CPP_SOURCES = ../../../src/signaletic-daisy-host.cpp ../../../src/sig-daisy-patch-sm.cpp src/${TARGET}.cpp

USE_FATFS = 0

# Library Locations
LIBDAISY_DIR = ../../../vendor/libDaisy

# Core location, and generic Makefile.
SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core
include $(SYSTEM_FILES_DIR)/Makefile
Loading

0 comments on commit 9431935

Please sign in to comment.