Skip to content

Commit 966c2e4

Browse files
committed
refactor: move StepperISR to fas_queue/stepper_queue.*
Rename and move StepperISR.h/cpp to fas_queue/stepper_queue.h/cpp for better organization. Update all includes across the codebase and simplify CMakeLists.txt INCLUDE_DIRS to just src/.
1 parent f8d463d commit 966c2e4

41 files changed

Lines changed: 45 additions & 44 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
idf_component_register(
2-
SRC_DIRS "src" "src/pd_esp32" "src/fas_ramp" "src/log2"
3-
INCLUDE_DIRS "src" "src/pd_esp32" "src/fas_ramp" "src/log2"
2+
SRC_DIRS "src" "src/pd_esp32" "src/fas_ramp" "src/log2" "src/fas_queue"
3+
INCLUDE_DIRS "src"
44
REQUIRES
55
esp_driver_gpio
66
esp_driver_rmt

extras/tests/pc_based/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ ramp_helper: ramp_helper.o $(LIB_O)
1818
ramp_helper.o: ramp_helper.cpp $(SRC_LIB_H) stubs.h
1919
g++ -c $(CXXFLAGS) -o $@ $<
2020

21-
LIB_H=FastAccelStepper.h log2/Log2Representation.h log2/Log2RepresentationConst.h StepperISR.h \
21+
LIB_H=FastAccelStepper.h log2/Log2Representation.h log2/Log2RepresentationConst.h \
22+
fas_queue/stepper_queue.h fas_queue/queue.h fas_queue/base.h \
2223
fas_ramp/RampGenerator.h fas_ramp/RampControl.h fas_ramp/RampCalculator.h \
23-
fas_arch/common.h fas_queue/base.h pd_test/test_queue.h
24+
fas_arch/common.h pd_test/test_queue.h
2425
LIB_O=FastAccelStepper.o Log2Representation.o StepperISR_test.o \
25-
RampGenerator.o RampControl.o RampCalculator.o StepperISR.o
26+
RampGenerator.o RampControl.o RampCalculator.o stepper_queue.o
2627

2728
SRC_LIB_H=$(addprefix $(PRJ_ROOT)/src/,$(LIB_H))
2829

@@ -53,7 +54,7 @@ RampControl.o: $(PRJ_ROOT)/src/fas_ramp/RampControl.cpp $(SRC_LIB_H)
5354
RampCalculator.o: $(PRJ_ROOT)/src/fas_ramp/RampCalculator.cpp $(SRC_LIB_H)
5455
$(COMPILE.cpp) $< -o $@
5556

56-
StepperISR.o: $(PRJ_ROOT)/src/StepperISR.cpp $(SRC_LIB_H)
57+
stepper_queue.o: $(PRJ_ROOT)/src/fas_queue/stepper_queue.cpp $(SRC_LIB_H)
5758
$(COMPILE.cpp) $< -o $@
5859

5960
StepperISR_test.o: StepperISR_test.cpp $(SRC_LIB_H)

extras/tests/pc_based/StepperISR_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "StepperISR.h"
1+
#include "fas_queue/stepper_queue.h"
22

33
#include "FastAccelStepper.h"
44

extras/tests/pc_based/off_test_15.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdlib.h>
44

55
#include "FastAccelStepper.h"
6-
#include "StepperISR.h"
6+
#include "fas_queue/stepper_queue.h"
77

88
char TCCR1A;
99
char TCCR1B;

extras/tests/pc_based/ramp_helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <stdint.h>
55

66
#include "FastAccelStepper.h"
7-
#include "StepperISR.h"
7+
#include "fas_queue/stepper_queue.h"
88

99
char TCCR1A;
1010
char TCCR1B;

extras/tests/pc_based/test_01.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdlib.h>
44

55
#include "FastAccelStepper.h"
6-
#include "StepperISR.h"
6+
#include "fas_queue/stepper_queue.h"
77

88
char TCCR1A;
99
char TCCR1B;

extras/tests/pc_based/test_02.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdlib.h>
44

55
#include "FastAccelStepper.h"
6-
#include "StepperISR.h"
6+
#include "fas_queue/stepper_queue.h"
77

88
char TCCR1A;
99
char TCCR1B;

extras/tests/pc_based/test_04.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdlib.h>
44

55
#include "FastAccelStepper.h"
6-
#include "StepperISR.h"
6+
#include "fas_queue/stepper_queue.h"
77

88
char TCCR1A;
99
char TCCR1B;

extras/tests/pc_based/test_05.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdlib.h>
44

55
#include "FastAccelStepper.h"
6-
#include "StepperISR.h"
6+
#include "fas_queue/stepper_queue.h"
77

88
char TCCR1A;
99
char TCCR1B;

extras/tests/pc_based/test_06.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdlib.h>
44

55
#include "FastAccelStepper.h"
6-
#include "StepperISR.h"
6+
#include "fas_queue/stepper_queue.h"
77

88
char TCCR1A;
99
char TCCR1B;

0 commit comments

Comments
 (0)