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

Header file for userInputTask.c. More...

#include <sys/alt_irq.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include "includes.h"
#include "events.h"
#include "hardwareAccess.h"
#include "registerAccess.h"
#include "dataTypes.h"
#include "auxilaryFunctions.h"
#include "debugAndErrorOutput.h"
Include dependency graph for userInputTask.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INTERRUPT_ENABLE
 global interrupts are enabled
 
#define CTRL_REG_0_6_MSK   (0b01111111)
 Bits 0..6 in ctrlReg.
 

Functions

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

Detailed Description

Header file for userInputTask.c.

Author
Michael Riedel
Marc Kossmann
Version
v2.0.0
Date
18.11.2014

Contains defines, includes, typedefs and declarations needed for this task.

History:

v0.1.0 22.10.2014 Riedel & Kossmann

  • first draft for milestone 1b

v0.1.1 27.10.2014 Riedel

  • moved events to events.h for better handling

v0.1.2 30.10.2014 Kossmann

v0.1.3 30.10.2014 Kossmann

  • added debug and error handling header

v0.1.4 30.10.2014 Riedel

  • cleaned includes

v0.1.5 31.10.2014 Riedel & Kossmann

v1.0.0 03.11.2014 Kossmann

v1.0.1 13.11.2014 Kossmann

v1.0.2 14.11.2014 Riedel & Kossmann

v2.0.0 18.11.2014 Riedel & Kossmann

  • removed define for register mutex for real register_interface
  • verified functionality -> release MS2

Definition in file userInputTask.h.

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: