Stepper-Motor-Control  v3.0.0
System on a Chip 2014 - Group 04
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
main.h
Go to the documentation of this file.
1 /**
2  *****************************************************************************
3  * @file main.h
4  * @author Michael Riedel
5  * @author Marc Kossmann
6  * @version v2.0.0
7  * @date 18.11.2014
8  * @brief Header file for main.c
9  * @details Contains defines, includes, typedefs and declarations needed
10  * for this task.
11  ****************************************************************************
12  * @par History:
13  * @details v0.1.0 22.10.2014 Kossmann
14  * - first draft for milestone 1b
15  * @details v0.1.1 29.10.2014 Kossmann
16  * - introduced SOC2014_DEBUG
17  * @details v0.1.2 30.10.2014 Kossmann
18  * - added debug and error handling header
19  * @details v0.1.3 31.10.2014 Riedel & Kossmann
20  * - corrected misspelled heartbeatTask
21  * @details v1.0.0 11.11.2014 Riedel & Kossmann
22  * - added INTERRUPT_ENABLE define to enable motor interrupt
23  * @details v2.0.0 18.11.2014 Riedel & Kossmann
24  * - moved INTERRUPT_ENABLE to userInputTask.h
25  ****************************************************************************
26  */
27 
28 #ifndef __MAIN_H__
29 #define __MAIN_H__
30 
31 #include <sys/alt_irq.h>
32 #include <stdio.h>
33 #include <stdint.h>
34 #include "includes.h"
35 #include "auxilaryFunctions.h"
36 #include "userInputTask.h"
37 #include "userOutputTask.h"
38 #include "heartbeatTask.h"
39 #include "hardwareAccess.h"
40 #include "switchesIRQhandler.h"
41 #include "keysIRQhandler.h"
42 #include "motorIRQhandler.h"
43 #include "debugAndErrorOutput.h"
44 #include "registerAccess.h"
45 
46 /** @brief Definition of Task Stacks */
47 #define TASK_STACKSIZE 2048
48 
49 /** @brief Stack for Task 1 */
51 /** @brief Stack for Task 2 */
53 /** @brief Stack for Task 3 */
55 
56 /** @par Definition of Task Priorities
57  * @brief lower numbers mean higher priority
58  */
59 #define USER_INPUT_TASK_PRIORITY 5 /*!< Priority Task UserInputTask */
60 #define USER_OUTPUT_TASK_PRIORITY 6 /*!< Priority Task UserOutputTask */
61 #define HEARTBEAT_TASK_PRIORITY 7 /*!< Priority Task HeartbeatDebugTask */
62 
63 /**
64  * @brief Main-Routine
65  * @details
66  * @retval Errorcode
67  */
68 int main(void);
69 
70 #endif // __MAIN_H__
OS_STK UserInputTask_Stk[TASK_STACKSIZE]
Stack for Task 1.
Definition: main.h:50
Header file for auxilaryFunctions.c.
Header file for motorIRQhandler.c.
Functions for accessing hardware connected through pio´s and registers.
Header file for userInputTask.c.
Header file for heartbeatTask.c.
OS_STK UserOutputTask_Stk[TASK_STACKSIZE]
Stack for Task 2.
Definition: main.h:52
Header for IRQ-Handler for switches.
Header file for userOutputTask.c.
int main(void)
Main-Routine.
Definition: main.c:42
Header file for keysIRQhandler.c.
Header file with inline functions to access the registers that are used by the Stepper-Motor-Control ...
OS_STK HeartbeatTask_Stk[TASK_STACKSIZE]
Stack for Task 3.
Definition: main.h:54
#define TASK_STACKSIZE
Definition of Task Stacks.
Definition: main.h:47
Defines for Error and Debug-Output Management.