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

📄 mxl_init.h

📁 最新版IAR FOR ARM(EWARM)5.11中的代码例子
💻 H
字号:
/*************************************************************************
 *
 *    Used with ICCARM and AARM.
 *
 *    (c) Copyright IAR Systems 2006
 *
 *    File name   : mxl_init.h
 *    Description : MXL initialization module include file
 *
 *    History :
 *    1. Date        : 7 Feb. 2006
 *       Author      : Stanimir Bonev
 *       Description : Create
 *
 *    $Revision: 13146 $
 **************************************************************************/
#include "includes.h"

#ifndef __MXL_INIT_H
#define __MXL_INIT_H

// DBG UART (UART1) definitions
#define UART1_BAUD_RATE     115200

// Interrupt handlers table
extern VoidFpnt_t pIRQ_INTR_HANDLES[64];

/*************************************************************************
 * Function Name: irq_handler
 * Parameters: none
 *
 * Return: none
 *
 * Description: IRQ Handler
 *
 *************************************************************************/
__arm __irq void irq_handler (void);

/*************************************************************************
 * Function Name: fiq_handler
 * Parameters: none
 *
 * Return: none
 *
 * Description: FIQ Handler
 *
 *************************************************************************/
__arm __fiq void fiq_handler (void);

/*************************************************************************
 * Function Name: AitcInit
 * Parameters: VoidFpnt_t pIntrHandler,Int32U IntrInd,
 *						 Int32U IntrPtio, Boolean IntrType
 *
 * Return: none
 *
 * Description: Interrupt Handler registered
 *
 *************************************************************************/
void AitcEnableInt (VoidFpnt_t pIntrHandler,Int32U IntrInd,
										Int32U IntrPtio, Boolean IntrType);

/*************************************************************************
 * Function Name: AitcInit
 * Parameters: none
 *
 * Return: none
 *
 * Description: Interrupt controller init
 *
 *************************************************************************/
void AitcInit (void);

/*************************************************************************
 * Function Name: DbgUartGetChar
 * Parameters: none
 *
 * Return: Int8U
 *
 * Description: Receive char by UART 1
 *
 *************************************************************************/
Int8U DbgUartGetChar (void);

/*************************************************************************
 * Function Name: DbgUartPutChar
 * Parameters: Int8U Data
 *
 * Return: none
 *
 * Description: Send char by UART 1
 *
 *************************************************************************/
void DbgUartPutChar (Int8U Data);

/*************************************************************************
 * Function Name: DbgUartPrint
 * Parameters: Int8U const *pData
 *
 * Return: none
 *
 * Description: Send zero terminated massive
 *
 *************************************************************************/
void DbgUartPrint (Int8U const *pData);

/*************************************************************************
 * Function Name: DbgUartInit
 * Parameters: none
 *
 * Return: none
 *
 * Description: Init UART1
 *
 *************************************************************************/
void DbgUartInit (void);

/*************************************************************************
 * Function Name: __low_level_init
 * Parameters: none
 *
 * Return: int
 *
 * Description: Low level init subroutine
 *
 *************************************************************************/
__arm int __low_level_init(void);

#endif // __MXL_INIT_H

⌨️ 快捷键说明

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