?? hms800.h
字號:
/* Title ; Type definitions for HMS800 Series *//* File Name : HMS800.h *//* Release Date : 2003. 8. 16. *//* Revision No. : 1.0 *//* Programmer : Bell Lee *//* Copyright (c) 2003, Hynix Semiconductor Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 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. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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. */#ifndef _HMS800_H#define _HMS800_H_ 1typedef unsigned char uchar;typedef unsigned short ushort;union byte_type_t{ uchar byte; struct p8_bit { char bit0:1 ; // 1 char bit1:1 ; // 2 char bit2:1 ; // 3 char bit3:1 ; // 4 char bit4:1 ; // 5 char bit5:1 ; // 6 char bit6:1 ; // 7 char bit7:1 ; // 8 } bit;}; typedef volatile union byte_type_t BYTE;union word_type_t{ ushort word; struct p16_bit { char bit0:1 ; // 1 char bit1:1 ; // 2 char bit2:1 ; // 3 char bit3:1 ; // 4 char bit4:1 ; // 5 char bit5:1 ; // 6 char bit6:1 ; // 7 char bit7:1 ; // 8 char bit8:1 ; // 9 char bit9:1 ; // 10 char bit10:1 ; // 11 char bit11:1 ; // 12 char bit12:1 ; // 13 char bit13:1 ; // 14 char bit14:1 ; // 15 char bit15:1 ; // 16 } bit;}; typedef volatile union word_type_t WORD;#define CODE __attribute__((section(".text")))#define PAGE0 __attribute__((section("PAGE0")))#define PAGE1 __attribute__((section("PAGE1")))#define PAGE2 __attribute__((section("PAGE2")))#define PAGE3 __attribute__((section("PAGE3")))#define PAGE4 __attribute__((section("PAGE4")))#define PAGE5 __attribute__((section("PAGE5")))#define PAGE6 __attribute__((section("PAGE6")))#define PAGE7 __attribute__((section("PAGE7")))#define PAGE8 __attribute__((section("PAGE8")))#define PAGE9 __attribute__((section("PAGE9")))#define PAGE10 __attribute__((section("PAGE10")))#define PAGE11 __attribute__((section("PAGE11")))#define PAGE12 __attribute__((section("PAGE12")))#define PAGE13 __attribute__((section("PAGE13")))#define PAGE14 __attribute__((section("PAGE14")))#define PAGE15 __attribute__((section("PAGE15")))#define INT0 __attribute__ ((interrupt ("0")))#define INT1 __attribute__ ((interrupt ("1")))#define INT2 __attribute__ ((interrupt ("2")))#define INT3 __attribute__ ((interrupt ("3")))#define INT4 __attribute__ ((interrupt ("4")))#define INT5 __attribute__ ((interrupt ("5")))#define INT6 __attribute__ ((interrupt ("6")))#define INT7 __attribute__ ((interrupt ("7")))#define INT8 __attribute__ ((interrupt ("8")))#define INT9 __attribute__ ((interrupt ("9")))#define INT10 __attribute__ ((interrupt ("10")))#define INT11 __attribute__ ((interrupt ("11")))#define INT12 __attribute__ ((interrupt ("12")))#define INT13 __attribute__ ((interrupt ("13")))#define INT14 __attribute__ ((interrupt ("14")))#define INT15 __attribute__ ((interrupt ("15")))#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -