?? motor.c
字號:
//============================
//繞線機程序
//============================
#ifndef __motor_c__
#define __motor_c__
#include "included.h"
//=================================
//===來回馬達進來子程序
void for_m(uint t)
{
cp_h();
delay_10us(t);
cp_l();
delay_10us(t);
}
//===============================
//===來回馬達出去子程序
void back_m(uint t)
{
cp_h();
delay_10us(t);
cp_l();
delay_10us(t);
}
//==============================
void delay_10us(t)
{
uint i;
for(i=0;i<7;i++)
{
_nop_();
}
for(i=0;i<t;i++)
{
_nop_();
}
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -