improve at firmware
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
//#define USE_BC26
|
||||
//#define USE_EC20
|
||||
//#define USE_EC200S
|
||||
//#define USE_AIR724
|
||||
//#define USE_L610
|
||||
|
||||
#ifdef USE_ESP8266
|
||||
#include "esp8266.h"
|
||||
@@ -28,6 +30,14 @@
|
||||
#include "ec200s.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_AIR724
|
||||
#include "air724.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_L610
|
||||
#include "l610.h"
|
||||
#endif
|
||||
|
||||
#define TCP_TEST_TASK0_STK_SIZE 4096
|
||||
void tcp_test0(void);
|
||||
osThreadDef(tcp_test0, osPriorityNormal, 1, TCP_TEST_TASK0_STK_SIZE);
|
||||
@@ -90,7 +100,7 @@ void application_entry(void *arg)
|
||||
{
|
||||
#if defined(USE_ESP8266)
|
||||
esp8266_sal_init(HAL_UART_PORT_0);
|
||||
esp8266_join_ap("SheldonDai", "srnr6x9xbhmb0");
|
||||
esp8266_join_ap("Mculover666", "mculover666");
|
||||
#elif defined(USE_SIM800A)
|
||||
sim800a_power_on();
|
||||
sim800a_sal_init(HAL_UART_PORT_2);
|
||||
@@ -99,7 +109,11 @@ void application_entry(void *arg)
|
||||
#elif defined(USE_EC20)
|
||||
ec20_sal_init(HAL_UART_PORT_0);
|
||||
#elif defined(USE_EC200S)
|
||||
ec200s_sal_init(HAL_UART_PORT_2);
|
||||
ec200s_sal_init(HAL_UART_PORT_0);
|
||||
#elif defined(USE_AIR724)
|
||||
air724_sal_init(HAL_UART_PORT_0);
|
||||
#elif defined(USE_L610)
|
||||
l610_sal_init(HAL_UART_PORT_0);
|
||||
#endif
|
||||
|
||||
socket_id_0 = tos_sal_module_connect("117.50.111.72", "8080", TOS_SAL_PROTO_TCP);
|
||||
|
Reference in New Issue
Block a user