Skip to content

Commit 6a7a45b

Browse files
committed
remove unused imports
1 parent cc86c2b commit 6a7a45b

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

stm32-modules/include/vacuum-module/firmware/pump_hardware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern "C" {
88
void pump_hardware_init(void);
99
bool hw_start_pump_motor();
1010
bool hw_stop_pump_motor();
11-
void hw_set_pump_duty_cycle(int16_t duty);
11+
void hw_set_pump_duty_cycle(uint16_t duty);
1212
uint16_t hw_get_pump_duty_cycle(void);
1313
bool hw_enable_pump_tach(bool enable);
1414
float hw_get_pump_rpm(void);

stm32-modules/vacuum-module/firmware/pump/pump_hardware.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ bool hw_stop_pump_motor() {
177177
return HAL_TIM_PWM_Stop(&htim17, TIM_CHANNEL_1) == HAL_OK;
178178
}
179179

180-
void hw_set_pump_duty_cycle(int16_t duty) {
180+
void hw_set_pump_duty_cycle(uint16_t duty) {
181181
duty = clamp(duty, 0, 100);
182182
uint16_t ccr = (uint16_t)(((float)duty / 100.0f) * (PWM_PERIOD + 1));
183183
TIM17->CCR1 = ccr;

stm32-modules/vacuum-module/firmware/pump/pump_policy.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#include "firmware/pump_policy.hpp"
22

3-
#include <cstdint>
4-
53
#include "FreeRTOS.h"
64
#include "firmware/pump_hardware.h"
7-
#include "projdefs.h"
85
#include "task.h"
96

107
using namespace pump_policy;

stm32-modules/vacuum-module/firmware/vent/vent_policy.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#include "firmware/vent_policy.hpp"
22

3-
#include <cstdint>
4-
5-
#include "FreeRTOS.h"
63
#include "firmware/vent_hardware.h"
7-
#include "projdefs.h"
8-
#include "task.h"
94

105
using namespace vent_policy;
116

0 commit comments

Comments
 (0)