Skip to content

Commit

Permalink
arduinofft: Move to submodule, define srqt_internal externally
Browse files Browse the repository at this point in the history
  • Loading branch information
FintasticMan authored and JF002 committed Jun 17, 2023
1 parent 473a079 commit 505520d
Show file tree
Hide file tree
Showing 21 changed files with 9 additions and 2,311 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "src/libs/QCBOR"]
path = src/libs/QCBOR
url = https://github.com/laurencelundblade/QCBOR.git
[submodule "src/libs/arduinoFFT"]
path = src/libs/arduinoFFT
url = https://github.com/kosme/arduinoFFT.git
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,9 @@ set(INCLUDE_FILES
heartratetask/HeartRateTask.h
components/heartrate/Ppg.h
components/heartrate/HeartRateController.h
libs/arduinoFFT-develop/src/arduinoFFT.h
libs/arduinoFFT-develop/src/defs.h
libs/arduinoFFT-develop/src/types.h
libs/arduinoFFT/src/arduinoFFT.h
libs/arduinoFFT/src/defs.h
libs/arduinoFFT/src/types.h
components/motor/MotorController.h
buttonhandler/ButtonHandler.h
touchhandler/TouchHandler.h
Expand Down
3 changes: 2 additions & 1 deletion src/components/heartrate/Ppg.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
#include <cstdint>
// Note: Change internal define 'sqrt_internal sqrt' to
// 'sqrt_internal sqrtf' to save ~3KB of flash.
#define sqrt_internal sqrtf
#define FFT_SPEED_OVER_PRECISION
#include "libs/arduinoFFT-develop/src/arduinoFFT.h"
#include "libs/arduinoFFT/src/arduinoFFT.h"

namespace Pinetime {
namespace Controllers {
Expand Down
1 change: 1 addition & 0 deletions src/libs/arduinoFFT
Submodule arduinoFFT added at 419d7b
3 changes: 0 additions & 3 deletions src/libs/arduinoFFT-develop/.gitignore

This file was deleted.

119 changes: 0 additions & 119 deletions src/libs/arduinoFFT-develop/Examples/FFT_01/FFT_01.ino

This file was deleted.

125 changes: 0 additions & 125 deletions src/libs/arduinoFFT-develop/Examples/FFT_02/FFT_02.ino

This file was deleted.

114 changes: 0 additions & 114 deletions src/libs/arduinoFFT-develop/Examples/FFT_03/FFT_03.ino

This file was deleted.

Loading

0 comments on commit 505520d

Please sign in to comment.