setups12x.h
来自「关于XD256的应用实例,用于汽车电子开发之用」· C头文件 代码 · 共 49 行
H
49 行
/*****************************************************
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 + =
减小字号Ctrl + -
显示快捷键?