no-OS
drivers
platform
maxim
max32655
maxim_pwm.h
Go to the documentation of this file.
1
/***************************************************************************/
39
#ifndef MAXIM_PWM_H_
40
#define MAXIM_PWM_H_
41
42
#include "tmr.h"
43
#include "
no_os_pwm.h
"
44
#include "
no_os_util.h
"
45
46
#define MAX_PWM_TMR_MAX_VAL NO_OS_GENMASK(15, 0)
47
#define MAX_PWM_PRESCALER_VAL(n) ((n - 1) * 16)
48
#define MAX_PWM_PRESCALER_TRUE(n) NO_OS_BIT((n) / 16)
49
#define MAX_PWM_GET_PRESCALER(n) NO_OS_BIT((n) - 1)
50
51
struct
max_pwm_init_param
{
52
mxc_gpio_vssel_t
vssel
;
53
};
54
55
struct
max_pwm_extra
{
56
mxc_gpio_vssel_t
vssel
;
57
mxc_tmr_cfg_t
tmr_cfg
;
58
};
59
63
extern
const
struct
no_os_pwm_platform_ops
max_pwm_ops
;
64
65
#endif // MAXIM_PWM_H_
max_pwm_extra::tmr_cfg
mxc_tmr_cfg_t tmr_cfg
Definition:
maxim_pwm.h:57
max_pwm_ops
const struct no_os_pwm_platform_ops max_pwm_ops
Maxim specific PWM ops.
Definition:
maxim_pwm.c:311
no_os_pwm_platform_ops
Structure holding PWM function pointers that point to the platform specific function.
Definition:
no_os_pwm.h:131
no_os_pwm.h
Header file of PWM Interface.
max_pwm_extra::vssel
mxc_gpio_vssel_t vssel
Definition:
maxim_pwm.h:56
max_pwm_init_param::vssel
mxc_gpio_vssel_t vssel
Definition:
maxim_pwm.h:52
max_pwm_init_param
Definition:
maxim_pwm.h:51
no_os_util.h
Header file of utility functions.
max_pwm_extra
Definition:
maxim_pwm.h:55
Generated by
1.8.17