1
0

fix(MP/kernel): change frequency to period

- create confusion
This commit is contained in:
2026-06-05 16:11:32 +02:00
committed by Fastium
parent 6a92019cbe
commit 3162b64d71
2 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ int thread_blinkThread(void* data) {
bool state = false;
int period = 0;
pr_info("Blink started\n");
while (!kthread_should_stop()) {
@@ -58,7 +58,7 @@ int thread_blinkThread(void* data) {
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);
atomic_set(&blink_period_ms, new_period_ms);
}
}

View File

@@ -15,10 +15,10 @@
#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
*/
void adjust_frequency(int new_period_ms);
void adjust_period(int new_period_ms);
void blink_init(void);
void blink_exit(void);