#include <stdlib.h>
#include "FreeRTOS.h"
#include "task.h"
#include "integer.h"
Macros | |
#define | intgCONST1 ( ( long ) 123 ) |
#define | intgCONST2 ( ( long ) 234567 ) |
#define | intgCONST3 ( ( long ) -3 ) |
#define | intgCONST4 ( ( long ) 7 ) |
#define | intgEXPECTED_ANSWER ( ( ( intgCONST1 + intgCONST2 ) * intgCONST3 ) / intgCONST4 ) |
#define | intgNUMBER_OF_TASKS ( 1 ) |
#define | intgSTACK_SIZE configMINIMAL_STACK_SIZE |
Functions | |
static | portTASK_FUNCTION (vCompeteingIntMathTask, pvParameters) |
static | portTASK_FUNCTION_PROTO (vCompeteingIntMathTask, pvParameters) |
void | vStartIntegerMathTasks (unsigned portBASE_TYPE uxPriority) |
portBASE_TYPE | xAreIntegerMathsTaskStillRunning (void) |
Variables | |
static volatile signed portBASE_TYPE | xTaskCheck [intgNUMBER_OF_TASKS] = { ( signed portBASE_TYPE ) pdFALSE } |
#define intgCONST1 ( ( long ) 123 ) |
Referenced by portTASK_FUNCTION().
#define intgCONST2 ( ( long ) 234567 ) |
Referenced by portTASK_FUNCTION().
#define intgCONST3 ( ( long ) -3 ) |
Referenced by portTASK_FUNCTION().
#define intgCONST4 ( ( long ) 7 ) |
Referenced by portTASK_FUNCTION().
#define intgEXPECTED_ANSWER ( ( ( intgCONST1 + intgCONST2 ) * intgCONST3 ) / intgCONST4 ) |
Referenced by portTASK_FUNCTION().
#define intgNUMBER_OF_TASKS ( 1 ) |
Referenced by vStartIntegerMathTasks(), and xAreIntegerMathsTaskStillRunning().
#define intgSTACK_SIZE configMINIMAL_STACK_SIZE |
Referenced by vStartIntegerMathTasks().
|
static |
References intgCONST1, intgCONST2, intgCONST3, intgCONST4, intgEXPECTED_ANSWER, pdFALSE, pdTRUE, and taskYIELD.
|
static |
void vStartIntegerMathTasks | ( | unsigned portBASE_TYPE | uxPriority | ) |
References intgNUMBER_OF_TASKS, intgSTACK_SIZE, NULL, xTaskCheck, and xTaskCreate.
portBASE_TYPE xAreIntegerMathsTaskStillRunning | ( | void | ) |
References intgNUMBER_OF_TASKS, pdFALSE, pdTRUE, and xTaskCheck.
|
static |
Referenced by vStartIntegerMathTasks(), and xAreIntegerMathsTaskStillRunning().