Function gx_hal_gpio_init

  • Defined in file__output_copyinclude_src_include_gpio_gx_hal_gpio.h

Function Documentation

hal_status gx_hal_gpio_init(GX_HAL_GPIO *dev)

gpio 初始化 调用该函数初始化gpio,调用前需要填充dev结构体中以下参数: regs: 基地址 pclk: 时钟源频率(Hz)

Returns HAL_OK

成功

Returns HAL_ERROR

失败

返回

hal_status 初始化否成功