TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
pwm_max6639.c File Reference
Include dependency graph for pwm_max6639.c:

Data Structures

struct  max6639_pwm_config

Macros

#define DT_DRV_COMPAT   maxim_max6639_pwm
#define MAX6639_PWM_INIT(inst)

Functions

 LOG_MODULE_REGISTER (max6639_pwm, CONFIG_PWM_LOG_LEVEL)
static int max6639_pwm_set_cycles (const struct device *dev, uint32_t channel, uint32_t period_count, uint32_t pulse_count, pwm_flags_t flags)
static int max6639_pwm_get_cycles_per_sec (const struct device *dev, uint32_t channel, uint64_t *cycles)
static int max6639_pwm_init (const struct device *dev)
static DEVICE_API (pwm, max6639_pwm_api)
 DT_INST_FOREACH_STATUS_OKAY (MAX6639_PWM_INIT)

Macro Definition Documentation

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   maxim_max6639_pwm

◆ MAX6639_PWM_INIT

#define MAX6639_PWM_INIT ( inst)
Value:
static const struct max6639_pwm_config max6639_pwm_##inst##_config = { \
}; \
\
DEVICE_DT_INST_DEFINE(inst, max6639_pwm_init, NULL, NULL, &max6639_pwm_##inst##_config, \
POST_KERNEL, CONFIG_PWM_MAX6639_INIT_PRIORITY, &max6639_pwm_api);
#define NULL
Definition avs.c:45
#define DT_INST_PARENT(inst)
#define I2C_DT_SPEC_GET(node_id)
static int max6639_pwm_init(const struct device *dev)
Definition pwm_max6639.c:97
Definition pwm_max6639.c:20

Function Documentation

◆ DEVICE_API()

DEVICE_API ( pwm ,
max6639_pwm_api  )
static

◆ DT_INST_FOREACH_STATUS_OKAY()

DT_INST_FOREACH_STATUS_OKAY ( MAX6639_PWM_INIT )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( max6639_pwm ,
CONFIG_PWM_LOG_LEVEL  )

◆ max6639_pwm_get_cycles_per_sec()

int max6639_pwm_get_cycles_per_sec ( const struct device * dev,
uint32_t channel,
uint64_t * cycles )
static

◆ max6639_pwm_init()

int max6639_pwm_init ( const struct device * dev)
static

◆ max6639_pwm_set_cycles()

int max6639_pwm_set_cycles ( const struct device * dev,
uint32_t channel,
uint32_t period_count,
uint32_t pulse_count,
pwm_flags_t flags )
static