18#ifndef __HAL_DRIVER_BL61X_HW_IO_H__
19#define __HAL_DRIVER_BL61X_HW_IO_H__
25#if VSF_HAL_USE_IO == ENABLED
27#include "../../__device.h"
32#define VSF_IO_REIMPLEMENT_FEATURE ENABLED
34#define __BL61X_IO_IS_VAILID_PIN(__P) \
35 (((__P & VSF_HW_IO_PIN_MASK) != 0) && \
36 ((__P & ~VSF_HW_IO_PIN_MASK) == 0))
38#define __BL61X_IO_IS_VAILID_FEATURE(__F) \
39 ((__F & ~(uint32_t)__VSF_HW_IO_FEATURE_ALL_BITS) == 0)
55 | GPIO_SMT_MASK | GPIO_DRV_MASK,
64#define VSF_IO_CFG_DEC_PREFIX vsf_hw
65#define VSF_IO_CFG_DEC_UPCASE_PREFIX VSF_HW
66#include "hal/driver/common/io/io_template.h"
vsf_io_mode_t
Definition io.h:44
@ VSF_IO_OUTPUT
Definition io.h:50
@ VSF_IO_PULL_UP
Definition io.h:46
@ __VSF_HW_IO_FEATURE_ALL_BITS
Definition io.h:58
@ VSF_IO_PULL_DOWN
Definition io.h:47
@ VSF_IO_ALERNATE
Definition io.h:52
@ VSF_IO_OPEN_DRAIN
Definition io.h:45
@ VSF_IO_INPUT
Definition io.h:49
@ VSF_IO_ANALOG
Definition io.h:51
@ VSF_IO_FEATURE_ALL_BITS
Definition io.h:54
#define GPIO_PULLDOWN
Definition sthal_gpio.h:76
#define GPIO_PULLUP
Definition sthal_gpio.h:75