| | |
| | | #include "HIDO_Log.h" |
| | | #include "DBG.h" |
| | | /******************************************************************************* |
| | | * Macro * |
| | | * Macro * |
| | | *******************************************************************************/ |
| | | /* 串口相关 */ |
| | | #define AIR780E_UART_TX_BUF_SIZE (100) /* 串口未使用DMA模式,不需要buff */ |
| | |
| | | #define AIR780E_UART_TX_QUEUE_MEMBER_CNT 16 /* 串口未使用DMA模式,不需要 */ |
| | | |
| | | /* AT相关 */ |
| | | #define AIR780E_AT_SEND_BUF_SIZE (1024 + 512) /* 发送的单条AT指令的最大长度 */ |
| | | #define AIR780E_AT_RECV_BUF_SIZE (1024 + 512) /* 单挑AT指令 */ |
| | | #define AIR780E_AT_SEND_BUF_SIZE ((5 * 1024) + 512) /* 发送的单条AT指令的最大长度 */ |
| | | #define AIR780E_AT_RECV_BUF_SIZE ((5 * 1024) + 512) /* 单挑AT指令 */ |
| | | |
| | | /******************************************************************************* |
| | | * Type Definition * |
| | |
| | | *******************************************************************************/ |
| | | HIDO_INT32 AIR780EDriver_PowerOn(void) |
| | | { |
| | | air780_power_state = 1; |
| | | update_led_power_state(); |
| | | AIR780E_Reset(); |
| | | return HIDO_OK; |
| | | } |
| | |
| | | stUartInit.m_pu8TxBuf = l_au8AIR780EUartTxBuf; |
| | | stUartInit.m_u32TxBufSize = AIR780E_UART_TX_BUF_SIZE; |
| | | stUartInit.m_u32TxQueueMemberCnt = AIR780E_UART_TX_QUEUE_MEMBER_CNT; |
| | | stUartInit.m_u32BaudRate = 115200; |
| | | stUartInit.m_u32BaudRate = 9600; |
| | | if(Uart_Init(UART_ID_4G, &stUartInit) != HIDO_OK) |
| | | { |
| | | return HIDO_ERR; |