增加了一些编译优化,增加了log使用文档,新增部分user_lib功能

This commit is contained in:
NeoZng
2023-06-24 20:29:57 +08:00
parent f51b6fec3d
commit 9ef46e2f88
8 changed files with 61 additions and 48 deletions

View File

@@ -206,3 +206,9 @@ float AverageFilter(float new_data, float *buf, uint8_t len)
return sum / len;
}
void MatInit(mat *m, uint8_t row, uint8_t col)
{
m->numCols = col;
m->numRows = row;
m->pData = (float *)zmalloc(row * col * sizeof(float));
}