]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blob - pmsm-control/test_sw/misc.h
Setters made inline.
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / misc.h
1 /**
2  * \brief Interface pro pomocne funkce.
3  * \file misc.h
4  * \date Feb 1, 2015
5  * \author Martin Prudek
6  */
7
8 #ifndef MISC_H_
9 #define MISC_H_
10
11 #ifndef NULL
12 #define NULL (void*)0
13 #endif /*NULL*/
14
15 /**
16  * \brief
17  * Setup initial environment.
18  */
19 void setup_environment();
20
21 /**
22  * \brief
23  * Extern handler for signal termination.
24  * Deklarovana jako 'extern', protoze ji pouzivaji funkce v misc.c,
25  *      deklarovana je ale jinde. Vetsinou v main file.
26  */
27 extern void appl_stop();
28
29 /**
30  * \brief
31  * Create RT capable thread.
32  */
33 int create_rt_task(pthread_t *thread, int prio, void *(*start_routine) (void *), void *arg);
34
35 #endif /* MISC_H_ */