?? gumstix.h
字號:
// Copyright (c) David Vescovi. All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// File: gumstix.h
//
// Gumstix II board definitions and hardware options.
//
//------------------------------------------------------------------------------
#ifndef _GUMSTIX_H_
#define _GUMSTIX_H_
// define the debug (console port)
#define DEFAULT_DEBUG_PORT PXA255_BASE_REG_PA_FFUART
//#define DEBUG_BAUD 0x00000018 // 38400
#define DEBUG_BAUD 0x00000008 // 115200
/*
Hardware configuration register.
This register is passed from the bootloader as one of the standard bootloader arguments.
It contains platform options and hardware accessories as set in the bootloader and stored
in persistant flash memory. These options should be set as part of the setup procedure.
This method will conserve GPIO pins as unused options normally consumed by the resource
will be free to use elsewhere by the user.
---------------------------------------------------------------
| 31| 30| 29| 28| 27| 26| 25| 24| 23| 22| 21| 20| 19| 18| 17| 16|
---------------------------------------------------------------
| 0 | 0 | X | X | X | X | X | X | 0 | X | 0 | X | 0 | 0 | 0 | 0 |
| | | | | | | |
| | | | | | | -STUART
| | | | | | | 0 - No
| | | | | | | 1 - Support
| | | | | | |
| | | | | | ---- FFUART
| | | | | | 0 - No
| | | | | | 1 - Support
| | | | | |
| | | | | -------- HWUART
| | | | | 0 - No
| | | | | 1 - Support
| | | | |
| | | | ------------ BTUART
| | | | 0 - No
| | | | 1 - Support
| | | |
| | | -------------------- LCD Display
| | | 0 - No
| | | 1 - Support
| | |
| | ---------------------------- PWM1
| | 0 - No
| | 1 - Yes
| |
| -------------------------------------------------------- Flash File
| 0 - No
| 1 - Yes
|
------------------------------------------------------------ Persistent rgeistry
0 - No
1 - Yes
---------------------------------------------------------------
| 15| 14| 13| 12| 11| 10| 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---------------------------------------------------------------
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | 0 | 0 | 0 0 0 |
| | | | | | | | | | | | |_______|
| | | | | | | | | | | | |
| | | | | | | | | | | | ---- PLAT
| | | | | | | | | | | | Platform
| | | | | | | | | | | | 000 - Basic
| | | | | | | | | | | | 001 - Connex
| | | | | | | | | | | |
| | | | | | | | | | | ------------ SPD
| | | | | | | | | | | Speed
| | | | | | | | | | | 0 - 200Mhz
| | | | | | | | | | | 1 - 400Mhz
| | | | | | | | | | |
| | | | | | | | | | ---------------- XM
| | | | | | | | | | Expanded Flash
| | | | | | | | | | (auto sense)
| | | | | | | | | | 0 - 4Meg
| | | | | | | | | | 1 - 16Meg
| | | | | | | | | |
| | | | | | | | | ------------------------ CF
| | | | | | | | | CF slot
| | | | | | | | | (CFStix or netCF)
| | | | | | | | | 0 - No
| | | | | | | | | 1 - Support
| | | | | | | | |
| | | | | | | | ---------------------------- MMC
| | | | | | | | MMC slot
| | | | | | | | (Basic or netMMC)
| | | | | | | | 0 - No
| | | | | | | | 1 - Support
| | | | | | | |
| | | | | | | -------------------------------- WiFiStix
| | | | | | | 0 - No
| | | | | | | 1 - Support
| | | | | | |
| | | | | | ------------------------------------ ETH1
| | | | | | Ethernet lan #1
| | | | | | (EtherStix or netDUO)
| | | | | | 0 - No
| | | | | | 1 - Support
| | | | | |
| | | | | ---------------------------------------- ETH2
| | | | | Ethernet lan #2
| | | | | (netDUO)
| | | | | 0 - No
| | | | | 1 - Support
| | | | |
| | | | -------------------------------------------- Bluetooth
| | | | (BPA31307)
| | | | (new)
| | | | 0 - No
| | | | 1 - Support
| | | |
| | | ------------------------------------------------ USB
| | | 0 - No
| | | 1 - Support
| | |
| | ---------------------------------------------------- Bluetooth
| | (ROK104001)
| | 0 = No
| | 1 = Support
| |
| -------------------------------------------------------- Audio/Touch
| (AudioStix)
| UCB1400
| 0 = No
| 1 = Support
|
------------------------------------------------------------ Notification LED
0 = No
1 = Support
*/
//
// Gumstix hardware configuration
// register option bits
//
#define GUMCFG_PLAT 0x00000007
#define GUMCFG_SPD 0x00000008
#define GUMCFG_XM 0x00000010
#define GUMCFG_CF 0x00000040
#define GUMCFG_MMC 0x00000080
#define GUMCFG_WIFI 0x00000100
#define GUMCFG_ETH1 0x00000200
#define GUMCFG_ETH2 0x00000400
#define GUMCFG_BT2 0x00000800
#define GUMCFG_USBFN 0x00001000
#define GUMCFG_BT1 0x00002000
#define GUMCFG_AUDIO 0x00004000
#define GUMCFG_LED 0x00008000
#define GUMCFG_STUART 0x00010000
#define GUMCFG_FFUART 0x00020000
#define GUMCFG_HWUART 0x00040000
#define GUMCFG_BTUART 0x00080000
#define GUMCFG_LCD 0x00200000
#define GUMCFG_PWM0 0x00400000
#define GUMCFG_PWM1 0x00800000
#define GUMCFG_FLASHFILE 0x40000000
#define GUMCFG_PERREG 0x80000000
#define GUMCFG_PLAT_BASIC 0
#define GUMCFG_PLAT_CONNEX 1
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -