Stepper-Motor-Control  v3.0.0
System on a Chip 2014 - Group 04
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
userInputTask.c File Reference

Source code for User-Input-Task which is highest instance, reacts to user input and controls register and hardware access. More...

Include dependency graph for userInputTask.c:

Go to the source code of this file.

Functions

void UserInputTask (void *pdata)
 UserInputTask. More...
 
void hardwareTest (void)
 Tests hardware. More...
 

Variables

OS_FLAG_GRP * userInputTaskFlagsGrp
 The flags group used in the user-input-task. More...
 
OS_FLAG_GRP * heartbeatTaskFlagsGrp
 The flags group used in the heartbeat-task and user-input-task. More...
 
OS_FLAG_GRP * userOutputTaskFlagsGrp
 The flags group used in the user-output-task. More...
 

Detailed Description

Source code for User-Input-Task which is highest instance, reacts to user input and controls register and hardware access.

Author
Michael Riedel
Marc Kossmann
Version
v2.0.0
Date
18.11.2014
History:

v0.1.0 22.10.2014 Kossmann

  • first draft for milestone 1b

v0.1.1 30.10.2014 Kossmann

  • added error handling for flags and mailboxes
  • changed IPC with switches ISR to message queue

v0.1.2 30.10.2014 Riedel

  • changed DEBUG_ON_FLAG to DEBUG_ON_EVENT

v0.1.3 31.10.2014 Riedel & Kossmann

  • moved hardwareTest() and initial printouts into userInputTask because the need OS running

v0.1.4 03.11.2014 Kossmann

v0.1.5 04.11.2014 Riedel & Kossmann

  • reduced messageQueue size to 1

v0.1.6 04.11.2014 Kossmann

  • used the right masks for evaluating switches

v0.1.7 06.11.2014 Riedel

  • added usage of new LCD-functions

v0.1.8 07.11.2014 Riedel & Kossmann

  • added DEBUG_OFF_EVENT for turning debug on heartbeatTask off

v1.0.0 11.11.2014 Riedel & Kossmann

  • replaced messageQueue with SW_UPDATE_EVENT
  • moved PIO_SW_GetValues() in InputTask
  • moved 1 second wait from userOutputTask

v1.0.1 13.11.2014 Kossmann

  • removed OutputTaskMailbox and using global var instead

v1.0.2 14.11.2014 Kossmann

  • removed registerMutex because no longer needed with real registers
  • moved init IPC global var to main

v2.0.0 18.11.2014 Riedel & Kossmann

  • removed unnecessary wait
  • added flag posting for GLOB_VAR_UPDATE
    See also
    events.h
  • verified functionality -> release MS2

Definition in file userInputTask.c.

Function Documentation

void hardwareTest ( void  )

Tests hardware.

A functions for just test some hardware features. Has no needed functionality for any Milestone

Return values
None

Definition at line 223 of file userInputTask.c.

Here is the call graph for this function:

void UserInputTask ( void *  pdata)

UserInputTask.

This task is the control instance for the whole system. All register access is done in this Task. It reacts to user input, sets needed flags and delivers needed informatino to other tasks.

Parameters
pdata: Pointer to parameter structure (not used)
Return values
None

Definition at line 55 of file userInputTask.c.

Here is the call graph for this function:

Variable Documentation

OS_FLAG_GRP* heartbeatTaskFlagsGrp

The flags group used in the heartbeat-task and user-input-task.

This group contains the debug-event that can be triggered via sw_9.

Definition at line 42 of file events.h.

OS_FLAG_GRP* userInputTaskFlagsGrp

The flags group used in the user-input-task.

This group contains all possibly events, which can be triggered by the user.

Definition at line 32 of file events.h.

OS_FLAG_GRP* userOutputTaskFlagsGrp

The flags group used in the user-output-task.

This group contains all possibly events.

Definition at line 51 of file events.h.