?? system.h
字號:
///
// Copyright (c) 2003, Wolver Wang, MinShan Inc. R&D Center
// wolver@minshan-inc.com
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by Wolver Wang.
// 4. The name of the author may not be used to endorse or promote
// products derived from this software without specific prior
// written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
///
///
// Copyright (c) 2003, Wolver Wang, MinShan Inc. R&D Center
// wolver@minshan-inc.com
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// This product includes software developed by Wolver Wang.
// 4. The name of the author may not be used to endorse or promote
// products derived from this software without specific prior
// written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
///
///
// 版權 2003, 王衛無,四川綿陽岷山集團有限公司--研究開發中心
// wolver@minshan-inc.com
// 保留一切權利
//
// 如果符合以下條件,則無論是以原代碼或非原代碼代碼形式,且不論是否修改,
// 再分發和使用本軟件都是被允許的。
// 1. 原代碼的再分發必須保留上述的版權聲明、本條件說明和以下免責聲明。
// 2. 非原代碼形式的再分發,必須在證明文件和(或)其它一同提供的材料中重新
// 作上述的版權聲明、本條件說明和以下免責聲明。
// 3. 一切提及本軟件和使用的廣告材料必須顯示以下致謝:
// 本產品包含王衛無(四川綿陽岷山集團有限公司--研究開發中心)開發的軟件。
// 4. 如果沒有預先得到特定的書面許可,不能用作者的名字來宣傳推廣基于本軟件得到
// 的產品。
//
// 免責聲明:
// 本軟件是由某某作者提供,如果出現以下情況,作者都不承擔任何責任。
// 1. 因作者的說明以及任何明確的或暗示的保證(包括但不限于表達某種商業性和適合某一
// 特定目的暗示性保證)而產生的損失。
// 2. 無論在何種情況下,對使用本軟件造成的任何直接的、間接的、偶然的、特定的、可預
// 見性的和連帶產生的損失(包括但不限于獲取產品和服務、作用喪失、數據遺失、利益損
// 失或商業干預),無論這些損失是怎樣造成的,并且是以何種方式闡釋責任。
// 3. 任何因使用本軟件而相關的合同、嚴格賠償責任和侵權行為(包含:疏忽或其它)的損失,
// 甚至即便是可能的此類已經明示或暗示的損失。
///
#ifndef __SYSTEM_H__
#define __SYSTEM_H__
// 聲明本系統使用的MCU型號,程序中其他任何地方都沒有用到這個定義
//#define MCU SPCE061A
// 定義 MCU 16bit的字節序模式
#define BIG_ENDIAN 1 // for SPCE061A
// 定義16bit的無符號整數聲明
#ifndef __UINT16__
#define __UINT16__
typedef unsigned int UINT16;
#endif
// 定義16bit的符號整數聲明
#ifndef __SINT16__
#define __SINT16__
typedef int SINT16;
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -