main.c

来自「飞思卡尔单片机MC9S08AW60 SCI串口部分操作源码。验证通过。」· C语言 代码 · 共 32 行

C
32
字号
#include <hidef.h> /* for EnableInterrupts macro */
#include "derivative.h" /* include peripheral declarations */

#include "SCI.h"
unsigned char rdata[16],i;


void MCU_init(void) /* Device initialization function declaration */
{
  SCI1_Init();
}

void main(void) {

  /* Uncomment this function call after using Device Initialization
     to use the generated code */
  MCU_init();
  i=0; 
 
  EnableInterrupts; /* enable interrupts */

  /* include your code here */
//  printf0("\nhello, MC9S08AW60!\r");

  __RESET_WATCHDOG();
  for(;;) 
  {
    //__RESET_WATCHDOG(); /* feeds the dog */
  } /* loop forever */
  /* please make sure that you never leave this function */
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?