From 8ccf223eb0edc8c2f069ffe076acc25951d3718d Mon Sep 17 00:00:00 2001 From: yudongdong Date: Mon, 10 May 2021 17:39:25 +0800 Subject: [PATCH] surport bluetooth on f407 --- .../connection/Adapter/bluetooth/xs_adapter_bluetooth.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/connection/Adapter/bluetooth/xs_adapter_bluetooth.c b/framework/connection/Adapter/bluetooth/xs_adapter_bluetooth.c index 8c8a21a0b..b652c1921 100644 --- a/framework/connection/Adapter/bluetooth/xs_adapter_bluetooth.c +++ b/framework/connection/Adapter/bluetooth/xs_adapter_bluetooth.c @@ -25,7 +25,12 @@ #include #include +#ifdef BOARD_K210_EVB #define SAMPLE_UART_NAME "/dev/uart3_dev3" +#endif +#ifdef BOARD_STM32F407_EVB +#define SAMPLE_UART_NAME "/dev/usart3_dev3" +#endif static int serial_fd; static int32_t bluetooth_receive;