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__Wait.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'docs/RTOS2/html/group__CMSIS__RTOS__Wait.html') diff --git a/docs/RTOS2/html/group__CMSIS__RTOS__Wait.html b/docs/RTOS2/html/group__CMSIS__RTOS__Wait.html index e9cd3e5..2c678e1 100644 --- a/docs/RTOS2/html/group__CMSIS__RTOS__Wait.html +++ b/docs/RTOS2/html/group__CMSIS__RTOS__Wait.html @@ -161,12 +161,12 @@ Functions

Code Example

#include "cmsis_os2.h"
-
void Thread_1 (void *arg) { // Thread function
-
osStatus_t status; // capture the return status
-
uint32_t delayTime; // delay time in milliseconds
+
void Thread_1 (void *arg) { // Thread function
+
osStatus_t status; // capture the return status
+
uint32_t delayTime; // delay time in milliseconds
-
delayTime = 1000; // delay 1 second
-
status = osDelay (delayTime); // suspend thread execution
+
delayTime = 1000U; // delay 1 second
+
status = osDelay(delayTime); // suspend thread execution
}
@@ -204,12 +204,12 @@ Functions

Code Example

#include "cmsis_os2.h"
-
void Thread_1 (void *arg) { // Thread function
+
void Thread_1 (void *arg) { // Thread function
uint32_t tick;
-
-
tick = osKernelGetTickCount(); // retrieve the number of system ticks
+
+
tick = osKernelGetTickCount(); // retrieve the number of system ticks
for (;;) {
-
tick += 1000; // delay 1000 ticks periodically
+
tick += 1000U; // delay 1000 ticks periodically
osDelayUntil(tick);
// ...
}
@@ -222,7 +222,7 @@ Functions