mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:22:34 +08:00
Change STM32 tickless to use only one timer
This commit is contained in:
+10
-19
@@ -2810,31 +2810,22 @@ menu "Timer Configuration"
|
|||||||
|
|
||||||
if SCHED_TICKLESS
|
if SCHED_TICKLESS
|
||||||
|
|
||||||
config STM32_ONESHOT
|
config STM32_TICKLESS_TIMER
|
||||||
bool
|
int "Tickless hardware timer"
|
||||||
default y
|
|
||||||
|
|
||||||
config STM32_FREERUN
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config STM32_TICKLESS_ONESHOT
|
|
||||||
int "Tickless one-shot timer channel"
|
|
||||||
default 2
|
default 2
|
||||||
range 1 14
|
range 1 14
|
||||||
depends on STM32_ONESHOT
|
|
||||||
---help---
|
---help---
|
||||||
If the Tickless OS feature is enabled, the one clock must be
|
If the Tickless OS feature is enabled, then one clock must be
|
||||||
assigned to provided the one-shot timer needed by the OS.
|
assigned to provided the timer needed by the OS.
|
||||||
|
|
||||||
config STM32_TICKLESS_FREERUN
|
config STM32_TICKLESS_CHANNEL
|
||||||
int "Tickless free-running timer channel"
|
int "Tickless timer channel"
|
||||||
default 5
|
default 1
|
||||||
range 1 14
|
range 1 4
|
||||||
depends on STM32_FREERUN
|
|
||||||
---help---
|
---help---
|
||||||
If the Tickless OS feature is enabled, the one clock must be
|
If the Tickless OS feature is enabled, the one clock must be
|
||||||
assigned to provided the free-running timer needed by the OS.
|
assigned to provided the free-running timer needed by the OS
|
||||||
|
and one channel on that clock is needed to handle intervals.
|
||||||
|
|
||||||
endif # SCHED_TICKLESS
|
endif # SCHED_TICKLESS
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user