41#ifndef LIBBSP_ARM_BEAGLE_BBB_PWM_H
42#define LIBBSP_ARM_BEAGLE_BBB_PWM_H
51#define BBB_CONTROL_CONF_GPMC_AD(n) (0x800 + (n * 4))
52#define BBB_CONTROL_CONF_LCD_DATA(n) (0x8a0 + (n * 4))
70#define BBB_P8_13_MUX_PWM 4
71#define BBB_P8_19_MUX_PWM 4
72#define BBB_P8_45_MUX_PWM 3
73#define BBB_P8_46_MUX_PWM 3
74#define BBB_P8_34_MUX_PWM 2
75#define BBB_P8_36_MUX_PWM 2
76#define BBB_P9_14_MUX_PWM 6
77#define BBB_P9_16_MUX_PWM 6
78#define BBB_P9_21_MUX_PWM 3
79#define BBB_P9_22_MUX_PWM 3
80#define BBB_P9_29_MUX_PWM 1
81#define BBB_P9_31_MUX_PWM 1
82#define BBB_PWM_FREQ_THRESHOLD 0.5f
132int beagle_pwm_configure(
BBB_PWMSS pwm_id,
float pwm_freq,
float duty_a,
float duty_b);
bool beagle_pwm_disable(BBB_PWMSS pwmid)
This API disables the particular PWM module.
bool beagle_pwm_enable(BBB_PWMSS pwmid)
This API enables the particular PWM module.
bool beagle_pwmss_is_running(unsigned int pwmss_id)
This function determines whether PWMSS-wide clocks enabled or not.
bool beagle_pwm_init(BBB_PWMSS pwmss_id)
BeagleBone Black PWM API.
bool beagle_pwm_pinmux_setup(bbb_pwm_pin_t pin_no, BBB_PWMSS pwm_id)
This function enables pinmuxing for PWM module.
BBB_PWMSS
The set of possible PWM subsystem module.
Definition: pwmss.h:58