21 #ifndef LIBBSP_ARM_BEAGLE_BBB_PWM_H 22 #define LIBBSP_ARM_BEAGLE_BBB_PWM_H 31 #define BBB_CONTROL_CONF_GPMC_AD(n) (0x800 + (n * 4)) 32 #define BBB_CONTROL_CONF_LCD_DATA(n) (0x8a0 + (n * 4)) 61 #define BBB_P8_13_MUX_PWM 4 62 #define BBB_P8_19_MUX_PWM 4 63 #define BBB_P8_45_MUX_PWM 3 64 #define BBB_P8_46_MUX_PWM 3 65 #define BBB_P8_34_MUX_PWM 2 66 #define BBB_P8_36_MUX_PWM 2 67 #define BBB_P9_14_MUX_PWM 6 68 #define BBB_P9_16_MUX_PWM 6 69 #define BBB_P9_21_MUX_PWM 3 70 #define BBB_P9_22_MUX_PWM 3 71 #define BBB_P9_29_MUX_PWM 1 72 #define BBB_P9_31_MUX_PWM 1 73 #define BBB_PWM_FREQ_THRESHOLD 0.5f 123 int beagle_pwm_configure(BBB_PWMSS pwm_id,
float pwm_freq,
float duty_a,
float duty_b);
BBB_PWMSS
The set of possible PWM subsystem module.
Definition: bbb-pwm.h:39
bool beagle_pwm_pinmux_setup(bbb_pwm_pin_t pin_no, BBB_PWMSS pwm_id)
This function enables pinmuxing for PWM module.
bool beagle_pwm_disable(BBB_PWMSS pwmid)
This API disables 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_enable(BBB_PWMSS pwmid)
This API enables the particular PWM module.
bool beagle_pwm_init(BBB_PWMSS pwmss_id)
BeagleBone Black PWM API.