![]() |
CMSIS-RTOS Validation
Version 1.0
RTOS Validation
|
#include <string.h>
#include "RV_Framework.h"
#include "cmsis_rv.h"
#include "cmsis_os.h"
Macros | |
#define | TEST_THREAD_CNT 5 |
Functions | |
static void | Th_TestSemaphore (void const *arg) |
osThreadDef (Th_TestSemaphore, osPriorityNormal, TEST_THREAD_CNT, 0) | |
osSemaphoreDef (Sem_TestZero) | |
osSemaphoreDef (Sem_TestMax) | |
osSemaphoreDef (Sem_TestPool) | |
osSemaphoreDef (Sem_TestBin) | |
osSemaphoreDef (Sem_TestMul) | |
osSemaphoreDef (Sem_TestZeroCount) | |
osSemaphoreDef (Sem_TestWait) | |
static void | Th_SemaphoreWait (void const *arg) |
osThreadDef (Th_SemaphoreWait, osPriorityBelowNormal, 1, 0) | |
osSemaphoreDef (Sem_ISR) | |
void | Semaphore_IRQHandler (void) |
void | TC_SemaphoreCreateAndDelete (void) |
Test case: TC_SemaphoreCreateAndDelete. | |
void | TC_SemaphoreObtainCounting (void) |
Test case: TC_SemaphoreObtainCounting. | |
void | TC_SemaphoreObtainBinary (void) |
Test case: TC_SemaphoreObtainBinary. | |
void | TC_SemaphoreWaitForBinary (void) |
Test case: TC_SemaphoreWaitForBinary. | |
void | TC_SemaphoreWaitForCounting (void) |
Test case: TC_SemaphoreWaitForCounting. | |
void | TC_SemaphoreZeroCount (void) |
Test case: TC_SemaphoreZeroCount. | |
void | TC_SemaphoreWaitTimeout (void) |
Test case: TC_SemaphoreWaitTimeout. | |
void | TC_SemParam (void) |
Test case: TC_SemParam. | |
void | TC_SemInterrupts (void) |
Test case: TC_SemInterrupts. | |
Variables | |
osThreadId | G_Semaphore_ThreadId |
osSemaphoreId | G_SemaphoreId |
volatile uint32_t | Var_ThreadStatus [TEST_THREAD_CNT] |
osSemaphoreId | SemId_Isr |
osStatus | SemSt_Isr |
int32_t | NumTokens_Isr |
#define TEST_THREAD_CNT 5 |
osSemaphoreDef | ( | Sem_TestZero | ) |
osSemaphoreDef | ( | Sem_TestMax | ) |
osSemaphoreDef | ( | Sem_TestPool | ) |
osSemaphoreDef | ( | Sem_TestBin | ) |
osSemaphoreDef | ( | Sem_TestMul | ) |
osSemaphoreDef | ( | Sem_TestZeroCount | ) |
osSemaphoreDef | ( | Sem_TestWait | ) |
osSemaphoreDef | ( | Sem_ISR | ) |
osThreadDef | ( | Th_TestSemaphore | , |
osPriorityNormal | , | ||
TEST_THREAD_CNT | , | ||
0 | |||
) |
osThreadDef | ( | Th_SemaphoreWait | , |
osPriorityBelowNormal | , | ||
1 | , | ||
0 | |||
) |
void Semaphore_IRQHandler | ( | void | ) |
|
static |
|
static |
osThreadId G_Semaphore_ThreadId |
osSemaphoreId G_SemaphoreId |
int32_t NumTokens_Isr |
osSemaphoreId SemId_Isr |
osStatus SemSt_Isr |
volatile uint32_t Var_ThreadStatus[TEST_THREAD_CNT] |