29typedef volatile struct __attribute__((packed,aligned(4))) {
30 uint32_t CHANNEL_CFG[16];
34#define NEORV32_PWM ((neorv32_pwm_t*) (NEORV32_PWM_BASE))
int neorv32_pmw_get_num_channels(void)
Definition neorv32_pwm.c:43
void neorv32_pwm_ch_set_duty(int channel, int duty)
Definition neorv32_pwm.c:108
void neorv32_pwm_ch_set_clock(int channel, int prsc, int cdiv)
Definition neorv32_pwm.c:90
void neorv32_pwm_ch_disable(int channel)
Definition neorv32_pwm.c:75
CHANNEL_CFG_enum
Definition neorv32_pwm.h:37
@ PWM_CFG_EN
Definition neorv32_pwm.h:45
@ PWM_CFG_CDIV_MSB
Definition neorv32_pwm.h:41
@ PWM_CFG_DUTY_LSB
Definition neorv32_pwm.h:38
@ PWM_CFG_PRSC_MSB
Definition neorv32_pwm.h:44
@ PWM_CFG_CDIV_LSB
Definition neorv32_pwm.h:40
@ PWM_CFG_PRSC_LSB
Definition neorv32_pwm.h:43
@ PWM_CFG_DUTY_MSB
Definition neorv32_pwm.h:39
void neorv32_pwm_ch_enable(int channel)
Definition neorv32_pwm.c:62
int neorv32_pwm_available(void)
Definition neorv32_pwm.c:26
Definition neorv32_pwm.h:29