网络自适应
This commit is contained in:
1 parent
a589e89e33
commit
0f40dd8b17
68 files changed
+7062
-2678
No files matched your search
+1
-8
@@ -12,14 +12,13 @@
|
||||
#include <rtthread.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "data.h"
|
||||
|
||||
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
|
||||
/*
|
||||
* Please modify RT_HEAP_SIZE if you enable RT_USING_HEAP
|
||||
* the RT_HEAP_SIZE max value = (sram size - ZI size), 1024 means 1024 bytes
|
||||
*/
|
||||
#define RT_HEAP_SIZE (30*1024)
|
||||
#define RT_HEAP_SIZE (15*1024)
|
||||
static rt_uint8_t rt_heap[RT_HEAP_SIZE];
|
||||
|
||||
RT_WEAK void *rt_heap_begin_get(void)
|
||||
@@ -94,11 +93,6 @@ INIT_BOARD_EXPORT(uart_init);
|
||||
|
||||
void rt_hw_console_output(const char *str)
|
||||
{
|
||||
|
||||
if (g_ifconfig == 1)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
rt_size_t i = 0, size = 0;
|
||||
char a = '\r';
|
||||
|
||||
@@ -114,7 +108,6 @@ void rt_hw_console_output(const char *str)
|
||||
}
|
||||
HAL_UART_Transmit(&UartHandle, (uint8_t *)(str + i), 1, 1);
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user