实现电机,按键,虚拟串口,未验证

This commit is contained in:
ranchuan
2023-06-30 14:23:54 +08:00
parent edd3010a20
commit b15db16b91
14 changed files with 1130 additions and 368 deletions

31
source/task/moter.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef moter_h__
#define moter_h__
#include "signal.h"
#include "bytearray.h"
#include "list.h"
#include "board.h"
signal moter_end_signal(void *m);
void moter_start_slot(void *t,int fre,int step_count);
void moter_start(int fre,int step_count);
void moter_down(void (*fun)(void *t),void *t);
void moter_up(void (*fun)(void *t),void *t);
#endif