ccode.c
来自「ADuC系列芯片的源代码事例」· C语言 代码 · 共 33 行
C
33 行
/*********************************************************************
Author : ADI - Apps www.analog.com/MicroConverter
Date : Sept. 2005
File : Ccode.c
Hardware : Applicable to ADuC702x rev H or I silicon
Currently targetting ADuC7026.
Description : This example demonstrate how to call subroutine written
in assembly. In the main is a loop with a call to a
blink routine, written in assembly, with a value for
a delay.
Ccode is compiled in THUMB by default.
Assemb.s is written and assembled in ARM.
*********************************************************************/
#include<ADuC7026.h>
extern void Blink(unsigned long);
extern void Blink_Setup();
int main (void)
{
Blink_Setup(); // Setup P4.2 as an output
while(1){ // Infinite loop
Blink(0x20000); // Call Blink, with a delay of 0x20000
}
return(0);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?