main.c
来自「Ftjitsu 16bit mcu,90340 demo programmer 」· C语言 代码 · 共 31 行
C
31 行
/* THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU */
/* MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR */
/* ELIGIBILITY FOR ANY PURPOSES. */
/* (C) Fujitsu Microelectronics Europe GmbH */
/*---------------------------------------------------------------------------
MAIN.C
- description
- See README.TXT for project description and disclaimer.
/*---------------------------------------------------------------------------*/
#include "mb90340.h"
#include "monitor.h"
unsigned long cnt;
void main(void)
{
InitIrqLevels();
__set_il(7); /* allow all levels */
__EI(); /* globaly enable interrupts */
DDR0 = 0xFF; /* set parallel port direction register : output */
PDR0 = 0xFF; /* switch off all leds */
while(1)
{
for(cnt = 0; cnt < 60000; cnt++); /* wait */
PDR0++; /* counter... */
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?