37 lines
549 B
C
37 lines
549 B
C
#ifndef __SW_DRV_H__
|
|
#define __SW_DRV_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "app_config.h"
|
|
#include "sw_drv_if.h"
|
|
|
|
#define SW_DRV_ERROR (-1)
|
|
#define SW_DRV_SUCCESS (0)
|
|
|
|
#if (DEF_SW_DRV_ENABLED)
|
|
|
|
int sw_init(void);
|
|
int sw_reset(void);
|
|
int sw_write(sw_t sw_mask);
|
|
int sw_read(sw_t *p_sw_mask);
|
|
int sw_count(uint32_t *p_sw_count);
|
|
|
|
#else
|
|
|
|
#define sw_init()
|
|
#define sw_reset()
|
|
#define sw_write(x)
|
|
#define sw_read(x)
|
|
#define sw_count(x)
|
|
|
|
#endif /* ! DEF_SW_DRV_ENABLED */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ! __SW_DRV_H__ */
|