zhangyuan21
9150ea0e95
arch_alarm: don't init local variable for fpu test case fail
...
D16 register will be cleared when compiling with gcc on some boards.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2022-12-07 12:21:16 +08:00
zhangyuan21
fc9b5e1980
arch_alarm: adjust oneshot/arch_alarm to support tick
2022-10-12 11:55:46 +08:00
zhangyuan21
750007ded9
sched: use tick count for sched timer expiration
2022-10-12 11:55:46 +08:00
Xiang Xiao
ecccc614bd
arch: Add up_perf_getfreq function
...
it's important to know the perf count frequency
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 21:02:14 -03:00
Xiang Xiao
bc2dd37051
drivers/timers: Add weak_function for up_ function
...
so the user could replace the implementation if need
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 13:35:05 +01:00
Xiang Xiao
a24ae559c2
arch: Decouple up_critmon_[gettime|convert] from critmon
...
and rename to up_perf_[gettime|convert] since it's useful in other case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 14:43:34 +08:00
Anthony Merlino
9c8c2b0db2
Separate CLOCK_TIMEKEEPING and SCHED_TICKLESS.
2021-04-13 11:42:31 -05:00
Xiang Xiao
8e8f41faeb
drivers/timer: auto select the related option in Kconfig
...
to avoid the user make the wrong combination in defconfig
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-04 16:16:51 -03:00
Xiang Xiao
b5f429c88b
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-22 17:37:21 -06:00
Xiang Xiao
ae356001cf
Change all files come from Xiaomi/Pinecone to Apache License 2.0
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-08-22 17:37:21 -06:00
Gregory Nutt
f5e0bb2d30
Run all files modified by PR274 through nxstyle.
2020-02-15 07:17:22 -06:00
Xiang Xiao
20a9a62fdf
Make compare_timespec public so timer driver could reuse it
2020-02-15 07:17:07 -06:00
Gregory Nutt
842d3dc4e5
Rename sched_alarm_expiration to nxsched_alarm_expiration. That is the appropriate name for an internal sched/ function (still many named incorrectly).
2019-03-20 19:34:23 -06:00
Gregory Nutt
b290160b3b
Rename sched_process_timer to nxsched_process_timer. That is the appropriate name for an internal sched/ function (still many named incorrectly).
2019-03-20 19:27:40 -06:00
Gregory Nutt
dc8c814ca3
Squashed commit of the following:
...
Fixed coding standard error in several files. Use of while( is incorrect; a space is required between while and (. Also ran tools/nxstyle and fix thoses complaints as well in most files.
Changes to comply with coding standard. Mostly focused on files with missing space after keyword in if(, switch(, and for(. Offending files also got changes to comply with tools nxstyle. If there were logs of nxstyle complaints, the file also got a taste of tools/indent.sh. Still need to fix occurrences of while( with missing space. There are a lot of them.
2019-02-27 08:41:08 -06:00
Xiang Xiao
15db8a21ae
drivers/timers/arch_alarm.c and arch_timer.c: Implement up_critmon_gettime and up_critmon_convert and remove the critical section from current_usec to infinite recursion.
2019-01-27 10:15:51 -06:00
Xiang Xiao
2e8ffd8cc6
drivers/timers: Simplify the error handling in arch rtc/alarm/timer wrapper
2018-11-08 12:06:44 -06:00
ligd
414ace8f46
drivers/timers/arch_alarm.c: Fix alarm ISR error when no CONFIG_SCHED_TICKLESS
...
drivers/timers/arch_alarm.c: Use uint64_t to avoid alarm 32-bit overflow
2018-11-08 11:51:09 -06:00
Xiang Xiao
6c057e608b
Squashed commit of the following:
...
drivers/timers/arch_timer.c: implement timer arch API on top of timer driver interface
drivers/timers/arch_alarm.c: Implement alarm arch API on top of oneshot driver interface
drivers/timers/arch_rtc.c: Implement RTC arch API on top of RTC driver interface
include/nuttx/timers/rtc.h: Extend struct rtc_time by adding tm_nsec if RTC supporst hiresolution time.
2018-08-27 11:55:30 -06:00