diff options
Diffstat (limited to 'watch_module_lib.c')
| -rw-r--r-- | watch_module_lib.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/watch_module_lib.c b/watch_module_lib.c index 4783c90..896b1d0 100644 --- a/watch_module_lib.c +++ b/watch_module_lib.c @@ -56,7 +56,7 @@ void *access_user_space_ptr(pid_t pid, unsigned long addr) static struct hrtimer hr_timer; static ktime_t kt; -/// @brief hwTimer handler +/// @brief hrTimer handler enum hrtimer_restart hrtimer_hander(struct hrtimer *timer) { if (read_and_compare(&k_watch_arg)) @@ -75,12 +75,12 @@ enum hrtimer_restart hrtimer_hander(struct hrtimer *timer) return HRTIMER_RESTART; } -/// @brief start hwTimer +/// @brief start hrTimer /// @param timeout: timeout in us /// @return 0 is success -int start_hwTimer(unsigned long timeout) +int start_hrTimer(unsigned long timeout) { - printk("HWTimer Start\n"); + printk("HrTimer Start\n"); kt = ktime_set(0, (unsigned long)timeout * US2NS); // us -> ns // CLOCK_MONOTONIC: time since boot | HRTIMER_MODE_REL : relative time @@ -91,12 +91,12 @@ int start_hwTimer(unsigned long timeout) return 0; } -/// @brief cancel hwTimer +/// @brief cancel hrTimer /// @param -void cancel_hwTimer(void) +void cancel_hrTimer(void) { hrtimer_cancel(&hr_timer); - printk("HWTimer End\n"); + printk("HrTimer End\n"); } // for read_and_compare |
