add support for ec200s cat1 module
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
//#define USE_SIM800A
|
||||
//#define USE_BC26
|
||||
//#define USE_EC20
|
||||
//#define USE_EC200S
|
||||
|
||||
#ifdef USE_ESP8266
|
||||
#include "esp8266.h"
|
||||
@@ -23,6 +24,10 @@
|
||||
#include "ec20.h"
|
||||
#endif
|
||||
|
||||
#ifdef USE_EC200S
|
||||
#include "ec200s.h"
|
||||
#endif
|
||||
|
||||
#define TCP_TEST_TASK0_STK_SIZE 4096
|
||||
void tcp_test0(void);
|
||||
osThreadDef(tcp_test0, osPriorityNormal, 1, TCP_TEST_TASK0_STK_SIZE);
|
||||
@@ -92,7 +97,9 @@ void application_entry(void *arg)
|
||||
#elif defined(USE_BC26)
|
||||
bc26_sal_init(HAL_UART_PORT_2);
|
||||
#elif defined(USE_EC20)
|
||||
ec20_sal_deinit(HAL_PORT_0);
|
||||
ec20_sal_init(HAL_UART_PORT_0);
|
||||
#elif defined(USE_EC200S)
|
||||
ec200s_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