📄 blink.c
字号:
/*********************************************************************
Author : ADI - Apps www.analog.com/MicroConverter
Date : Sept. 2005
File : blink.c
Hardware : Applicable to ADuC702x rev H or I silicon
Currently targetting ADuC7026.
Description : Blinks LED continuously
*********************************************************************/
#include<aduc7026.h>
void delay(int);
int main(void) {
GP4DAT = 0x04000000; // P4.2 configured as an output. LED is turned on
while (1){
GP4DAT ^= 0x00040000; // Complement P4.2
delay(2000000);
}
}
void delay (int length)
{
while (length >=0)
length--;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -