main.c
来自「网上得到FREESCALE 9S12程序」· C语言 代码 · 共 30 行
C
30 行
#include <hidef.h> /* common defines and macros */
#include <mc9s12dg128.h> /* derivative information */
#include"PLL.h"
#include"PWM.h"
#include"IO.h"
#pragma LINK_INFO DERIVATIVE "mc9s12dg128b"
void main(void) {
/* put your own code here */
DisableInterrupts;
DDRK = DDRK |0X06;
M1FB=0;
M2FB=0;
PLL_Init();
Start_PLL();
PWM_Init();
PWME=0x0C;
for(;;) {} /* wait forever */
/* please make sure that you never leave this function */
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?