From 8a11587a878cd544b9d80da8d249291d0e31f02d Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 17 Oct 2020 13:48:57 -0400 Subject: [PATCH] removed old filter code --- filter/Makefile | 14 -------------- filter/test.cpp | 14 -------------- 2 files changed, 28 deletions(-) delete mode 100644 filter/Makefile delete mode 100644 filter/test.cpp diff --git a/filter/Makefile b/filter/Makefile deleted file mode 100644 index a1ce186..0000000 --- a/filter/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -all: - @arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Os --specs=nosys.specs -nostartfiles -fPIE -c test.cpp - @arm-none-eabi-ld -shared -n -N -z max-page-size=512 -Ttext-segment=0 \ - test.o -o test.so - @arm-none-eabi-strip -s -S --strip-unneeded test.so - @arm-none-eabi-objcopy --remove-section .dynsym \ - --remove-section .dynstr \ - --remove-section .dynamic \ - --remove-section .hash \ - --remove-section .ARM.exidx \ - --remove-section .ARM.attributes \ - --remove-section .comment \ - test.so - diff --git a/filter/test.cpp b/filter/test.cpp deleted file mode 100644 index 24fdb72..0000000 --- a/filter/test.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include - -using adcsample_t = uint16_t; -__attribute__((section(".process_data"))) -void process_data(adcsample_t *samples, unsigned int size); - -//////////////////////////////////////////////////////////////////////////////// - -void process_data(adcsample_t *samples, unsigned int size) -{ - for (unsigned int i = 0; i < size; i++) - samples[i] /= 2; -} -