-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from wiiznokes/dev
Dev
- Loading branch information
Showing
26 changed files
with
66 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[env] | ||
LMSENSORS_STATIC = "1" | ||
LMSENSORS_INCLUDE_DIR = { value = "libsensors_build/include", relative = true } | ||
LMSENSORS_LIB_DIR = { value = "libsensors_build/lib", relative = true } | ||
LMSENSORS_INCLUDE_DIR = { value = "target/libsensors_build/include", relative = true } | ||
LMSENSORS_LIB_DIR = { value = "target/libsensors_build/lib", relative = true } | ||
RUST_LOG = "fan_control=debug,data=info,hardware=info,ui=debug" | ||
#RUST_BACKTRACE = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,9 @@ target/ | |
|
||
# custom | ||
|
||
test/ | ||
.test/ | ||
.idea/ | ||
.vscode/* | ||
!.vscode/launch.json | ||
libsensors_build/ | ||
etc/ | ||
bin/ | ||
obj/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "libsensors"] | ||
path = libsensors | ||
[submodule "hardware/libsensors"] | ||
path = hardware/libsensors | ||
url = https://github.com/wiiznokes/libsensors | ||
branch = pwm | ||
branch = pwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# Architecture | ||
|
||
Each node/item/vertice have an unique ID, stored in a global hashmap. | ||
hardware is responsible to implement an interface for each hardware items | ||
|
||
# Concurency | ||
|
||
Fist, the config file is deserialized into a Config structure. | ||
The Config struct is then used to generate a Graph where each node is an item of the config. | ||
I.e: Control, Temp, Linear, etc... | ||
Each node have an unique ID, and is stored in a hashmap. They implement an update fonction, that take inputs value and return a value. | ||
A node store a ref (the node id) of it's dependencies. | ||
|
||
We can easily pass from the graph to a Config structure to serialize it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Submodule libsensors
updated
from 000000 to a6ec54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.