From 96d6da4e252b06dcfdc041e7df23e86161c33007 Mon Sep 17 00:00:00 2001
From: rihab kouki
Date: Tue, 28 Jul 2020 11:24:49 +0100
Subject: Official ARM version: v5.6.0
---
docs/RTOS2/html/group__CMSIS__RTOS__TimerMgmt.html | 122 ++++++++++-----------
1 file changed, 61 insertions(+), 61 deletions(-)
(limited to 'docs/RTOS2/html/group__CMSIS__RTOS__TimerMgmt.html')
diff --git a/docs/RTOS2/html/group__CMSIS__RTOS__TimerMgmt.html b/docs/RTOS2/html/group__CMSIS__RTOS__TimerMgmt.html
index 4ef2b0b..a425ce2 100644
--- a/docs/RTOS2/html/group__CMSIS__RTOS__TimerMgmt.html
+++ b/docs/RTOS2/html/group__CMSIS__RTOS__TimerMgmt.html
@@ -183,12 +183,12 @@ Behavior of a Periodic Timer
Define the timers:
Define callback functions: static void one_shot_Callback (void *argument) {
-
int32_t arg = (int32_t)argument;
-
+
int32_t arg = (int32_t)argument;
+
}
static void periodic_Callback (void *argument) {
-
int32_t arg = (int32_t)argument;
-
+
int32_t arg = (int32_t)argument;
+
}
Instantiate and start the timers:
@@ -197,11 +197,11 @@ Behavior of a Periodic Timer
-
-
+
+
-
+
@@ -371,27 +371,27 @@ Returned by:
Code Example
-
void Timer1_Callback (void *arg);
-
void Timer2_Callback (void *arg);
+
void Timer1_Callback (void *arg);
+
void Timer2_Callback (void *arg);
-
uint32_t exec1;
-
uint32_t exec2;
+
uint32_t exec1;
+
uint32_t exec2;
void TimerCreate_example (void) {
-
-
+
+
-
exec1 = 1;
-
-
if (id1 != NULL) {
+
exec1 = 1U;
+
+
if (id1 != NULL) {
}
-
exec2 = 2;
-
-
if (id2 != NULL) {
+
exec2 = 2U;
+
+
if (id2 != NULL) {
}
:
@@ -461,33 +461,33 @@ Returned by:
osOK: the specified timer has been started or restarted.
osErrorISR: osTimerStart cannot be called from interrupt service routines.
osErrorParameter: parameter timer_id is either NULL or invalid or ticks is incorrect.
-
osErrorResource: the timer specified by parameter timer_id is in an invalid timer state.
+
osErrorResource: the timer is in an invalid state.
- Note
- This function cannot be called from Interrupt Service Routines.
Code Example
-
-
void Timer_Callback (void *arg) {
-
-
-
}
-
uint32_t exec;
+
void Timer_Callback (void *arg) {
+
+
+
}
+
+
uint32_t exec;
-
void TimerStart_example (void) {
-
-
uint32_t timerDelay;
-
osStatus_t status;
+
void TimerStart_example (void) {
+
+
uint32_t timerDelay;
+
osStatus_t status;
-
exec = 1;
-
-
if (id) {
-
timerDelay = 1000;
-
-
+
exec = 1U;
+
+
if (id != NULL) {
+
timerDelay = 1000U;
+
+
-
}
+
}
}
;
}
@@ -520,31 +520,31 @@ Returned by:
osOK: the specified timer has been stopped.
osErrorISR: osTimerStop cannot be called from interrupt service routines.
osErrorParameter: parameter timer_id is either NULL or invalid.
-
osErrorResource: the timer specified by parameter timer_id is not running (you can only stop a running timer).
+
osErrorResource: the timer is not running (you can only stop a running timer).
- Note
- This function cannot be called from Interrupt Service Routines.
Code Example
-
void Timer_Callback (void *arg);
+
void Timer_Callback (void *arg);
+
+
uint32_t exec;
-
uint32_t exec;
-
void TimerStop_example (void) {
-
-
osStatus_t status;
+
+
osStatus_t status;
-
exec = 1;
-
-
+
exec = 1U;
+
+
:
-
+
-
}
+
}
;
-
+
;
}
@@ -601,26 +601,26 @@ Returned by:
osOK: the specified timer has been deleted.
osErrorISR: osTimerDelete cannot be called from interrupt service routines.
osErrorParameter: parameter timer_id is either NULL or invalid.
-
osErrorResource: the timer specified by parameter timer_id is in an invalid timer state.
+
osErrorResource: the timer is in an invalid state.
- Note
- This function cannot be called from Interrupt Service Routines.
Code Example
-
-
void Timer_Callback (void *arg);
-
uint32_t exec;
-
+
void Timer_Callback (void *arg);
+
+
uint32_t exec;
+
void TimerDelete_example (void) {
-
-
osStatus_t status;
+
+
osStatus_t status;
-
exec = 1;
-
-
+
exec = 1U;
+
+
;
-
+
}
@@ -634,7 +634,7 @@ Returned by: