File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11idf_component_register (
2- SRC_DIRS "src" "src/pd_esp32" "src/fas_ramp"
3- INCLUDE_DIRS "src" "src/pd_esp32" "src/fas_ramp"
2+ SRC_DIRS "src" "src/pd_esp32" "src/fas_ramp" "src/log2"
3+ INCLUDE_DIRS "src" "src/pd_esp32" "src/fas_ramp" "src/log2"
44 REQUIRES
55 esp_driver_gpio
66 esp_driver_rmt
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ ramp_helper: ramp_helper.o $(LIB_O)
1818ramp_helper.o : ramp_helper.cpp $(SRC_LIB_H ) stubs.h
1919 g++ -c $(CXXFLAGS ) -o $@ $<
2020
21- LIB_H =FastAccelStepper.h Log2Representation.h StepperISR.h \
21+ LIB_H =FastAccelStepper.h log2/ Log2Representation.h log2/Log2RepresentationConst .h StepperISR.h \
2222 fas_ramp/RampGenerator.h fas_ramp/RampControl.h fas_ramp/RampCalculator.h \
2323 fas_arch/common.h fas_queue/base.h pd_test/test_queue.h
2424LIB_O =FastAccelStepper.o Log2Representation.o StepperISR_test.o \
@@ -33,15 +33,15 @@ test_%.o: test_%.cpp $(SRC_LIB_H) RampChecker.h stubs.h
3333 g++ -c $(CXXFLAGS ) -o $@ $<
3434
3535log2_test : log2_test.o Log2Representation.o
36- log2_test.o : log2_test.cpp $(PRJ_ROOT ) /src/Log2Representation.h stubs.h test_03.h
36+ log2_test.o : log2_test.cpp $(PRJ_ROOT ) /src/log2/ Log2Representation.h stubs.h test_03.h
3737
3838rmc_test : rmc_test.o Log2Representation.o RampCalculator.o
39- rmc_test.o : rmc_test.cpp $(PRJ_ROOT ) /src/Log2Representation.h $(PRJ_ROOT ) /src/fas_ramp/RampCalculator.h stubs.h test_03.h
39+ rmc_test.o : rmc_test.cpp $(PRJ_ROOT ) /src/log2/ Log2Representation.h $(PRJ_ROOT ) /src/fas_ramp/RampCalculator.h stubs.h test_03.h
4040
4141FastAccelStepper.o : $(PRJ_ROOT ) /src/FastAccelStepper.cpp $(SRC_LIB_H )
4242 $(COMPILE.cpp ) $< -o $@
4343
44- Log2Representation.o : $(PRJ_ROOT ) /src/Log2Representation.cpp $(PRJ_ROOT ) /src/Log2Representation.h
44+ Log2Representation.o : $(PRJ_ROOT ) /src/log2/ Log2Representation.cpp $(PRJ_ROOT ) /src/log2 /Log2Representation.h
4545 $(COMPILE.cpp ) $< -o $@
4646
4747RampGenerator.o : $(PRJ_ROOT ) /src/fas_ramp/RampGenerator.cpp $(SRC_LIB_H )
Original file line number Diff line number Diff line change 11#include < stdint.h>
22
3- #include " Log2Representation.h"
3+ #include " log2/ Log2Representation.h"
44
55//
66// This file can be renamed to a .ino and compiled as sketch to be run on the
Original file line number Diff line number Diff line change 33#include < stdio.h>
44#include < stdlib.h>
55
6+ #include " log2/Log2Representation.h"
67#include " fas_ramp/RampCalculator.h"
78
89// Not a real test case
Original file line number Diff line number Diff line change 33
44#include <stdint.h>
55
6- #include "Log2Representation.h"
6+ #include "log2/ Log2Representation.h"
77#include "fas_arch/common.h"
88
99#if (TICKS_PER_S == 16000000L )
Original file line number Diff line number Diff line change 55#define PROGMEM
66#define pgm_read_byte_near (x ) (*(x))
77#endif
8- #include " Log2Representation.h"
8+ #include " log2/ Log2Representation.h"
99#ifdef TEST
1010#include < stdio.h>
1111#endif
Original file line number Diff line number Diff line change 22#define LOG2REPRESENTATION_H
33#include <stdint.h>
44
5- #include < Log2RepresentationConst.h>
5+ #include "log2/ Log2RepresentationConst.h"
66
77typedef int16_t pmf_logarithmic ;
88
Original file line number Diff line number Diff line change 33#ifndef LOG2REPRESENTATIONCONST_H
44#define LOG2REPRESENTATIONCONST_H
55
6- #include <Log2Representation.h>
6+ // pmf_logarithmic must be defined before including this file
77
88// LOG2_CONST_1 = 0.000000 0 = 0x0000
99#define LOG2_CONST_1 ((pmf_logarithmic)0x0000)
You can’t perform that action at this time.
0 commit comments