⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 飞思卡尔智能车用的决策程序,这是由参加过的研究生提供的例子
💻 C
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -