1 Star 0 Fork 0

shuai532209720/bldc

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
mempools.h 1.27 KB
Copy Edit Raw Blame History
/*
Copyright 2020 Benjamin Vedder benjamin@vedder.se
This file is part of the VESC firmware.
The VESC firmware is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The VESC firmware is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MEMPOOLS_H_
#define MEMPOOLS_H_
#include "datatypes.h"
// Settings
#define MEMPOOLS_MCCONF_NUM 10
#define MEMPOOLS_APPCONF_NUM 3
// Functions
mc_configuration *mempools_alloc_mcconf(void);
void mempools_free_mcconf(mc_configuration *conf);
app_configuration *mempools_alloc_appconf(void);
void mempools_free_appconf(app_configuration *conf);
int mempools_mcconf_highest(void);
int mempools_appconf_highest(void);
int mempools_mcconf_allocated_num(void);
int mempools_appconf_allocated_num(void);
#endif /* MEMPOOLS_H_ */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/LiuShuai532209720/bldc.git
git@gitee.com:LiuShuai532209720/bldc.git
LiuShuai532209720
bldc
bldc
master

Search

23e8dbc6 1850385 7e0993f3 1850385