WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
pinctrl_porting_ws63.c 文件参考
#include "pinctrl_porting.h"
#include "hal_pinctrl.h"
#include "hal_pinctrl_ws63.h"
pinctrl_porting_ws63.c 的引用(Include)关系图:

宏定义

#define BIT(x)   (1UL << (uint32_t)(x))
 

枚举

enum  pin_mode_func_t {
  PIN_FUNC_0 = (1UL << (uint32_t)( PIN_MODE_0 )) , PIN_FUNC_1 = (1UL << (uint32_t)( PIN_MODE_1 )) , PIN_FUNC_2 = (1UL << (uint32_t)( PIN_MODE_2 )) , PIN_FUNC_3 = (1UL << (uint32_t)( PIN_MODE_3 )) ,
  PIN_FUNC_4 = (1UL << (uint32_t)( PIN_MODE_4 )) , PIN_FUNC_5 = (1UL << (uint32_t)( PIN_MODE_5 )) , PIN_FUNC_6 = (1UL << (uint32_t)( PIN_MODE_6 )) , PIN_FUNC_7 = (1UL << (uint32_t)( PIN_MODE_7 )) ,
  PIN_FUNC_NONE = 0
}
 
enum  pio_mode_t {
  PIO_MODE_0 = (1UL << (uint32_t)( 0 )) , PIO_MODE_1 = (1UL << (uint32_t)( 1 )) , PIO_MODE_2 = (1UL << (uint32_t)( 2 )) , PIO_MODE_3 = (1UL << (uint32_t)( 3 )) ,
  PIO_MODE_4 = (1UL << (uint32_t)( 4 )) , PIO_MODE_5 = (1UL << (uint32_t)( 5 )) , PIO_MODE_6 = (1UL << (uint32_t)( 6 )) , PIO_MODE_7 = (1UL << (uint32_t)( 7 )) ,
  PIO_MODE_NONE = 0
}
 

函数

bool pin_check_mode_is_valid (pin_t pin, pin_mode_t mode)
 Check whether the mode configured for the pin is valid.
 
void pin_port_register_hal_funcs (void)
 Register hal funcs objects into hal_pinctrl module.
 
void pin_port_unregister_hal_funcs (void)
 Unregister hal funcs objects from hal_pinctrl module.
 

宏定义说明

◆ BIT

#define BIT (   x)    (1UL << (uint32_t)(x))

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2023. All rights reserved.

Description: Provides pinctrl port
History:
2022-08-25, Create file.

枚举类型说明

◆ pin_mode_func_t

枚举值
PIN_FUNC_0 
PIN_FUNC_1 
PIN_FUNC_2 
PIN_FUNC_3 
PIN_FUNC_4 
PIN_FUNC_5 
PIN_FUNC_6 
PIN_FUNC_7 
PIN_FUNC_NONE 

◆ pio_mode_t

enum pio_mode_t
枚举值
PIO_MODE_0 
PIO_MODE_1 
PIO_MODE_2 
PIO_MODE_3 
PIO_MODE_4 
PIO_MODE_5 
PIO_MODE_6 
PIO_MODE_7 
PIO_MODE_NONE