手機(jī)發(fā)送數(shù)據(jù)給BLE_UART。
通過(guò)回調(diào)函數(shù)ble_uart_add_service處理的,在回調(diào)函數(shù)on_bleuartServiceEvt中通過(guò)app_uart_tx_data將write的數(shù)據(jù)傳遞給app_uart_tx_fifo,然后通過(guò)app_drv_fifo_read_to_same_addr函數(shù)將app_uart_tx_fifo再將數(shù)據(jù)傳遞給串口3的發(fā)送保持寄存器R8_UART3_THR進(jìn)行數(shù)據(jù)的發(fā)送。
BLE_UART發(fā)送數(shù)據(jù)給手機(jī)則參考#2講解。