Atmel Software Framework

semtest.c File Reference
#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "semtest.h"

Data Structures

struct  SEMAPHORE_PARAMETERS
 

Macros

#define semtstBLOCKING_EXPECTED_VALUE   ( ( unsigned long ) 0xfff )
 
#define semtstDELAY_FACTOR   ( ( portTickType ) 10 )
 
#define semtstNON_BLOCKING_EXPECTED_VALUE   ( ( unsigned long ) 0xff )
 
#define semtstNUM_TASKS   ( 4 )
 
#define semtstSTACK_SIZE   configMINIMAL_STACK_SIZE
 

Typedefs

typedef struct SEMAPHORE_PARAMETERS xSemaphoreParameters
 

Functions

static portTASK_FUNCTION (prvSemaphoreTest, pvParameters)
 
static portTASK_FUNCTION_PROTO (prvSemaphoreTest, pvParameters)
 
void vStartSemaphoreTasks (unsigned portBASE_TYPE uxPriority)
 
portBASE_TYPE xAreSemaphoreTasksStillRunning (void)
 

Variables

static volatile short sCheckVariables [semtstNUM_TASKS] = { 0 }
 
static volatile short sNextCheckVariable = 0
 

#define semtstBLOCKING_EXPECTED_VALUE   ( ( unsigned long ) 0xfff )
#define semtstDELAY_FACTOR   ( ( portTickType ) 10 )

Referenced by portTASK_FUNCTION().

#define semtstNON_BLOCKING_EXPECTED_VALUE   ( ( unsigned long ) 0xff )
#define semtstNUM_TASKS   ( 4 )
#define semtstSTACK_SIZE   configMINIMAL_STACK_SIZE

Referenced by vStartSemaphoreTasks().

static portTASK_FUNCTION_PROTO ( prvSemaphoreTest  ,
pvParameters   
)
static
portBASE_TYPE xAreSemaphoreTasksStillRunning ( void  )

volatile short sCheckVariables[semtstNUM_TASKS] = { 0 }
static
volatile short sNextCheckVariable = 0
static

Referenced by portTASK_FUNCTION().