上一节通过 printf 打印输出数据,本节讲使用官方组件库输入和回环实验。对应串口输出和
输入,官方的组件库提供了两个组件函数,分别为 :
app_uart_get 函数介绍如下所示
![图片[1]-15、nRF52xx蓝牙学习(串口输入与回环)-ELink墨水屏电子纸社区-FPGA CPLD-ChipDebug](http://chipdebug.com/wp-content/uploads/2025/11/20251112115120817-71762919480.png?v=1762919480)
![图片[2]-15、nRF52xx蓝牙学习(串口输入与回环)-ELink墨水屏电子纸社区-FPGA CPLD-ChipDebug](http://chipdebug.com/wp-content/uploads/2025/11/20251112115121996-01762919481.png?v=1762919482)
uint32_t app_uart_get(uint8_t * p_byte) { ASSERT(p_byte); bool rx_ovf = m_rx_ovf; ret_code_t err_code = app_fifo_get(&m_rx_fifo, p_byte); // If FIFO was full new request to receive one byte was not scheduled. Must be done here. if (rx_ovf) { m_rx





没有回复内容