Data Structures | |
struct | COUNT_SEM_STRUCT |
Macros | |
#define | countDONT_BLOCK ( 0 ) |
#define | countMAX_COUNT_VALUE ( 200 ) |
#define | countNUM_TEST_TASKS ( 2 ) |
#define | countSTART_AT_MAX_COUNT ( 0xaa ) |
#define | countSTART_AT_ZERO ( 0x55 ) |
Typedefs | |
typedef struct COUNT_SEM_STRUCT | xCountSemStruct |
Functions | |
static void | prvCountingSemaphoreTask (void *pvParameters) |
static void | prvDecrementSemaphoreCount (xSemaphoreHandle xSemaphore, unsigned portBASE_TYPE *puxLoopCounter) |
static void | prvIncrementSemaphoreCount (xSemaphoreHandle xSemaphore, unsigned portBASE_TYPE *puxLoopCounter) |
void | vStartCountingSemaphoreTasks (void) |
portBASE_TYPE | xAreCountingSemaphoreTasksStillRunning (void) |
Variables | |
static volatile portBASE_TYPE | xErrorDetected = pdFALSE |
static volatile xCountSemStruct | xParameters [countNUM_TEST_TASKS] |
#define countDONT_BLOCK ( 0 ) |
Referenced by prvDecrementSemaphoreCount(), and prvIncrementSemaphoreCount().
#define countMAX_COUNT_VALUE ( 200 ) |
Referenced by prvDecrementSemaphoreCount(), prvIncrementSemaphoreCount(), and vStartCountingSemaphoreTasks().
#define countNUM_TEST_TASKS ( 2 ) |
#define countSTART_AT_MAX_COUNT ( 0xaa ) |
Referenced by prvCountingSemaphoreTask(), and vStartCountingSemaphoreTasks().
#define countSTART_AT_ZERO ( 0x55 ) |
typedef struct COUNT_SEM_STRUCT xCountSemStruct |
|
static |
References countSTART_AT_MAX_COUNT, pdPASS, pdTRUE, prvDecrementSemaphoreCount(), prvIncrementSemaphoreCount(), COUNT_SEM_STRUCT::uxExpectedStartCount, COUNT_SEM_STRUCT::uxLoopCounter, vPrintDisplayMessage(), xErrorDetected, COUNT_SEM_STRUCT::xSemaphore, and xSemaphoreTake.
Referenced by vStartCountingSemaphoreTasks().
|
static |
References countDONT_BLOCK, countMAX_COUNT_VALUE, pdPASS, pdTRUE, taskYIELD, xErrorDetected, xSemaphoreGive, and xSemaphoreTake.
Referenced by prvCountingSemaphoreTask().
|
static |
References countDONT_BLOCK, countMAX_COUNT_VALUE, pdPASS, pdTRUE, taskYIELD, xErrorDetected, xSemaphoreGive, and xSemaphoreTake.
Referenced by prvCountingSemaphoreTask().
void vStartCountingSemaphoreTasks | ( | void | ) |
portBASE_TYPE xAreCountingSemaphoreTasksStillRunning | ( | void | ) |
References pdFAIL, pdFALSE, pdPASS, COUNT_SEM_STRUCT::uxLoopCounter, and xErrorDetected.
|
static |
|
static |