main.c
来自「智能车测速程序 智能车测速程序 智能车测速程序」· C语言 代码 · 共 35 行
C
35 行
#include <hidef.h> /* common defines and macros */
#include <mc9s12dg128.h> /* derivative information */
#include"PLL.h"
#include"testspeed.h"
#pragma LINK_INFO DERIVATIVE "mc9s12dg128b"
unsigned int speed_m=0;
//*测速模块.PT0
void main(void) {
/* put your own code here */
DisableInterrupts;
DDRH=0XFF; //输出设置
PTH=0x00;
PTH=0xff;
PLL_Init();
Start_PLL();
PaiInit();
RealTimer_Int();
EnableInterrupts;
for(;;) {} /* wait forever */
/* please make sure that you never leave this function */
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?