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

📄 mx21_example.h

📁 MX21_InitCodeLib.rar freescale mx21系列ARM芯片9328的WINCE5.0下初始化代码
💻 H
字号:
/**********************************************************************
*
*         (C) COPYRIGHT 2004 FREESCALE, INC.
*         ALL RIGHTS RESERVED
*
*
*     Group/Division:  WMSG/MMDO
*
*     Description:
*
*     Related Specifications:
*
*     Errata:
*
*     File Name:        MX21_Example.h
*     Revision Number:  0.1
*     Author(s):        Sharad Kumar
*     Date created:     30Apr2004
*     Revision History:
*        Date      Rev     Description
*        ----      ---     -----------
*        30Apr04  0.1     First draft
*
**********************************************************************/
#ifndef _MX21_EXAMPLE_H
#define _MX21_EXAMPLE_H

#include "MX21_DataTypes.h"
#include "MX21_Macros.h"
#include "MX21_MemMap.h"
#include "MX21_Common.h"
#include "MX21_IntHandler.h"
#include "MX21_ArmCore.h"
#include "MX21_AITC.h"
#include "MX21_RTC.h"
#include "MX21_MAX.h"
#include "MX21_DMA.h"
#include "MX21_LCD.h"

// This defines the number of interrupts
// starting from an index of 0 that will 
// cause an IRQ type interrupt.
// The remaining will be of type FIQ

#define gNUMBER_IRQ_INTERRUPTS    32

// delay value for a 
// software delay routine
#define gDELAY 4

// For all slave ports, RO=0, HLP=0
// ARB=0, PCTL=0, PARK=0
#define gMAX_SLV_CNTR_VEC         0x0

// Vector RAM jump addresses
// hard coded in the ROM 
#define VECT_RAM_IRQ	          0xFFFFFF00
#define VECT_RAM_FIQ	          0xFFFFFF04
#define VECT_RAM_UNDF             0xFFFFFEF0
#define VECT_RAM_SWI              0xFFFFFEF4
#define VECT_RAM_PFTA             0xFFFFFEF8
#define VECT_RAM_ABRT             0xFFFFFEFC

// setting PAR bits for all peripherals to 1
// to restricts access to supervisor mode only.
// the control bit PAR1[0] is read only.
#define gAIPI1_PAR                0xFFFFFFFE
#define gAIPI2_PAR                0xFFFFFFFE


// function declarations
void
configMAX(void);

void
configAIPI(void);

void
configAITC(void);

void
configArm(void);

void
configPLL();

void
testInterrupts(void);


#endif

⌨️ 快捷键说明

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