31 lines
485 B
C
31 lines
485 B
C
#pragma once
|
|
#ifndef __SW_DRV_H__
|
|
#define __SW_DRV_H__
|
|
|
|
#include <stdlib.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 */
|
|
|
|
#endif // !__MUX_DRV_H__
|