📄 io_map.h
字号:
/*
** ###################################################################
**
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**
** Filename : IO_Map.H
**
** Project : LK24E
**
** Processor : MC68HC908LK24FAC_80
**
** Beantype : IO_Map
**
** Version : Driver 01.03
**
** Compiler : Metrowerks HC08 C Compiler
**
** Date/Time : 2004-1-3, 17:14
**
** Abstract :
**
** This bean "IO_Map" implements an IO devices mapping.
**
** Settings :
**
**
**
** Contents :
**
** No public methods
**
**
** (c) Copyright UNIS, spol. s r.o. 1997-2002
**
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
**
** http : www.processorexpert.com
** mail : info@processorexpert.com
**
** ###################################################################
*/
/* Based on CPU DB MC68HC908LK24_80, version 2.87.026 (RegistersPrg V1.019) */
#ifndef _MC68HC908LK24_80_H
#define _MC68HC908LK24_80_H
#include "PE_Types.h"
#pragma MESSAGE DISABLE C1106 /* WARNING C1106: Non-standard bitfield type */
/*********************************************/
/* */
/* PE I/O map format */
/* */
/*********************************************/
/*** PTA - Port A Data Register ***/
typedef union {
byte Byte;
struct {
byte PTA0 :1; /* Port A Data Bit 0 */
byte PTA1 :1; /* Port A Data Bit 1 */
byte PTA2 :1; /* Port A Data Bit 2 */
byte PTA3 :1; /* Port A Data Bit 3 */
byte PTA4 :1; /* Port A Data Bit 4 */
byte PTA5 :1; /* Port A Data Bit 5 */
byte PTA6 :1; /* Port A Data Bit 6 */
byte PTA7 :1; /* Port A Data Bit 7 */
} Bits;
struct {
byte grpPTA :8;
} MergedBits;
} PTASTR;
extern volatile PTASTR _PTA @0x00000000;
#define PTA _PTA.Byte
#define PTA_PTA0 _PTA.Bits.PTA0
#define PTA_PTA1 _PTA.Bits.PTA1
#define PTA_PTA2 _PTA.Bits.PTA2
#define PTA_PTA3 _PTA.Bits.PTA3
#define PTA_PTA4 _PTA.Bits.PTA4
#define PTA_PTA5 _PTA.Bits.PTA5
#define PTA_PTA6 _PTA.Bits.PTA6
#define PTA_PTA7 _PTA.Bits.PTA7
#define PTA_PTA _PTA.MergedBits.grpPTA
/*** PTB - Port B Data Register ***/
typedef union {
byte Byte;
struct {
byte PTB0 :1; /* Port B Data Bit 0 */
byte PTB1 :1; /* Port B Data Bit 1 */
byte PTB2 :1; /* Port B Data Bit 2 */
byte PTB3 :1; /* Port B Data Bit 3 */
byte PTB4 :1; /* Port B Data Bit 4 */
byte PTB5 :1; /* Port B Data Bit 5 */
byte PTB6 :1; /* Port B Data Bit 6 */
byte PTB7 :1; /* Port B Data Bit 7 */
} Bits;
struct {
byte grpPTB :8;
} MergedBits;
} PTBSTR;
extern volatile PTBSTR _PTB @0x00000001;
#define PTB _PTB.Byte
#define PTB_PTB0 _PTB.Bits.PTB0
#define PTB_PTB1 _PTB.Bits.PTB1
#define PTB_PTB2 _PTB.Bits.PTB2
#define PTB_PTB3 _PTB.Bits.PTB3
#define PTB_PTB4 _PTB.Bits.PTB4
#define PTB_PTB5 _PTB.Bits.PTB5
#define PTB_PTB6 _PTB.Bits.PTB6
#define PTB_PTB7 _PTB.Bits.PTB7
#define PTB_PTB _PTB.MergedBits.grpPTB
/*** PTC - Port C Data Register ***/
typedef union {
byte Byte;
struct {
byte PTC0 :1; /* Port C Data Bit 0 */
byte PTC1 :1; /* Port C Data Bit 1 */
byte PTC2 :1; /* Port C Data Bit 2 */
byte PTC3 :1; /* Port C Data Bit 3 */
byte PTC4 :1; /* Port C Data Bit 4 */
byte PTC5 :1; /* Port C Data Bit 5 */
byte PTC6 :1; /* Port C Data Bit 6 */
byte PTC7 :1; /* Port C Data Bit 7 */
} Bits;
struct {
byte grpPTC :8;
} MergedBits;
} PTCSTR;
extern volatile PTCSTR _PTC @0x00000002;
#define PTC _PTC.Byte
#define PTC_PTC0 _PTC.Bits.PTC0
#define PTC_PTC1 _PTC.Bits.PTC1
#define PTC_PTC2 _PTC.Bits.PTC2
#define PTC_PTC3 _PTC.Bits.PTC3
#define PTC_PTC4 _PTC.Bits.PTC4
#define PTC_PTC5 _PTC.Bits.PTC5
#define PTC_PTC6 _PTC.Bits.PTC6
#define PTC_PTC7 _PTC.Bits.PTC7
#define PTC_PTC _PTC.MergedBits.grpPTC
/*** PTD - Port D Data Register ***/
typedef union {
byte Byte;
struct {
byte PTD0 :1; /* Port D Data Bit 0 */
byte PTD1 :1; /* Port D Data Bit 1 */
byte PTD2 :1; /* Port D Data Bit 2 */
byte PTD3 :1; /* Port D Data Bit 3 */
byte PTD4 :1; /* Port D Data Bit 4 */
byte PTD5 :1; /* Port D Data Bit 5 */
byte PTD6 :1; /* Port D Data Bit 6 */
byte PTD7 :1; /* Port D Data Bit 7 */
} Bits;
struct {
byte grpPTD :8;
} MergedBits;
} PTDSTR;
extern volatile PTDSTR _PTD @0x00000003;
#define PTD _PTD.Byte
#define PTD_PTD0 _PTD.Bits.PTD0
#define PTD_PTD1 _PTD.Bits.PTD1
#define PTD_PTD2 _PTD.Bits.PTD2
#define PTD_PTD3 _PTD.Bits.PTD3
#define PTD_PTD4 _PTD.Bits.PTD4
#define PTD_PTD5 _PTD.Bits.PTD5
#define PTD_PTD6 _PTD.Bits.PTD6
#define PTD_PTD7 _PTD.Bits.PTD7
#define PTD_PTD _PTD.MergedBits.grpPTD
/*** DDRA - Data Direction Register A ***/
typedef union {
byte Byte;
struct {
byte DDRA0 :1; /* Data Direction Register A Bit 0 */
byte DDRA1 :1; /* Data Direction Register A Bit 1 */
byte DDRA2 :1; /* Data Direction Register A Bit 2 */
byte DDRA3 :1; /* Data Direction Register A Bit 3 */
byte DDRA4 :1; /* Data Direction Register A Bit 4 */
byte DDRA5 :1; /* Data Direction Register A Bit 5 */
byte DDRA6 :1; /* Data Direction Register A Bit 6 */
byte DDRA7 :1; /* Data Direction Register A Bit 7 */
} Bits;
struct {
byte grpDDRA :8;
} MergedBits;
} DDRASTR;
extern volatile DDRASTR _DDRA @0x00000004;
#define DDRA _DDRA.Byte
#define DDRA_DDRA0 _DDRA.Bits.DDRA0
#define DDRA_DDRA1 _DDRA.Bits.DDRA1
#define DDRA_DDRA2 _DDRA.Bits.DDRA2
#define DDRA_DDRA3 _DDRA.Bits.DDRA3
#define DDRA_DDRA4 _DDRA.Bits.DDRA4
#define DDRA_DDRA5 _DDRA.Bits.DDRA5
#define DDRA_DDRA6 _DDRA.Bits.DDRA6
#define DDRA_DDRA7 _DDRA.Bits.DDRA7
#define DDRA_DDRA _DDRA.MergedBits.grpDDRA
/*** DDRB - Data Direction Register B ***/
typedef union {
byte Byte;
struct {
byte DDRB0 :1; /* Data Direction Register B Bit 0 */
byte DDRB1 :1; /* Data Direction Register B Bit 1 */
byte DDRB2 :1; /* Data Direction Register B Bit 2 */
byte DDRB3 :1; /* Data Direction Register B Bit 3 */
byte DDRB4 :1; /* Data Direction Register B Bit 4 */
byte DDRB5 :1; /* Data Direction Register B Bit 5 */
byte DDRB6 :1; /* Data Direction Register B Bit 6 */
byte DDRB7 :1; /* Data Direction Register B Bit 7 */
} Bits;
struct {
byte grpDDRB :8;
} MergedBits;
} DDRBSTR;
extern volatile DDRBSTR _DDRB @0x00000005;
#define DDRB _DDRB.Byte
#define DDRB_DDRB0 _DDRB.Bits.DDRB0
#define DDRB_DDRB1 _DDRB.Bits.DDRB1
#define DDRB_DDRB2 _DDRB.Bits.DDRB2
#define DDRB_DDRB3 _DDRB.Bits.DDRB3
#define DDRB_DDRB4 _DDRB.Bits.DDRB4
#define DDRB_DDRB5 _DDRB.Bits.DDRB5
#define DDRB_DDRB6 _DDRB.Bits.DDRB6
#define DDRB_DDRB7 _DDRB.Bits.DDRB7
#define DDRB_DDRB _DDRB.MergedBits.grpDDRB
/*** DDRC - Data Direction Register C ***/
typedef union {
byte Byte;
struct {
byte DDRC0 :1; /* Data Direction Register C Bit 0 */
byte DDRC1 :1; /* Data Direction Register C Bit 1 */
byte DDRC2 :1; /* Data Direction Register C Bit 2 */
byte DDRC3 :1; /* Data Direction Register C Bit 3 */
byte DDRC4 :1; /* Data Direction Register C Bit 4 */
byte DDRC5 :1; /* Data Direction Register C Bit 5 */
byte DDRC6 :1; /* Data Direction Register C Bit 6 */
byte DDRC7 :1; /* Data Direction Register C Bit 7 */
} Bits;
struct {
byte grpDDRC :8;
} MergedBits;
} DDRCSTR;
extern volatile DDRCSTR _DDRC @0x00000006;
#define DDRC _DDRC.Byte
#define DDRC_DDRC0 _DDRC.Bits.DDRC0
#define DDRC_DDRC1 _DDRC.Bits.DDRC1
#define DDRC_DDRC2 _DDRC.Bits.DDRC2
#define DDRC_DDRC3 _DDRC.Bits.DDRC3
#define DDRC_DDRC4 _DDRC.Bits.DDRC4
#define DDRC_DDRC5 _DDRC.Bits.DDRC5
#define DDRC_DDRC6 _DDRC.Bits.DDRC6
#define DDRC_DDRC7 _DDRC.Bits.DDRC7
#define DDRC_DDRC _DDRC.MergedBits.grpDDRC
/*** DDRD - Data Direction Register D ***/
typedef union {
byte Byte;
struct {
byte DDRD0 :1; /* Data Direction Register D Bit 0 */
byte DDRD1 :1; /* Data Direction Register D Bit 1 */
byte DDRD2 :1; /* Data Direction Register D Bit 2 */
byte DDRD3 :1; /* Data Direction Register D Bit 3 */
byte DDRD4 :1; /* Data Direction Register D Bit 4 */
byte DDRD5 :1; /* Data Direction Register D Bit 5 */
byte DDRD6 :1; /* Data Direction Register D Bit 6 */
byte DDRD7 :1; /* Data Direction Register D Bit 7 */
} Bits;
struct {
byte grpDDRD :8;
} MergedBits;
} DDRDSTR;
extern volatile DDRDSTR _DDRD @0x00000007;
#define DDRD _DDRD.Byte
#define DDRD_DDRD0 _DDRD.Bits.DDRD0
#define DDRD_DDRD1 _DDRD.Bits.DDRD1
#define DDRD_DDRD2 _DDRD.Bits.DDRD2
#define DDRD_DDRD3 _DDRD.Bits.DDRD3
#define DDRD_DDRD4 _DDRD.Bits.DDRD4
#define DDRD_DDRD5 _DDRD.Bits.DDRD5
#define DDRD_DDRD6 _DDRD.Bits.DDRD6
#define DDRD_DDRD7 _DDRD.Bits.DDRD7
#define DDRD_DDRD _DDRD.MergedBits.grpDDRD
/*** PTE - Port E Data Register ***/
typedef union {
byte Byte;
struct {
byte PTE0 :1; /* Port E Data Bit 0 */
byte PTE1 :1; /* Port E Data Bit 1 */
byte PTE2 :1; /* Port E Data Bit 2 */
byte PTE3 :1; /* Port E Data Bit 3 */
byte PTE4 :1; /* Port E Data Bit 4 */
byte PTE5 :1; /* Port E Data Bit 5 */
byte PTE6 :1; /* Port E Data Bit 6 */
byte PTE7 :1; /* Port E Data Bit 7 */
} Bits;
struct {
byte grpPTE :8;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -