Przeglądaj źródła

调整内存大小,uart减小,相电流buff减小

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 2 lat temu
rodzic
commit
e24d7f2090

+ 2 - 6
Applications/bsp/gd32/uart.h

@@ -10,13 +10,9 @@
 #define CH_ESC_START					0x05
 #define CH_ESC_END						0x06
 #define CH_ESC_ESC						0x07
-#if (CONFIG_MC105_HW_VERSION==2)
-#define SHARK_UART_TX_MEM_SIZE			(256)
-#define SHARK_UART_RX_MEM_SIZE			256
-#else
-#define SHARK_UART_TX_MEM_SIZE			(5 * 1024)
+
+#define SHARK_UART_TX_MEM_SIZE			512
 #define SHARK_UART_RX_MEM_SIZE			512
-#endif
 #define RX_FRAME_MAX_LEN 260
 #define RX_OLD_FRAME_MAX_LEN 256
 

+ 1 - 1
Applications/foc/motor/motor.c

@@ -1157,7 +1157,7 @@ measure_time_t g_meas_foc = {.exec_max_time = 25, .intval_max_time = 62,  .intva
 #define TIME_MEATURE_START() time_measure_start(&g_meas_foc)
 #define TIME_MEATURE_END() time_measure_end(&g_meas_foc)
 #if (CONFIG_ENABLE_IAB_REC==1)
-#define CONFIG_IAB_REC_COUNT 8000
+#define CONFIG_IAB_REC_COUNT 1000
 static s16 ia[CONFIG_IAB_REC_COUNT], ib[CONFIG_IAB_REC_COUNT];
 static int iab_w_count = 0, iab_r_count = 0;
 static bool b_iab_rec = false;

+ 0 - 5
Applications/os/heap_4.c

@@ -35,15 +35,10 @@
  */
 #include <stdlib.h>
 #include <stdint.h>
-#include "bsp/bsp.h"
 
 #define portBYTE_ALIGNMENT			8
 #define portBYTE_ALIGNMENT_MASK 	0x0007
-#if (CONFIG_MC105_HW_VERSION==2)
-#define configTOTAL_HEAP_SIZE    (3*1024)
-#else
 #define configTOTAL_HEAP_SIZE    (14*1024)
-#endif
 #define configASSERT(x)
 /* Block sizes must not get too small. */
 #define heapMINIMUM_BLOCK_SIZE	( ( size_t ) ( xHeapStructSize << 1 ) )