function gx_uart_init

int gx_uart_init(
     int port,
     uint32_t baudrate
)

串口初始化 只需要调用一次,且串口在时候过程中不能调用

Parameters:

  • port 端口
  • baudrate 波特率, 支持标准波特率, 一般为 115200

Returns:

int 是否成功

Return value:

  • 0 成功
  • -1 失败

results matching ""

    No results matching ""