Rename fanspeeeed to fanspeed

This commit is contained in:
Sebastian H. Gabrielli 2024-04-30 11:26:08 +02:00
parent b858d29ce8
commit 458ae00f24
5 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#include "command-handler.h" #include "command-handler.h"
#include "fan_speeeed.h" #include "fan_speed.h"
// Initialize empty, global command context // Initialize empty, global command context
volatile command_context_t context = {UNKNOWN_COMMAND, SRC_NONE, FAN_NONE, volatile command_context_t context = {UNKNOWN_COMMAND, SRC_NONE, FAN_NONE,

View File

@ -1,4 +1,4 @@
#include "fan_speeeed.h" #include "fan_speed.h"
#include "uart.h" #include "uart.h"
uint16_t timer_period_ms = 1; uint16_t timer_period_ms = 1;

View File

@ -26,6 +26,9 @@
// Fan history variables // Fan history variables
volatile uint16_t fan1_history[512] = {0}; volatile uint16_t fan1_history[512] = {0};
volatile uint16_t fan2_history[512] = {0}; volatile uint16_t fan2_history[512] = {0};
// Fan history index variable
volatile uint16_t fan1_history_index = 0;
volatile uint16_t fan2_history_index = 0;
// Default config is 500ms sample rate // Default config is 500ms sample rate
volatile config_t config = {500}; volatile config_t config = {500};

View File

@ -6,11 +6,11 @@
projectFiles="true"> projectFiles="true">
<itemPath>uart.h</itemPath> <itemPath>uart.h</itemPath>
<itemPath>voltage.h</itemPath> <itemPath>voltage.h</itemPath>
<itemPath>fan_speeeed.h</itemPath>
<itemPath>themistor-temp.h</itemPath> <itemPath>themistor-temp.h</itemPath>
<itemPath>command-handler.h</itemPath> <itemPath>command-handler.h</itemPath>
<itemPath>eeprom.h</itemPath> <itemPath>eeprom.h</itemPath>
<itemPath>i2c.h</itemPath> <itemPath>i2c.h</itemPath>
<itemPath>fan_speed.h</itemPath>
</logicalFolder> </logicalFolder>
<logicalFolder name="ExternalFiles" <logicalFolder name="ExternalFiles"
displayName="Important Files" displayName="Important Files"
@ -28,11 +28,11 @@
<itemPath>main.c</itemPath> <itemPath>main.c</itemPath>
<itemPath>uart.c</itemPath> <itemPath>uart.c</itemPath>
<itemPath>voltage.c</itemPath> <itemPath>voltage.c</itemPath>
<itemPath>fan_speeeed.c</itemPath>
<itemPath>thermistor-temp.c</itemPath> <itemPath>thermistor-temp.c</itemPath>
<itemPath>command-handler.c</itemPath> <itemPath>command-handler.c</itemPath>
<itemPath>i2c.c</itemPath> <itemPath>i2c.c</itemPath>
<itemPath>eeprom.c</itemPath> <itemPath>eeprom.c</itemPath>
<itemPath>fan_speed.c</itemPath>
</logicalFolder> </logicalFolder>
</logicalFolder> </logicalFolder>
<projectmakefile>Makefile</projectmakefile> <projectmakefile>Makefile</projectmakefile>