diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html
index 5ff6b55748..971b01f8d0 100644
--- a/Documentation/NuttxPortingGuide.html
+++ b/Documentation/NuttxPortingGuide.html
@@ -120,7 +120,8 @@
4.5.2 OS List Management APIs
4.5.3 sched_process_timer()
4.5.4 sched_timer_expiration()
- 4.5.5 irq_dispatch()
+ 4.5.5 sched_alarm_expiration()
+ 4.5.6 irq_dispatch()
4.6 On-Demand Paging
4.7 LED Support
@@ -2539,14 +2540,17 @@ config ARCH_SIM
Since timers are a limited resource, the use of two timers could be an issue on some systems.
- The job could be done with a single timer if, for example, the single timer were kept in a free-running at all times. Some timer/counters (such as the Atmel SAMA5's timer), for example, have the capability to generate a compare interrupt when the timer matches a comparison value but also to continue counting without stopping. if your hardware supports such counters, one might be able to simply set the comparison count at the value of the free running timer PLUS the desired delay. Then you could have both with a single timer: An interval timer and a free-running counter with the same timer!
+ The job could be done with a single timer if, for example, the single timer were kept in a free-running at all times. Some timer/counters have the capability to generate a compare interrupt when the timer matches a comparison value but also to continue counting without stopping. If your hardware supports such counters, one might used the CONFIG_SCHED_TICKLESS_ALARM
option and be able to simply set the comparison count at the value of the free running timer PLUS the desired delay. Then you could have both with a single timer: An alarm and a free-running counter with the same timer!
In addition to these imported interfaces, the RTOS will export the following interfaces for use by the platform-specific interval timer implementation:
sched_timer_expiration()
+ sched_alarm_expiration()
. Called by the platform-specific logic when the alarm expires.
+ sched_timer_expiration()
. Called by the platform-specific logic when the interval time expires.
irq_dispatch()
sched_alaram_expiration()
Prototype:
+
+#include <nuttx/arch.h> +void sched_timer_expiration(void); + +Description:
+ Description: ifCONFIG_SCHED_TICKLESS
is defined, then this function is provided by the RTOS base code and called from platform-specific code when the interval timer used to implemented the tick-less OS expires. +
Input Parameters:
+Returned Value:
+Assumptions:
+irq_dispatch()
Prototype: void irq_dispatch(int irq, FAR void *context);
Description.