]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - rpp/include/drv/hout.h
Add missing file to the release zip
[pes-rpp/rpp-lib.git] / rpp / include / drv / hout.h
1 /**
2  *
3  * @file hout.h
4  *
5  * @copyright Copyright (C) 2012-2013 Czech Technical University in Prague
6  *
7  * @author Michal Horn <hornmich@fel.cvut.cz>
8  */
9
10 #ifndef HOUT_H_
11 #define HOUT_H_
12
13 //#include "ti_drv_het.h"
14 //#include "hal_port_def.h"
15 //#include "FreeRTOS.h"
16 //#include "os_task.h"
17 //#include "hal_gpio_tms570.h"
18 #include "drv/drv.h"
19
20 #define HOUT_FAILED     1
21 #define HOUT_NOT_ON     2
22 #define HOUT_OK         0
23
24 void hout_pwm_set_signal(uint8_t hout_id, double period, uint32_t duty);
25 int hout_pwm_start(uint8_t hout_id);
26 void hout_pwm_stop(uint8_t hout_id);
27 uint32_t hout_pwm_get_duty(uint8_t hout_id);
28 double hout_pwm_get_period(uint8_t hout_id);
29 int hout_fail(uint8_t hout_id);
30
31
32 #endif /* HOUT_H_ */