fix(MP/kernel): change frequency to period
- create confusion
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user