| /******************************************************************************* | |
| * Copyright (C) 2007, ZTE Corporation. | |
| * | |
| * File Name: | |
| * File Mark: | |
| * Description: include all pubilc head file | |
| * Others: | |
| * Version: v0.1 | |
| * Author: weizhigang | |
| * Date: 2009-7-3 | |
| * History 1: | |
| * Date: | |
| * Version: | |
| * Author: | |
| * Modification: | |
| * History 2: | |
| ********************************************************************************/ | |
| #ifndef _DRVS_GENERAL_H | |
| #define _DRVS_GENERAL_H | |
| /**************************************************************************** | |
| * Include files | |
| ****************************************************************************/ | |
| #include "pub.h" /* for basic type */ | |
| #include "oss_api.h" /* for oss function */ | |
| #include "ThreadPriority.h" /* for threadpriority */ | |
| #include "pub/drvs_bits.h" /* for bits define */ | |
| #include "pub/drvs_bitops.h" /* for bit operations*/ | |
| #include "pub/drvs_regio.h" /* for register io read/write*/ | |
| #include "pub/drvs_ret.h" /* for driver return value define */ | |
| #include "pub/drvs_assert.h" /* for driver assert function */ | |
| #include "pub/drvs_hisr.h" /* for hisr*/ | |
| #include "pub/drvs_ring.h" /* for ring function */ | |
| #include "pub/drvs_debug.h" /* for ring function */ | |
| #include "pub/drvs_config.h" /* for drv configure */ | |
| #include "pub/drvs_list.h" /* for drv list */ | |
| #include "pub/drvs_ramlog.h" /* for ramlog*/ | |
| #include "io/drvs_io.h" /* for io function*/ | |
| #include "io/drvs_io_names.h" /* for io device names*/ | |
| #include "io/drvs_io_dev.h" /* for io devices used function*/ | |
| #include "io/drvs_io_keys.h" /* for io control keys*/ | |
| #include "io/drvs_io_sio.h" /* for sio devices*/ | |
| #include "misc/drvs_int.h" /* for isr function */ | |
| #include "misc/drvs_gpio.h" /* for ring function */ | |
| /*to be continue...*/ | |
| /**************************************************************************** | |
| * code section definition | |
| ****************************************************************************/ | |
| #ifdef _OS_OSE | |
| /*macro about TCM | |
| *it can be used to place code and data to specific section in TCM | |
| */ | |
| #define PRAGMA(X) _Pragma(#X) | |
| #define RODATA_BEGIN(X) PRAGMA(arm section rodata=#X) | |
| #define RWDATA_BEGIN(X) PRAGMA(arm section rwdata=#X) | |
| #define ZIDATA_BEGIN(X) PRAGMA(arm section zidata=#X) | |
| #define CODE_BEGIN(X) PRAGMA(arm section code=#X) | |
| #define RODATA_END _Pragma("arm section rodata") | |
| #define RWDATA_END _Pragma("arm section rwdata") | |
| #define ZIDATA_END _Pragma("arm section zidata") | |
| #define CODE_END _Pragma("arm section code") | |
| #endif | |
| /**************************************************************************** | |
| * general type | |
| ****************************************************************************/ | |
| typedef enum _T_ZDrv_CoreId | |
| { | |
| CORE_ID_ARM0=0, | |
| CORE_ID_ARM1=1, | |
| CORE_ID_ZSP0=2, | |
| CORE_ID_ZSP1=3, | |
| CORE_NUM | |
| } T_ZDrv_CoreId; | |
| #endif/*_DRVS_GENERAL_H*/ | |