![]() |
TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
|
#include <zephyr/device.h>#include <zephyr/drivers/i2c.h>#include <zephyr/drivers/mfd/max6639.h>#include <zephyr/drivers/pwm.h>#include <zephyr/sys/byteorder.h>#include <zephyr/sys/util.h>#include <zephyr/kernel.h>#include <zephyr/logging/log.h>
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) | |
| #define DT_DRV_COMPAT maxim_max6639_pwm |
| #define MAX6639_PWM_INIT | ( | inst | ) |
|
static |
| DT_INST_FOREACH_STATUS_OKAY | ( | MAX6639_PWM_INIT | ) |
| LOG_MODULE_REGISTER | ( | max6639_pwm | , |
| CONFIG_PWM_LOG_LEVEL | ) |
|
static |
|
static |
|
static |