bsp_cfg.h

来自「Windows CE 6.0 BSP for VOIPAC Board (PXA」· C头文件 代码 · 共 69 行

H
69
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
//------------------------------------------------------------------------------
//
//  File:  bsp_cfg.h
//
//  This file contains system constant specific for Mainstone II board.
//
#ifndef __BSP_CFG_H
#define __BSP_CFG_H

//------------------------------------------------------------------------------
//
//  Define:  BSP_DEVICE_PREFIX
//
//  Prefix used to generate device name for bootload/KITL
//
#define BSP_DEVICE_PREFIX       "VPAC270"      // Device name prefix

//------------------------------------------------------------------------------
// Board clock
//------------------------------------------------------------------------------

// OSCR0 is used for the system tick timer.  Use the 3.25MHz clock.
//
#define OEM_CLOCK_FREQ          3250000        // 3.25M ticks/sec
#define OEM_TICKS_1MS           3250           // 1ms in ticks
#define RESCHED_PERIOD          1              // Reschedule period in ms
#define RESCHED_INCREMENT       (RESCHED_PERIOD * OEM_TICKS_1MS)    // Reschedule
                                               // period in ticks
#define OEM_TICK_COUNT_MARGIN   400

//------------------------------------------------------------------------------
// Static SYSINTR Mapping for driver.
#define SYSINTR_OHCI            (SYSINTR_FIRMWARE+1)  // 17
#define SYSINTR_TOUCH           (SYSINTR_FIRMWARE+2)  // 18
#define SYSINTR_TOUCH_CHANGED   (SYSINTR_FIRMWARE+3)  // 19
#define SYSINTR_KEYPAD          (SYSINTR_FIRMWARE+4)  // 20
#define SYSINTR_PCCARD_CSC_S0   (SYSINTR_FIRMWARE+5)  // 21
#define SYSINTR_PCCARD_CD_S0    (SYSINTR_FIRMWARE+6)  // 22
#define SYSINTR_PCCARD_CSC_S1   (SYSINTR_FIRMWARE+7)  // 23
#define SYSINTR_PCCARD_CD_S1    (SYSINTR_FIRMWARE+8)  // 24
#define SYSINTR_AUDIO           (SYSINTR_FIRMWARE+9)  // 25
#define SYSINTR_USBFN           (SYSINTR_FIRMWARE+10) // 26
#define SYSINTR_SFUART          (SYSINTR_FIRMWARE+11) // 27
#define SYSINTR_BFUART          (SYSINTR_FIRMWARE+12) // 28
#define SYSINTR_FFUART          (SYSINTR_FIRMWARE+13) // 29

#define SYSINTR_PWRBTN          (SYSINTR_FIRMWARE+14) // 30
//------------------------------------------------------------------------------

// HW switch settings for ARGS
#define CLEAN_BOOT_FLAG  SW20_MASK
#define HIVE_CLEAN_FLAG  SW19_MASK
#define FORMAT_PART_FLAG SW18_MASK
#define UPDATE_MODE_FLAG SW17_MASK

#endif

⌨️ 快捷键说明

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