main.c
来自「飞思卡尔智能车用的决策程序,这是由参加过的研究生提供的例子」· C语言 代码 · 共 35 行
C
35 行
#include <hidef.h> /* common defines and macros */
#include <mc9s12dg128.h> /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12dg128b"
#define uch unsigned char
extern void HardwareInit(void);
extern void PCCommunicate(void);
extern void set_motor(uch,uch);
extern void set_DJ(unsigned short);
extern void get_pic(void);
uch pic[40][40],a[40][38];
uch gpline,gppoint,gpflag,mdelay;
uch mabs(uch a,uch b) {
if(a>=b)
return((uch)(a-b));
else
return((uch)(b-a));
}
uch * image_proc(void) {
}
void main(void) {
uch i,j,q,iline;
uch * p;
unsigned short total,dnum;
HardwareInit();
mdelay=27;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?