drv_common.h
来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· C头文件 代码 · 共 77 行
H
77 行
/**************************************************************************/
/* */
/* Copyright (C) 2006 Oki Electric Industry Co., LTD. */
/* */
/* System Name : uPLAT7D series */
/* Module Name : DRV common definition include file */
/* File Name : DRV common.h */
/* Revision : 01.00 */
/* Date : 2006/1/1 */
/* */
/**************************************************************************/
#ifndef DRV_COMMON_H
#define DRV_COMMON_H
/***********************************/
/* common type definition */
/***********************************/
/***********************************/
/* Return value */
/***********************************/
#define DRV_OK 1
#define DRV_PARAM_ERROR (-2) /* parameter error */
/*****************************************************/
/* interrupt number */
/*****************************************************/
#define DRV_INT_SYSTIMER 0
#define DRV_INT_WDT 1
#define DRV_INT_GPIO0 4
#define DRV_INT_GPIO1 5
#define DRV_INT_GPIO2 6
#define DRV_INT_GPIO3 7
#define DRV_INT_SOFT 8
#define DRV_INT_USBhost 9
#define DRV_INT_SIO 10
#define DRV_INT_ADC 11
#define DRV_INT_USBdevice 12
#define DRV_INT_EXEC 13
#define DRV_INT_LCDC 14
#define DRV_INT_I2C0 15
#define DRV_INT_FTM0 16
#define DRV_INT_FTM1 17
#define DRV_INT_FTM2 18
#define DRV_INT_FTM3 19
#define DRV_INT_FTM4 20
#define DRV_INT_FTM5 21
#define DRV_INT_RTC 26
#define DRV_INT_GPIO4 28
#define DRV_INT_GPIO5 29
#define DRV_INT_GPIO6 30
#define DRV_INT_GPIO7 31
#define DRV_INT_EXINIT0 32
#define DRV_INT_EXINIT1 34
#define DRV_INT_EXINT2 36
#define DRV_INT_EXINT3 38
#define DRV_INT_EXINT4 40
#define DRV_INT_EXINT5 42
#define DRV_INT_EXINT6 44
#define DRV_INT_UART0 48
#define DRV_INT_UART1 49
#define DRV_INT_SIMIF0 50
#define DRV_INT_SIMIF1 51
#define DRV_INT_SPI0 52
#define DRV_INT_SPI1 53
#define DRV_INT_I2C1 54
#define DRV_INT_DMAC_A0 56
#define DRV_INT_DMAC_A1 57
#define DRV_INT_DMAC_A2 58
#define DRV_INT_DMAC_A3 59
#define DRV_INT_DMAC_B0 60
#define DRV_INT_DMAC_B1 61
#endif /* end of DRV_COMMON_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?