修改了freertos的支持include,增加了daemon的上线等待时间,增加pid参数整定指南

This commit is contained in:
NeoZng
2023-06-23 15:56:20 +08:00
parent 4a45331d31
commit b4d4228ccc
14 changed files with 17 additions and 20 deletions

View File

@@ -23,9 +23,7 @@
#define user_malloc malloc
#endif
uint8_t GlobalDebugMode = 7;
void *zero_malloc(size_t size)
void *zmalloc(size_t size)
{
void *ptr = malloc(size);
memset(ptr, 0, size);
@@ -207,3 +205,4 @@ float AverageFilter(float new_data, float *buf, uint8_t len)
sum += new_data;
return sum / len;
}

View File

@@ -23,8 +23,6 @@
#define mcos(x) (arm_cos_f32(x))
extern uint8_t GlobalDebugMode;
#ifndef user_malloc
#ifdef _CMSIS_OS_H
#define user_malloc pvPortMalloc
@@ -89,7 +87,7 @@ extern uint8_t GlobalDebugMode;
* @param size 分配大小
* @return void*
*/
void *zero_malloc(size_t size);
void *zmalloc(size_t size);
// <20><><EFBFBD>ٿ<EFBFBD><D9BF><EFBFBD>
float Sqrt(float x);