⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 h83068f.h

📁 avr上的RTOS
💻 H
📖 第 1 页 / 共 5 页
字号:
#ifndef __INCLUDE_H83068F_H__#define __INCLUDE_H83068F_H__/* * Copyright (C) 2004 by Jan Dubiec. 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. Neither the name of the copyright holders nor the names of *    contributors may be used to endorse or promote products derived *    from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY JAN DUBIEC 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 JAN DUBIEC * 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. *//* * This file is based on 3068s.h which can be freely downloaded from * http://www.renesas.com/eng/products/mpumcu/tool/crosstool/iodef/index.html. *  * I have added lacking definition of ADRCR register in structure st_bsc * (bus controler), chanded "int" to "short" in some places in order to make * structs/unions be compatible with gcc's "-mint32" option and added appropriate * ifdefs in order to avoid including the contents of this file more than once. * * Jan Dubiec <jdx@slackware.pl> * *//* * $Log: h83068f.h,v $ * Revision 1.1  2005/06/06 10:49:35  haraldkipp * Building outside the source tree failed. All header files moved from * arch/cpu/include to include/arch/cpu. * * Revision 1.2  2004/03/19 18:21:12  jdubiec * Added comment about the origin of this file. * * Revision 1.1  2004/03/16 16:48:26  haraldkipp * Added Jan Dubiec's H8/300 port. * *//************************************************************************//*      H8/3068 Series Include File                        Ver 2.0      *//************************************************************************/union un_p1dr {                 /* union P1DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p2pcr {                /* union P2PCR  */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p2dr {                 /* union P2DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p3dr {                 /* union P3DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p4pcr {                /* union P4PCR  */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p4dr {                 /* union P4DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p5pcr {                /* union P5PCR  */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char:4;        /*              */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p5dr {                 /* union P5DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char:4;        /*              */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p6dr {                 /* union P6DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p7dr {                 /* union P7DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p8dr {                 /* union P8DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char:3;        /*              */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_p9dr {                 /* union P9DR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char:2;        /*              */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_padr {                 /* union PADR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_pbdr {                 /* union PBDR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char B7:1;     /*    Bit 7     */        unsigned char B6:1;     /*    Bit 6     */        unsigned char B5:1;     /*    Bit 5     */        unsigned char B4:1;     /*    Bit 4     */        unsigned char B3:1;     /*    Bit 3     */        unsigned char B2:1;     /*    Bit 2     */        unsigned char B1:1;     /*    Bit 1     */        unsigned char B0:1;     /*    Bit 0     */    } BIT;                      /*              */};                              /*              */union un_mdcr {                 /* union MDCR   */    unsigned char BYTE;         /*  Byte Access */    struct {                    /*  Bit  Access */        unsigned char:5;        /*              */        unsigned char MDS:3;    /*    MDS       */    } BIT;                      /*              */};                              /*              */union un_syscr {                /* union SYSCR  */    unsigned char BYTE;         /*  Byte Access */

⌨️ 快捷键说明

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