|
@@ -13,6 +13,17 @@
|
|
|
#include "portgw.h"
|
|
|
#include "tinystdio.h"
|
|
|
#include "usart.h"
|
|
|
+#ifdef PRINTF_STDLIB
|
|
|
+#include <stdio.h>
|
|
|
+#endif
|
|
|
+#ifdef PRINTF_CUSTOM
|
|
|
+#include "tinystdio.h"
|
|
|
+#endif
|
|
|
+
|
|
|
+#include <string.h>
|
|
|
+
|
|
|
+#ifdef PORTGW_ENABLE
|
|
|
+
|
|
|
|
|
|
#define PORTGW_PORT_NUM 1001
|
|
|
#define PORTGW_DATA_CHUNK_SIZE 512
|
|
@@ -630,3 +641,5 @@ void portgw_init(void)
|
|
|
xTaskCreate(portgw_thread, ( char * ) "portgw_thr", configMINIMAL_STACK_SIZE * 2,
|
|
|
NULL, tskIDLE_PRIORITY, NULL);
|
|
|
}
|
|
|
+
|
|
|
+#endif
|