📄 lh7a400_evb_get_dipsw.h
字号:
/***********************************************************************
* $Workfile: LH7A400_evb_get_dipsw.h $
* $Revision: 1.0 $
* $Author: WellsK $
* $Date: Sep 23 2002 13:52:04 $
*
* Project: KEV7A400
*
* Description:
* Header file for CPU and Display board DIP Switches
*
* Revision History:
* $Log: //smaicnt2/pvcs/VM/CDROM/archives/KEV7A400/Software/Startup_lite/LH7A400_evb_get_dipsw.h-arc $
*
* Rev 1.0 Sep 23 2002 13:52:04 WellsK
* Initial revision.
*
* Rev 1.0 Sep 14 2002 11:38:08 WellsK
* Initial revision.
*
* Rev 1.0 Jul 30 2002 18:51:34 BarnettH
* Initial revision.
*
***********************************************************************
*
* Copyright (c) 2002 Sharp Microelectronics of the Americas
*
* All rights reserved
*
* SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
* OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
* AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES,
* SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
*
* SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY
* FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A
* SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
* FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
*
**********************************************************************/
#ifndef LH7A400_EVB_GET_DIPSW
#define LH7A400_EVB_GET_DIPSW
#if defined (__cplusplus)
extern "C" {
#endif
/***********************************************************************
* Library header files (#include)
**********************************************************************/
/***********************************************************************
* User header files (#include)
**********************************************************************/
/***********************************************************************
* Constant definitions (#define)
**********************************************************************/
/***********************************************************************
* Macro definitions (#define)
**********************************************************************/
#define DIPSW_MODE_CPU 0
#define DIPSW_MODE_DISP 1
/***********************************************************************
* Enumerated type definitions using the enum keyword.
**********************************************************************/
/***********************************************************************
* Structure definitions and typedef's which will be used as members of
* subsequent definitions.
**********************************************************************/
/***********************************************************************
* typedef DIPSW
* typedef DIPSW is for convenience when calling the function from C.
* WARNING! While it works with ADS V1.2, the order of allocation of
* bit fields in typedef DIPSW is ARM implementation dependent.
* The typedef is NOT portable, Proper operation should be verified
* even with new releases of the ARM compiler, because ARM may decide
* to change the order of allocation of bit fields without warning.
**********************************************************************/
typedef union
{
UNS_32 cpu_dipsw_l;
struct
{
UNS_32 dcache:1;
UNS_32 icache:1;
UNS_32 minor:3;
UNS_32 major:3;
UNS_32 :0;
} eit, demo;
struct
{
UNS_32 dcache:1;
UNS_32 minor:4;
UNS_32 major:3;
UNS_32 :0;
} user;
} DIPSW;
/***********************************************************************
* Structure definitions with concurrent type definitions.
**********************************************************************/
/***********************************************************************
* Type definitions (typedef)
**********************************************************************/
/***********************************************************************
* Global data references (extern)
**********************************************************************/
/***********************************************************************
* Global function prototypes.
**********************************************************************/
UNS_32 LH7A400_evb_get_dipsw (UNS_32 mode);
/***********************************************************************
* Inline function declarations.
**********************************************************************/
#if defined (__cplusplus)
}
#endif
#endif /* LH7A400_EVB_GET_DIPSW */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -