添加 USB 主机、BLE 和 Socket 数据端口驱动程序:
- 支持大容量存储类(MSC)的 USB 主机驱动程序 - BLE SPP(串行端口配置文件)客户端和服务器实现 - Socket(UDP/TCP)数据端口驱动程序 - 相关的 shell 接口用于配置和测试
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "uart_port.h"
|
||||
|
||||
#include "driver/uart.h"
|
||||
#include "hal/uart_ll.h"
|
||||
|
||||
#include "drivers/data_port/sb_data_port.h"
|
||||
|
||||
@@ -17,7 +18,7 @@
|
||||
|
||||
#define _MAX_UART_NUM 3
|
||||
|
||||
#define UART_IN_TAST_STK_SIZE 2048
|
||||
#define UART_IN_TAST_STK_SIZE 2304
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -228,6 +229,8 @@ static void uart_port_initialize(sb_data_port_t *port)
|
||||
return;
|
||||
}
|
||||
|
||||
uart_disable_intr_mask(uart_data->uart_num, UART_INTR_BRK_DET); // 关闭检测UART_BREAK中断,防止过多的UART_BREAK导致的程序异常
|
||||
|
||||
SYS_LOG_INF("uart_driver_install ok. (%d, %d, %d, %d, %d, %d)", uart_data->uart_num, 0x400, 0x400, 3, (uint32_t)&uart_data->event_queue, 0);
|
||||
}
|
||||
|
||||
@@ -460,6 +463,7 @@ sb_data_port_t *sb_uart_port_bind(int uart_num,
|
||||
|
||||
SYS_ASSERT(uart_num < _MAX_UART_NUM, "");
|
||||
SYS_ASSERT(port->data == NULL, "The interface has already been bound");
|
||||
// SYS_ASSERT(baudrate > 0, "");
|
||||
|
||||
uart_data->uart_num = uart_num;
|
||||
uart_data->baudrate = baudrate;
|
||||
|
||||
Reference in New Issue
Block a user