]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blob - pmsm-control/test_sw/misc.h
Attemp to solve bug. ADC channels association should be pwm1-ch0 pwm2-ch1 pwm3-ch2...
[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 #include <semaphore.h>
12
13 sem_t thd_par_sem; ///< semafor pro detekci zpracovani parametru noveho vlakna
14
15 /*
16  * struktura predana novym vlaknum
17  */
18 struct thread_param{
19         int sch_policy;
20         int sch_prior;
21 };
22
23 /**
24  * nastavi prioritu a scheduler podle parametru
25  * na konci vrati semafor
26  * \param pointer na struct thread_sched_param
27  */
28 extern void set_priority(void *);
29
30
31 #endif /* MISC_H_ */