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

📄 setups12x.h

📁 关于XD256的应用实例,用于汽车电子开发之用
💻 H
字号:
/*****************************************************
 setupS12X.h - Startup and initialization code HCS12X
 ----------------------------------------------------
 tility functions to setup the HCS12X cores:
 - Contains the main entry point of the application 
   that initializes the PLL and calls the main function
   through the standard C startup code.
 - Includes a function to setup the XGATE core.
  
 *****************************************************/

#ifndef __SETUPS12X_H_
#define __SETUPS12X_H_

#include "hidef.h" /* this file declares symbols user by the CodeWarrior environment */

/*************************************************************************************
 This is the main entry point for the application. The reset vector shall pint to this 
 function
-------------------------------------------------------------------------------------*/
 
#pragma CODE_SEG __NEAR_SEG NON_BANKED  /* make sure this code is located in non banked */  
 
interrupt void S12X_EntryPoint(void);

#pragma CODE_SEG DEFAULT                /* back to the standard segment */


/*************************************************************************************
 Initializes the XGATE core and needs to be called before interrupts are enabled.
 Note: Prior to calling this function, the interrupt priority registers need to be 
       set up!
-------------------------------------------------------------------------------------*/

void S12X_SetupXGATE(void);


/*************************************************************************************
 Use this function to set the priority and core that handles interrupts.
 Channel:  the interrupt number (vector address/2)
 Priority: the interrupt priority (1..7). If the XGATE should handle the request, RQST
           can be masked to the interrupt level
-------------------------------------------------------------------------------------*/

#define	RQST        0x80               

void S12X_SetInterruptPriority(uchar Channel, uchar Priority);

#endif

⌨️ 快捷键说明

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