Browse Source

修改: qu16、qs16、qu08、qs08数据类型为int,以适配点表文件中对应数据类型的偏移是按32位的。

EWen 3 tháng trước cách đây
mục cha
commit
c46f78f46b

+ 2 - 1
README.md

@@ -71,4 +71,5 @@
 05. 增加:增加can接收线程打印报文互斥锁,避免打印CAN接收报文时混乱的情况。
 
 # 20251217
-01. 增加: dido增加电源板新增加的6个遥信的处理。
+01. 增加: dido增加电源板新增加的6个遥信的处理。
+02. 修改: qu16、qs16、qu08、qs08数据类型为int,以适配点表文件中对应数据类型的偏移是按32位的。

+ 2 - 0
app_public/fuxi_public/fuxi_bsp/source/flexcan.c

@@ -671,6 +671,8 @@ int can_exit(void)
 	rt_free_irq(CFG_CAN_VECTOR_BEGIN + 5);
 	rt_free_irq(CFG_CAN_VECTOR_BEGIN + 7);
 
+	pthread_mutex_destroy(&printf_mutex);
+	
 	return 0;
 }
 

+ 4 - 4
app_public/fuxi_public/rt_lite/include/rt_types.h

@@ -49,13 +49,13 @@ typedef signed long long	s64;
 //#endif //__KERNEL__
 
 //Q16定点数,小数点在bit16后
-typedef unsigned long 		qu16;
-typedef signed long			qs16;
+typedef unsigned int 		qu16;
+typedef signed int			qs16;
 #define Q16_BASE			(65536)
 
 //Q08定点数,小数点在bit8后
-typedef unsigned long 		qu08;
-typedef signed long			qs08;
+typedef unsigned int 		qu08;
+typedef signed int			qs08;
 #define Q08_BASE			(256)
 
 //短整型复数的实部虚部对