⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ad_cstart.c

📁 基于TMS320F2812的AD采样的程序
💻 C
字号:
/**************************************************************************
|*    Startup code automatically generated and updated by:
|*    TASKING 1.119r1 (build version: 1.41)
|*    Do not edit unless switching off the automatic generation
|*    checkbox in Project | Project Options | Processor | Startup Code
|*
|*    Copyright 2001-2004 Altium BV
 */

#ifndef         P0
# define        P0	(*(__bsfr volatile unsigned char *)0x80)
#endif
#ifndef         SP
# define        SP	(*(__sfr  volatile unsigned char *)0x81)
#endif
#ifndef         ROMSIZE
# define        ROMSIZE (*(__sfr  volatile unsigned char *)0x8F)
#endif
#ifndef         P1
# define        P1	(*(__bsfr volatile unsigned char *)0x90)
#endif
#ifndef         XP
# define        XP      (*(__sfr  volatile unsigned char *)0x9F)
#endif
#ifndef         P2
# define        P2	(*(__bsfr volatile unsigned char *)0xA0)
#endif
#ifndef         P3
# define        P3	(*(__bsfr volatile unsigned char *)0xB0)
#endif
#ifndef         PSW
# define        PSW	(*(__bsfr volatile unsigned char *)0xD0)
#endif

extern void _init( void );
extern int   main( int argc );
extern void _exit( void );
#pragma weak    _Exit
#pragma alias   _Exit = _exit

extern char __idata _lc_bs[];		/* system stack begin label */


extern char __xdata * __data _SP;
extern char __xdata _lc_ue_vstack_xdata[];


/* Force this section to be named '_start', it then will be located
 * in the first block of 256 bytes in code space by using LSL.
 */
#pragma section code=-f

__interrupt(0x0) __frame() void _start( void )
{
	PSW = 0;								/* select register bank 0 */

	XP = 0x00;							/* needed when using __pdata */

	ROMSIZE = 0x10;					/* size internal Program memory */

	SP = (unsigned char)_lc_bs;		/* initialize system stack pointer */

	_SP = _lc_ue_vstack_xdata-1;		/* initialize 'virtual stack' pointer */
	_init();								/* initialize C variables */
	main(0);
	_exit();
}

/* The exit() function jumps to _exit. When it is required to restart
 * the program, SP and _SP should be initialized again (if applicable).
 */
void _exit( void )
{
	while(1);								/* loop infinite */
}

⌨️ 快捷键说明

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