首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

关于.PRM

好像在Start12.c里有定义,里在有些关于_Startup的说明.
/* The function _Startup must be called in order to initialize global variables and to call main */
/* You can adapt this function or call it from your startup code to implement a different startup */
/* functionality. */

/* You should also setup the needed IO registers as WINDEF (HC12A4 only) or the COP registers to run */
/* on hardware */

/* to set the reset vector several ways are possible : */
/* 1. define the function with "interrupt 0" as done below in the first case */
/* 2. add the following line to your prm file : VECTOR ADDRESS 0xfffe _Startup */
/* of course, even more posibilities exists */
/* the reset vector must be set so that the application has a defined entry point */

#if defined(__SET_RESET_VECTOR__)
__EXTERN_C void __interrupt 0 _Startup(void) {
#else
__EXTERN_C void _Startup(void) {
#endif
关于freescale的更多信息资料,欢迎访问http://www.yuan-ying.com
我觉得也是这样的,在V4.1和V4.5中都是用VECTOR 0 _Startup 来指定向量的,
自己理解不知道对不对呵,大家讨论一下:
#if defined(__SET_RESET_VECTOR__)
__EXTERN_C void __interrupt 0 _Startup(void) //定义中断0为开始指向地址,应该是FFFE(reset source)
#else
__EXTERN_C void _Startup(void)
#endif
关于freescale的更多信息资料,欢迎访问http://www.yuan-ying.com
返回列表