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

Header file for main.c. More...

#include <sys/alt_irq.h>
#include <stdio.h>
#include <stdint.h>
#include "includes.h"
#include "auxilaryFunctions.h"
#include "userInputTask.h"
#include "userOutputTask.h"
#include "heartbeatTask.h"
#include "hardwareAccess.h"
#include "switchesIRQhandler.h"
#include "keysIRQhandler.h"
#include "motorIRQhandler.h"
#include "debugAndErrorOutput.h"
#include "registerAccess.h"
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TASK_STACKSIZE   2048
 Definition of Task Stacks.
 
#define USER_INPUT_TASK_PRIORITY   5
 lower numbers mean higher priority More...
 
#define USER_OUTPUT_TASK_PRIORITY   6
 
#define HEARTBEAT_TASK_PRIORITY   7
 

Functions

int main (void)
 Main-Routine. More...
 

Variables

OS_STK UserInputTask_Stk [TASK_STACKSIZE]
 Stack for Task 1.
 
OS_STK UserOutputTask_Stk [TASK_STACKSIZE]
 Stack for Task 2.
 
OS_STK HeartbeatTask_Stk [TASK_STACKSIZE]
 Stack for Task 3.
 

Detailed Description

Header file for main.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 Kossmann

  • first draft for milestone 1b

v0.1.1 29.10.2014 Kossmann

  • introduced SOC2014_DEBUG

v0.1.2 30.10.2014 Kossmann

  • added debug and error handling header

v0.1.3 31.10.2014 Riedel & Kossmann

  • corrected misspelled heartbeatTask

v1.0.0 11.11.2014 Riedel & Kossmann

  • added INTERRUPT_ENABLE define to enable motor interrupt

v2.0.0 18.11.2014 Riedel & Kossmann

Definition in file main.h.

Macro Definition Documentation

#define HEARTBEAT_TASK_PRIORITY   7

Priority Task HeartbeatDebugTask

Definition at line 61 of file main.h.

#define USER_INPUT_TASK_PRIORITY   5

lower numbers mean higher priority

Definition of Task PrioritiesPriority Task UserInputTask

Definition at line 59 of file main.h.

#define USER_OUTPUT_TASK_PRIORITY   6

Priority Task UserOutputTask

Definition at line 60 of file main.h.

Function Documentation

int main ( void  )

Main-Routine.

Return values
Errorcode

Definition at line 42 of file main.c.

Here is the call graph for this function: