39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
73#define VREG2_DEF_FREQ 5000
91#define VREG2_MAP_MIKROBUS( cfg, mikrobus ) \
92 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM );
err_t vreg2_pwm_start(vreg2_t *ctx)
VREG 2 start PWM module.
err_t vreg2_default_cfg(vreg2_t *ctx)
VREG 2 default configuration function.
void vreg2_cfg_setup(vreg2_cfg_t *cfg)
VREG 2 configuration object setup function.
err_t vreg2_pwm_stop(vreg2_t *ctx)
VREG 2 stop PWM module.
err_t vreg2_init(vreg2_t *ctx, vreg2_cfg_t *cfg)
VREG 2 initialization function.
err_t vreg2_set_duty_cycle(vreg2_t *ctx, float duty_cycle)
VREG 2 sets PWM duty cycle.
VREG 2 Click configuration object.
Definition vreg2.h:116
uint32_t dev_pwm_freq
Definition vreg2.h:121
pin_name_t pwm
Definition vreg2.h:118
VREG 2 Click context object.
Definition vreg2.h:102
uint32_t pwm_freq
Definition vreg2.h:107
pwm_t pwm
Definition vreg2.h:104
vreg2_return_value_t
VREG 2 Click return value data.
Definition vreg2.h:130
@ VREG2_ERROR
Definition vreg2.h:132
@ VREG2_OK
Definition vreg2.h:131