Commit Graph

6 Commits

Author SHA1 Message Date
Saiiijchan
b4e74b29fc timer: add missing ";" (#39)
Signed-off-by: wangfei_chen <wangfei_chen@realsil.com.cn>
Co-authored-by: wangfei_chen <wangfei_chen@realsil.com.cn>
2025-03-10 08:43:40 +05:30
Saiiijchan
4930934af3 timer: prevent infinite loop on one-shot timer start (#38)
* timer: prevent infinite loop on one-shot timer start

One-shot timers that expire after a single tick could immediately
transition to a dormant state, despite xTimerCommandSent being pdTRUE.
This situation resulted in a potential deadlock due to an infinite
loop in the timer activation process.

Signed-off-by: wangfei_chen <wangfei_chen@realsil.com.cn>

* Code review suggestions

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: wangfei_chen <wangfei_chen@realsil.com.cn>
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: wangfei_chen <wangfei_chen@realsil.com.cn>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2025-02-24 21:53:44 +05:30
Saiiijchan
ae1d3f0d5d Remove redundant xTimerStart() in timer_settime (#37)
xTimerChangePeriod() already starts the timer.

Signed-off-by: wangfei_chen <wangfei_chen@realsil.com.cn>
Co-authored-by: wangfei_chen <wangfei_chen@realsil.com.cn>
2025-02-20 16:37:43 -08:00
Gaurav-Aggarwal-AWS
8339845266 Rename xTimerHandle to xTimer (#36)
If configENABLE_BACKWARD_COMPATIBILITY is defined, then xTimerHandle is
defined to TimerHandle_t which would result in conflict.

Fixes #35.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2025-02-03 22:40:06 +05:30
Muneeb Ahmed
85ce51dad6 Add wait to timer_settime (#17) 2022-02-08 14:57:54 -08:00
Yuhui Zheng
eb87d247f9 After this commit, this repository contains only POSIX source code. 2020-02-21 11:58:33 -08:00