42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
66#define LEDDRIVER2_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM );
74#define LEDDRIVER2_RETVAL uint8_t
76#define LEDDRIVER2_OK 0x00
77#define LEDDRIVER2_INIT_ERROR 0xFF
84#define LEDDRIVER2_DEF_FREQ 2000
#define LEDDRIVER2_RETVAL
Definition leddriver2.h:74
void leddriver2_set_duty_cycle(leddriver2_t *ctx, float duty_cycle)
Generic sets PWM duty cycle.
void leddriver2_cfg_setup(leddriver2_cfg_t *cfg)
Config Object Initialization function.
void leddriver2_pwm_stop(leddriver2_t *ctx)
Stop PWM module.
void leddriver2_pwm_start(leddriver2_t *ctx)
Start PWM module.
LEDDRIVER2_RETVAL leddriver2_init(leddriver2_t *ctx, leddriver2_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition leddriver2.h:114
uint32_t dev_pwm_freq
Definition leddriver2.h:121
pin_name_t pwm
Definition leddriver2.h:117
Click ctx object definition.
Definition leddriver2.h:98
uint32_t pwm_freq
Definition leddriver2.h:106
pwm_t pwm
Definition leddriver2.h:102