42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
65#define POWERRESET_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.sta= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
67 cfg.rst= MIKROBUS( mikrobus, MIKROBUS_INT );
74#define POWERRESET_RETVAL uint8_t
75#define powerreset_state_t uint8_t
77#define POWERRESET_OK 0x00
78#define POWERRESET_INIT_ERROR 0xFF
85#define POWERRESET_ACTIVE 1
86#define POWERRESET_INACTIVE 0
#define POWERRESET_RETVAL
Definition powerreset.h:74
#define powerreset_state_t
Definition powerreset.h:75
powerreset_state_t powerreset_get_pwr(powerreset_t *ctx)
Power Check function.
void powerreset_cfg_setup(powerreset_cfg_t *cfg)
Config Object Initialization function.
powerreset_state_t powerreset_get_rst(powerreset_t *ctx)
Reset Check function.
POWERRESET_RETVAL powerreset_init(powerreset_t *ctx, powerreset_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition powerreset.h:112
pin_name_t sta
Definition powerreset.h:115
pin_name_t rst
Definition powerreset.h:116
Click ctx object definition.
Definition powerreset.h:100
digital_in_t sta
Definition powerreset.h:103
digital_in_t rst
Definition powerreset.h:104