fix(MP/kernel): change frequency to period

- create confusion
This commit is contained in:
Fastium authored and Fastium committed 2026-06-05 16:27:10 +02:00
1 parent 6a92019cbe
commit 3162b64d71
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -45,7 +45,7 @@ int thread_blinkThread(void* data) {
bool state = false; bool state = false;
int period = 0; int period = 0;
pr_info("Blink started\n"); pr_info("Blink started\n");
while (!kthread_should_stop()) { while (!kthread_should_stop()) {
@@ -58,7 +58,7 @@ int thread_blinkThread(void* data) {
return 0; return 0;
} }
void adjust_frequency(int new_period_ms) { void adjust_period(int new_period_ms) {
pr_info("Adjusting blink period to %d ms\n", new_period_ms); pr_info("Adjusting blink period to %d ms\n", new_period_ms);
atomic_set(&blink_period_ms, new_period_ms); atomic_set(&blink_period_ms, new_period_ms);
} }
+2 -2
View File
@@ -15,10 +15,10 @@
#define DEFAULT_PERIOD_MS 1000 #define DEFAULT_PERIOD_MS 1000
/** /**
* Allow to set a new frequency for the blinky led * Allow to set a new period for the blinky led
* @param new_period_ms The new period in ms for the blinky led * @param new_period_ms The new period in ms for the blinky led
*/ */
void adjust_frequency(int new_period_ms); void adjust_period(int new_period_ms);
void blink_init(void); void blink_init(void);
void blink_exit(void); void blink_exit(void);