wip
This commit is contained in:
@@ -27,8 +27,14 @@ struct stm32f4_pwm {
|
||||
};
|
||||
|
||||
|
||||
int stm32f4_pwm_open(struct stm32f4_pwm *pwm);
|
||||
int stm32f4_pwm_close(struct stm32f4_pwm *pwm);
|
||||
int stm32f4_pwm_set_duty_cycle(struct stm32f4_pwm *pwm, unsigned int duty_cycle_percent);
|
||||
int stm32f4_pwm_open(const void *pwm);
|
||||
int stm32f4_pwm_close(const void *pwm);
|
||||
int stm32f4_pwm_set_duty_cycle(const void *pwm, unsigned int duty_cycle_percent);
|
||||
|
||||
static const struct pwm_fp stm32f4_pwm_fp = {
|
||||
.open = stm32f4_pwm_open,
|
||||
.close = stm32f4_pwm_close,
|
||||
.set_duty_cycle = stm32f4_pwm_set_duty_cycle,
|
||||
};
|
||||
|
||||
#endif /* SOURCE_FIRMWARE_ARCH_STM32F4XX_DRIVER_INCLUDE_STM32F4_PWM_H_ */
|
||||
|
Reference in New Issue
Block a user