新增了sum函数

This commit is contained in:
Yerolling 2022-05-08 22:20:47 +08:00
parent 03ecf9c884
commit 63a563de9f
2 changed files with 8 additions and 2 deletions

View File

@ -40,5 +40,5 @@ void UpBus(rail_node_t* rail_node);
* @param rail_node
*/
void DownBus(rail_node_t* rail_node);
int sum(int a,int b);
#endif //AUTO_PILOT_BUS_BUS_H

View File

@ -1 +1,7 @@
#include "bus.h"
#include "bus.h"
int sum(int a,int b)
{
int sum=b+a;
return sum;
}