dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_pwm_priv.h
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 
30 #ifndef PIOS_PWM_PRIV_H
31 #define PIOS_PWM_PRIV_H
32 
33 #include <pios.h>
34 #include <pios_stm32.h>
35 
36 #include <pios_tim_priv.h>
37 
38 struct pios_pwm_cfg {
39  TIM_ICInitTypeDef tim_ic_init;
40  const struct pios_tim_channel * channels;
41  uint8_t num_channels;
42 };
43 
44 extern const struct pios_rcvr_driver pios_pwm_rcvr_driver;
45 
46 extern int32_t PIOS_PWM_Init(uintptr_t * pwm_id, const struct pios_pwm_cfg * cfg);
47 
48 #endif /* PIOS_PWM_PRIV_H */
49 
Types that are specific to the STM32 peripherals.
int32_t PIOS_PWM_Init(uintptr_t *pwm_id, const struct pios_pwm_cfg *cfg)
const struct pios_rcvr_driver pios_pwm_rcvr_driver
Main PiOS header to include all the compiled in PiOS options.
TIM_ICInitTypeDef tim_ic_init
Definition: pios_pwm_priv.h:39
static struct flyingpicmd_cfg_fa cfg
Definition: main.c:49
const struct pios_tim_channel * channels
Definition: pios_pwm_priv.h:40
uint8_t num_channels
Definition: pios_pwm_priv.h:41