From: rtel Date: Thu, 5 Jun 2014 12:44:38 +0000 (+0000) Subject: Update RL78 GCC demo application after testing with fixed compiler. X-Git-Tag: V8.1.0~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed76cd24c00b735250a2f9422fa71cd893b91c57;p=freertos Update RL78 GCC demo application after testing with fixed compiler. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2251 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject b/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject index 1218c25a8..96074528e 100644 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/.cproject @@ -1,19 +1,16 @@ - - - + - - - - + + + @@ -34,6 +31,7 @@ diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/.info b/FreeRTOS/Demo/RL78_E2Studio_GCC/.info index 6715fd6e6..69e2de3c2 100644 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/.info +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/.info @@ -1,7 +1,7 @@ TOOL_CHAIN=KPIT GNURL78-ELF Toolchain -VERSION=v13.02 -TC_INSTALL=C:\devtools\renesas\e2studio\GNURL78v13.02-ELF\rl78-ELF\ -GCC_STRING=4.8-GNURL78_v13.02 -VERSION_IDE=3.06.02.004 -E2STUDIO_VERSION=2.2.0.13 -ACTIVE_CONFIGURATION=RSKRL78L1C +VERSION=v14.01 +TC_INSTALL=C:\devtools\KPIT\GNURL78v14.01-ELF\rl78-ELF\ +GCC_STRING=4.8-GNURL78_v14.01 +VERSION_IDE= +E2STUDIO_VERSION=3.0.0.22 +ACTIVE_CONFIGURATION=RSKRL78L13 diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/RegTest.S b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/RegTest.S index 56821eacd..81c5d05cf 100644 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/RegTest.S +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/RegTest.S @@ -109,11 +109,9 @@ _vRegTest1Task: MOVW BC, #0x6666 MOVW DE, #0x7777 MOVW HL, #0x8888 - SEL RB3 - MOVW AX, #0xAAAA - MOVW BC, #0xBBBB - MOVW DE, #0xCCCC - MOVW HL, #0xDDDD + + /* Register bank 3 is not used outside of interrupts so is not saved as part + of the task context. */ SEL RB0 _loop1: @@ -186,24 +184,8 @@ _loop1: MOVW AX, #0x5555 - SEL RB3 - CMPW AX, #0xAAAA - BZ $.+5 - BR !!_vRegTestError - MOVW AX, BC - CMPW AX, #0xBBBB - BZ $.+5 - BR !!_vRegTestError - MOVW AX, DE - CMPW AX, #0xCCCC - BZ $.+5 - BR !!_vRegTestError - MOVW AX, HL - CMPW AX, #0xDDDD - BZ $.+5 - BR !!_vRegTestError - MOVW AX, #0xAAAA - + /* Register bank 3 is not used outside of interrupts so is not saved as + part of the task context. */ SEL RB0 @@ -235,11 +217,9 @@ _vRegTest2Task: MOVW BC, #0x0660 MOVW DE, #0x0770 MOVW HL, #0x0880 - SEL RB3 - MOVW AX, #0x0AA0 - MOVW BC, #0x0BB0 - MOVW DE, #0x0CC0 - MOVW HL, #0x0DD0 + + /* Register bank 3 is not used outside of interrupts so is not saved as + part of the task context. */ SEL RB0 _loop2: @@ -296,23 +276,8 @@ _loop2: BR !!_vRegTestError MOVW AX, #0x0550 - SEL RB3 - CMPW AX, #0x0AA0 - BZ $.+5 - BR !!_vRegTestError - MOVW AX, BC - CMPW AX, #0x0BB0 - BZ $.+5 - BR !!_vRegTestError - MOVW AX, DE - CMPW AX, #0x0CC0 - BZ $.+5 - BR !!_vRegTestError - MOVW AX, HL - CMPW AX, #0x0DD0 - BZ $.+5 - BR !!_vRegTestError - MOVW AX, #0x0AA0 + /* Register bank 3 is not used outside of interrupts so is not saved as + part of the task context. */ SEL RB0 diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G14.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G14.h new file mode 100644 index 000000000..bfa227a6d --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G14.h @@ -0,0 +1,1121 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78G14 */ +/* FILE : iodefine.h */ +/* DESCRIPTION : Definition of I/O Registers */ +/* CPU SERIES : RL78 - G14 */ +/* CPU TYPE : R5F104PJ */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F104PJ.DVF */ +/* Copyright(C) 2012 Renesas */ +/* File Version V2.00 */ +/* Tool Version 1.9.7121 */ +/* Date Generated 13/11/2012 */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_H +#define IODEFINE_H + +/* + IO Registers + */ +union un_p0 { + unsigned char p0; + __BITS8 BIT; +}; +union un_p1 { + unsigned char p1; + __BITS8 BIT; +}; +union un_p2 { + unsigned char p2; + __BITS8 BIT; +}; +union un_p3 { + unsigned char p3; + __BITS8 BIT; +}; +union un_p4 { + unsigned char p4; + __BITS8 BIT; +}; +union un_p5 { + unsigned char p5; + __BITS8 BIT; +}; +union un_p6 { + unsigned char p6; + __BITS8 BIT; +}; +union un_p7 { + unsigned char p7; + __BITS8 BIT; +}; +union un_p8 { + unsigned char p8; + __BITS8 BIT; +}; +union un_p10 { + unsigned char p10; + __BITS8 BIT; +}; +union un_p11 { + unsigned char p11; + __BITS8 BIT; +}; +union un_p12 { + unsigned char p12; + __BITS8 BIT; +}; +union un_p13 { + unsigned char p13; + __BITS8 BIT; +}; +union un_p14 { + unsigned char p14; + __BITS8 BIT; +}; +union un_p15 { + unsigned char p15; + __BITS8 BIT; +}; +union un_pm0 { + unsigned char pm0; + __BITS8 BIT; +}; +union un_pm1 { + unsigned char pm1; + __BITS8 BIT; +}; +union un_pm2 { + unsigned char pm2; + __BITS8 BIT; +}; +union un_pm3 { + unsigned char pm3; + __BITS8 BIT; +}; +union un_pm4 { + unsigned char pm4; + __BITS8 BIT; +}; +union un_pm5 { + unsigned char pm5; + __BITS8 BIT; +}; +union un_pm6 { + unsigned char pm6; + __BITS8 BIT; +}; +union un_pm7 { + unsigned char pm7; + __BITS8 BIT; +}; +union un_pm8 { + unsigned char pm8; + __BITS8 BIT; +}; +union un_pm10 { + unsigned char pm10; + __BITS8 BIT; +}; +union un_pm11 { + unsigned char pm11; + __BITS8 BIT; +}; +union un_pm12 { + unsigned char pm12; + __BITS8 BIT; +}; +union un_pm14 { + unsigned char pm14; + __BITS8 BIT; +}; +union un_pm15 { + unsigned char pm15; + __BITS8 BIT; +}; +union un_adm0 { + unsigned char adm0; + __BITS8 BIT; +}; +union un_ads { + unsigned char ads; + __BITS8 BIT; +}; +union un_adm1 { + unsigned char adm1; + __BITS8 BIT; +}; +union un_dam { + unsigned char dam; + __BITS8 BIT; +}; +union un_krm { + unsigned char krm; + __BITS8 BIT; +}; +union un_egp0 { + unsigned char egp0; + __BITS8 BIT; +}; +union un_egn0 { + unsigned char egn0; + __BITS8 BIT; +}; +union un_egp1 { + unsigned char egp1; + __BITS8 BIT; +}; +union un_egn1 { + unsigned char egn1; + __BITS8 BIT; +}; +union un_iics0 { + unsigned char iics0; + __BITS8 BIT; +}; +union un_iicf0 { + unsigned char iicf0; + __BITS8 BIT; +}; +union un_iics1 { + unsigned char iics1; + __BITS8 BIT; +}; +union un_iicf1 { + unsigned char iicf1; + __BITS8 BIT; +}; +union un_flars { + unsigned char flars; + __BITS8 BIT; +}; +union un_fssq { + unsigned char fssq; + __BITS8 BIT; +}; +union un_flrst { + unsigned char flrst; + __BITS8 BIT; +}; +union un_fsastl { + unsigned char fsastl; + __BITS8 BIT; +}; +union un_fsasth { + unsigned char fsasth; + __BITS8 BIT; +}; +union un_rtcc0 { + unsigned char rtcc0; + __BITS8 BIT; +}; +union un_rtcc1 { + unsigned char rtcc1; + __BITS8 BIT; +}; +union un_csc { + unsigned char csc; + __BITS8 BIT; +}; +union un_ostc { + unsigned char ostc; + __BITS8 BIT; +}; +union un_ckc { + unsigned char ckc; + __BITS8 BIT; +}; +union un_cks0 { + unsigned char cks0; + __BITS8 BIT; +}; +union un_cks1 { + unsigned char cks1; + __BITS8 BIT; +}; +union un_lvim { + unsigned char lvim; + __BITS8 BIT; +}; +union un_lvis { + unsigned char lvis; + __BITS8 BIT; +}; +union un_monsta0 { + unsigned char monsta0; + __BITS8 BIT; +}; +union un_asim { + unsigned char asim; + __BITS8 BIT; +}; +union un_if2 { + unsigned short if2; + __BITS16 BIT; +}; +union un_if2l { + unsigned char if2l; + __BITS8 BIT; +}; +union un_if2h { + unsigned char if2h; + __BITS8 BIT; +}; +union un_mk2 { + unsigned short mk2; + __BITS16 BIT; +}; +union un_mk2l { + unsigned char mk2l; + __BITS8 BIT; +}; +union un_mk2h { + unsigned char mk2h; + __BITS8 BIT; +}; +union un_pr02 { + unsigned short pr02; + __BITS16 BIT; +}; +union un_pr02l { + unsigned char pr02l; + __BITS8 BIT; +}; +union un_pr02h { + unsigned char pr02h; + __BITS8 BIT; +}; +union un_pr12 { + unsigned short pr12; + __BITS16 BIT; +}; +union un_pr12l { + unsigned char pr12l; + __BITS8 BIT; +}; +union un_pr12h { + unsigned char pr12h; + __BITS8 BIT; +}; +union un_if0 { + unsigned short if0; + __BITS16 BIT; +}; +union un_if0l { + unsigned char if0l; + __BITS8 BIT; +}; +union un_if0h { + unsigned char if0h; + __BITS8 BIT; +}; +union un_if1 { + unsigned short if1; + __BITS16 BIT; +}; +union un_if1l { + unsigned char if1l; + __BITS8 BIT; +}; +union un_if1h { + unsigned char if1h; + __BITS8 BIT; +}; +union un_mk0 { + unsigned short mk0; + __BITS16 BIT; +}; +union un_mk0l { + unsigned char mk0l; + __BITS8 BIT; +}; +union un_mk0h { + unsigned char mk0h; + __BITS8 BIT; +}; +union un_mk1 { + unsigned short mk1; + __BITS16 BIT; +}; +union un_mk1l { + unsigned char mk1l; + __BITS8 BIT; +}; +union un_mk1h { + unsigned char mk1h; + __BITS8 BIT; +}; +union un_pr00 { + unsigned short pr00; + __BITS16 BIT; +}; +union un_pr00l { + unsigned char pr00l; + __BITS8 BIT; +}; +union un_pr00h { + unsigned char pr00h; + __BITS8 BIT; +}; +union un_pr01 { + unsigned short pr01; + __BITS16 BIT; +}; +union un_pr01l { + unsigned char pr01l; + __BITS8 BIT; +}; +union un_pr01h { + unsigned char pr01h; + __BITS8 BIT; +}; +union un_pr10 { + unsigned short pr10; + __BITS16 BIT; +}; +union un_pr10l { + unsigned char pr10l; + __BITS8 BIT; +}; +union un_pr10h { + unsigned char pr10h; + __BITS8 BIT; +}; +union un_pr11 { + unsigned short pr11; + __BITS16 BIT; +}; +union un_pr11l { + unsigned char pr11l; + __BITS8 BIT; +}; +union un_pr11h { + unsigned char pr11h; + __BITS8 BIT; +}; +union un_pmc { + unsigned char pmc; + __BITS8 BIT; +}; + +#define P0 (*(volatile union un_p0 *)0xFFF00).p0 +#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT +#define P1 (*(volatile union un_p1 *)0xFFF01).p1 +#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT +#define P2 (*(volatile union un_p2 *)0xFFF02).p2 +#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT +#define P3 (*(volatile union un_p3 *)0xFFF03).p3 +#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT +#define P4 (*(volatile union un_p4 *)0xFFF04).p4 +#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT +#define P5 (*(volatile union un_p5 *)0xFFF05).p5 +#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT +#define P6 (*(volatile union un_p6 *)0xFFF06).p6 +#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT +#define P7 (*(volatile union un_p7 *)0xFFF07).p7 +#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT +#define P8 (*(volatile union un_p8 *)0xFFF08).p8 +#define P8_bit (*(volatile union un_p8 *)0xFFF08).BIT +#define P10 (*(volatile union un_p10 *)0xFFF0A).p10 +#define P10_bit (*(volatile union un_p10 *)0xFFF0A).BIT +#define P11 (*(volatile union un_p11 *)0xFFF0B).p11 +#define P11_bit (*(volatile union un_p11 *)0xFFF0B).BIT +#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 +#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT +#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 +#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT +#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 +#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT +#define P15 (*(volatile union un_p15 *)0xFFF0F).p15 +#define P15_bit (*(volatile union un_p15 *)0xFFF0F).BIT +#define SDR00 (*(volatile unsigned short *)0xFFF10) +#define SIO00 (*(volatile unsigned char *)0xFFF10) +#define TXD0 (*(volatile unsigned char *)0xFFF10) +#define SDR01 (*(volatile unsigned short *)0xFFF12) +#define RXD0 (*(volatile unsigned char *)0xFFF12) +#define SIO01 (*(volatile unsigned char *)0xFFF12) +#define SDR12 (*(volatile unsigned short *)0xFFF14) +#define SIO30 (*(volatile unsigned char *)0xFFF14) +#define TXD3 (*(volatile unsigned char *)0xFFF14) +#define SDR13 (*(volatile unsigned short *)0xFFF16) +#define RXD3 (*(volatile unsigned char *)0xFFF16) +#define SIO31 (*(volatile unsigned char *)0xFFF16) +#define TDR00 (*(volatile unsigned short *)0xFFF18) +#define TDR01 (*(volatile unsigned short *)0xFFF1A) +#define TDR01L (*(volatile unsigned char *)0xFFF1A) +#define TDR01H (*(volatile unsigned char *)0xFFF1B) +#define ADCR (*(volatile unsigned short *)0xFFF1E) +#define ADCRH (*(volatile unsigned char *)0xFFF1F) +#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 +#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT +#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 +#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT +#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 +#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT +#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 +#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT +#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 +#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT +#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 +#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT +#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 +#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT +#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 +#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT +#define PM8 (*(volatile union un_pm8 *)0xFFF28).pm8 +#define PM8_bit (*(volatile union un_pm8 *)0xFFF28).BIT +#define PM10 (*(volatile union un_pm10 *)0xFFF2A).pm10 +#define PM10_bit (*(volatile union un_pm10 *)0xFFF2A).BIT +#define PM11 (*(volatile union un_pm11 *)0xFFF2B).pm11 +#define PM11_bit (*(volatile union un_pm11 *)0xFFF2B).BIT +#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 +#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT +#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 +#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT +#define PM15 (*(volatile union un_pm15 *)0xFFF2F).pm15 +#define PM15_bit (*(volatile union un_pm15 *)0xFFF2F).BIT +#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 +#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT +#define ADS (*(volatile union un_ads *)0xFFF31).ads +#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT +#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 +#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT +#define DACS0 (*(volatile unsigned char *)0xFFF34) +#define DACS1 (*(volatile unsigned char *)0xFFF35) +#define DAM (*(volatile union un_dam *)0xFFF36).dam +#define DAM_bit (*(volatile union un_dam *)0xFFF36).BIT +#define KRM (*(volatile union un_krm *)0xFFF37).krm +#define KRM_bit (*(volatile union un_krm *)0xFFF37).BIT +#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 +#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT +#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 +#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT +#define EGP1 (*(volatile union un_egp1 *)0xFFF3A).egp1 +#define EGP1_bit (*(volatile union un_egp1 *)0xFFF3A).BIT +#define EGN1 (*(volatile union un_egn1 *)0xFFF3B).egn1 +#define EGN1_bit (*(volatile union un_egn1 *)0xFFF3B).BIT +#define SDR02 (*(volatile unsigned short *)0xFFF44) +#define SIO10 (*(volatile unsigned char *)0xFFF44) +#define TXD1 (*(volatile unsigned char *)0xFFF44) +#define SDR03 (*(volatile unsigned short *)0xFFF46) +#define RXD1 (*(volatile unsigned char *)0xFFF46) +#define SIO11 (*(volatile unsigned char *)0xFFF46) +#define SDR10 (*(volatile unsigned short *)0xFFF48) +#define SIO20 (*(volatile unsigned char *)0xFFF48) +#define TXD2 (*(volatile unsigned char *)0xFFF48) +#define SDR11 (*(volatile unsigned short *)0xFFF4A) +#define RXD2 (*(volatile unsigned char *)0xFFF4A) +#define SIO21 (*(volatile unsigned char *)0xFFF4A) +#define IICA0 (*(volatile unsigned char *)0xFFF50) +#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 +#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT +#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 +#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT +#define IICA1 (*(volatile unsigned char *)0xFFF54) +#define IICS1 (*(volatile union un_iics1 *)0xFFF55).iics1 +#define IICS1_bit (*(volatile union un_iics1 *)0xFFF55).BIT +#define IICF1 (*(volatile union un_iicf1 *)0xFFF56).iicf1 +#define IICF1_bit (*(volatile union un_iicf1 *)0xFFF56).BIT +#define TRDGRC0 (*(volatile unsigned short *)0xFFF58) +#define TRDGRD0 (*(volatile unsigned short *)0xFFF5A) +#define TRDGRC1 (*(volatile unsigned short *)0xFFF5C) +#define TRDGRD1 (*(volatile unsigned short *)0xFFF5E) +#define TRGGRC (*(volatile unsigned short *)0xFFF60) +#define TRGGRD (*(volatile unsigned short *)0xFFF62) +#define TDR02 (*(volatile unsigned short *)0xFFF64) +#define TDR03 (*(volatile unsigned short *)0xFFF66) +#define TDR03L (*(volatile unsigned char *)0xFFF66) +#define TDR03H (*(volatile unsigned char *)0xFFF67) +#define TDR10 (*(volatile unsigned short *)0xFFF70) +#define TDR11 (*(volatile unsigned short *)0xFFF72) +#define TDR11L (*(volatile unsigned char *)0xFFF72) +#define TDR11H (*(volatile unsigned char *)0xFFF73) +#define TDR12 (*(volatile unsigned short *)0xFFF74) +#define TDR13 (*(volatile unsigned short *)0xFFF76) +#define TDR13L (*(volatile unsigned char *)0xFFF76) +#define TDR13H (*(volatile unsigned char *)0xFFF77) +#define FLPMC (*(volatile unsigned char *)0xFFF80) +#define FLARS (*(volatile union un_flars *)0xFFF81).flars +#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT +#define FLAPL (*(volatile unsigned short *)0xFFF82) +#define FLAPH (*(volatile unsigned char *)0xFFF84) +#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq +#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT +#define FLSEDL (*(volatile unsigned short *)0xFFF86) +#define FLSEDH (*(volatile unsigned char *)0xFFF88) +#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst +#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT +#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl +#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT +#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth +#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT +#define FLWL (*(volatile unsigned short *)0xFFF8C) +#define FLWH (*(volatile unsigned short *)0xFFF8E) +#define ITMC (*(volatile unsigned short *)0xFFF90) +#define SEC (*(volatile unsigned char *)0xFFF92) +#define MIN (*(volatile unsigned char *)0xFFF93) +#define HOUR (*(volatile unsigned char *)0xFFF94) +#define WEEK (*(volatile unsigned char *)0xFFF95) +#define DAY (*(volatile unsigned char *)0xFFF96) +#define MONTH (*(volatile unsigned char *)0xFFF97) +#define YEAR (*(volatile unsigned char *)0xFFF98) +#define SUBCUD (*(volatile unsigned char *)0xFFF99) +#define ALARMWM (*(volatile unsigned char *)0xFFF9A) +#define ALARMWH (*(volatile unsigned char *)0xFFF9B) +#define ALARMWW (*(volatile unsigned char *)0xFFF9C) +#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 +#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT +#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 +#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT +#define CMC (*(volatile unsigned char *)0xFFFA0) +#define CSC (*(volatile union un_csc *)0xFFFA1).csc +#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT +#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc +#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT +#define OSTS (*(volatile unsigned char *)0xFFFA3) +#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc +#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT +#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 +#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT +#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 +#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT +#define RESF (*(volatile unsigned char *)0xFFFA8) +#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim +#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT +#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis +#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT +#define WDTE (*(volatile unsigned char *)0xFFFAB) +#define CRCIN (*(volatile unsigned char *)0xFFFAC) +#define RXB (*(volatile unsigned char *)0xFFFAD) +#define TXS (*(volatile unsigned char *)0xFFFAD) +#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 +#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT +#define ASIM (*(volatile union un_asim *)0xFFFAF).asim +#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT +#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 +#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT +#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l +#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT +#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h +#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT +#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 +#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT +#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l +#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT +#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h +#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT +#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 +#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT +#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l +#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT +#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h +#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT +#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 +#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT +#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l +#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT +#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h +#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT +#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 +#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT +#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l +#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT +#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h +#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT +#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 +#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT +#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l +#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT +#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h +#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT +#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 +#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT +#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l +#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT +#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h +#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT +#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 +#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT +#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l +#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT +#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h +#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT +#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 +#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT +#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l +#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT +#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h +#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT +#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 +#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT +#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l +#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT +#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h +#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT +#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 +#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT +#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l +#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT +#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h +#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT +#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 +#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT +#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l +#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT +#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h +#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT +#define MACRL (*(volatile unsigned short *)0xFFFF0) +#define MACRH (*(volatile unsigned short *)0xFFFF2) +#define MDUC (*(volatile unsigned char *)0xFFFFB) +#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc +#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT + +/* + Sfr bits + */ +#define ADCE ADM0_bit.no0 +#define ADCS ADM0_bit.no7 +#define DACE0 DAM_bit.no4 +#define DACE1 DAM_bit.no5 +#define SPD0 IICS0_bit.no0 +#define STD0 IICS0_bit.no1 +#define ACKD0 IICS0_bit.no2 +#define TRC0 IICS0_bit.no3 +#define COI0 IICS0_bit.no4 +#define EXC0 IICS0_bit.no5 +#define ALD0 IICS0_bit.no6 +#define MSTS0 IICS0_bit.no7 +#define IICRSV0 IICF0_bit.no0 +#define STCEN0 IICF0_bit.no1 +#define IICBSY0 IICF0_bit.no6 +#define STCF0 IICF0_bit.no7 +#define SPD1 IICS1_bit.no0 +#define STD1 IICS1_bit.no1 +#define ACKD1 IICS1_bit.no2 +#define TRC1 IICS1_bit.no3 +#define COI1 IICS1_bit.no4 +#define EXC1 IICS1_bit.no5 +#define ALD1 IICS1_bit.no6 +#define MSTS1 IICS1_bit.no7 +#define IICRSV1 IICF1_bit.no0 +#define STCEN1 IICF1_bit.no1 +#define IICBSY1 IICF1_bit.no6 +#define STCF1 IICF1_bit.no7 +#define FSSTP FSSQ_bit.no6 +#define SQST FSSQ_bit.no7 +#define SQEND FSASTH_bit.no6 +#define ESQEND FSASTH_bit.no7 +#define RCLOE1 RTCC0_bit.no5 +#define RTCE RTCC0_bit.no7 +#define RWAIT RTCC1_bit.no0 +#define RWST RTCC1_bit.no1 +#define RIFG RTCC1_bit.no3 +#define WAFG RTCC1_bit.no4 +#define WALIE RTCC1_bit.no6 +#define WALE RTCC1_bit.no7 +#define HIOSTOP CSC_bit.no0 +#define XTSTOP CSC_bit.no6 +#define MSTOP CSC_bit.no7 +#define SDIV CKC_bit.no3 +#define MCM0 CKC_bit.no4 +#define MCS CKC_bit.no5 +#define CSS CKC_bit.no6 +#define CLS CKC_bit.no7 +#define PCLOE0 CKS0_bit.no7 +#define PCLOE1 CKS1_bit.no7 +#define LVIF LVIM_bit.no0 +#define LVIOMSK LVIM_bit.no1 +#define LVISEN LVIM_bit.no7 +#define LVILV LVIS_bit.no0 +#define LVIMD LVIS_bit.no7 +#define TMIF11 IF2_bit.no0 +#define TMIF12 IF2_bit.no1 +#define TMIF13 IF2_bit.no2 +#define PIF6 IF2_bit.no3 +#define PIF7 IF2_bit.no4 +#define PIF8 IF2_bit.no5 +#define PIF9 IF2_bit.no6 +#define CMPIF0 IF2_bit.no7 +#define PIF10 IF2_bit.no7 +#define CMPIF1 IF2H_bit.no0 +#define PIF11 IF2H_bit.no0 +#define TRDIF0 IF2H_bit.no1 +#define TRDIF1 IF2H_bit.no2 +#define TRGIF IF2H_bit.no3 +#define SREIF3 IF2H_bit.no4 +#define TMIF13H IF2H_bit.no4 +#define IICAIF1 IF2H_bit.no6 +#define FLIF IF2H_bit.no7 +#define TMMK11 MK2_bit.no0 +#define TMMK12 MK2_bit.no1 +#define TMMK13 MK2_bit.no2 +#define PMK6 MK2_bit.no3 +#define PMK7 MK2_bit.no4 +#define PMK8 MK2_bit.no5 +#define PMK9 MK2_bit.no6 +#define CMPMK0 MK2_bit.no7 +#define PMK10 MK2_bit.no7 +#define CMPMK1 MK2H_bit.no0 +#define PMK11 MK2H_bit.no0 +#define TRDMK0 MK2H_bit.no1 +#define TRDMK1 MK2H_bit.no2 +#define TRGMK MK2H_bit.no3 +#define SREMK3 MK2H_bit.no4 +#define TMMK13H MK2H_bit.no4 +#define IICAMK1 MK2H_bit.no6 +#define FLMK MK2H_bit.no7 +#define TMPR011 PR02_bit.no0 +#define TMPR012 PR02_bit.no1 +#define TMPR013 PR02_bit.no2 +#define PPR06 PR02_bit.no3 +#define PPR07 PR02_bit.no4 +#define PPR08 PR02_bit.no5 +#define PPR09 PR02_bit.no6 +#define CMPPR00 PR02_bit.no7 +#define PPR010 PR02_bit.no7 +#define CMPPR01 PR02H_bit.no0 +#define PPR011 PR02H_bit.no0 +#define TRDPR00 PR02H_bit.no1 +#define TRDPR01 PR02H_bit.no2 +#define TRGPR0 PR02H_bit.no3 +#define SREPR03 PR02H_bit.no4 +#define TMPR013H PR02H_bit.no4 +#define IICAPR01 PR02H_bit.no6 +#define FLPR0 PR02H_bit.no7 +#define TMPR111 PR12_bit.no0 +#define TMPR112 PR12_bit.no1 +#define TMPR113 PR12_bit.no2 +#define PPR16 PR12_bit.no3 +#define PPR17 PR12_bit.no4 +#define PPR18 PR12_bit.no5 +#define PPR19 PR12_bit.no6 +#define CMPPR10 PR12_bit.no7 +#define PPR110 PR12_bit.no7 +#define CMPPR11 PR12H_bit.no0 +#define PPR111 PR12H_bit.no0 +#define TRDPR10 PR12H_bit.no1 +#define TRDPR11 PR12H_bit.no2 +#define TRGPR1 PR12H_bit.no3 +#define SREPR13 PR12H_bit.no4 +#define TMPR113H PR12H_bit.no4 +#define IICAPR11 PR12H_bit.no6 +#define FLPR1 PR12H_bit.no7 +#define SROIF IF0_bit.no0 +#define WDTIIF IF0_bit.no0 +#define LVIIF IF0_bit.no1 +#define PIF0 IF0_bit.no2 +#define PIF1 IF0_bit.no3 +#define PIF2 IF0_bit.no4 +#define PIF3 IF0_bit.no5 +#define PIF4 IF0_bit.no6 +#define PIF5 IF0_bit.no7 +#define CSIIF20 IF0H_bit.no0 +#define IICIF20 IF0H_bit.no0 +#define STIF2 IF0H_bit.no0 +#define CSIIF21 IF0H_bit.no1 +#define IICIF21 IF0H_bit.no1 +#define SRIF2 IF0H_bit.no1 +#define SREIF2 IF0H_bit.no2 +#define TMIF11H IF0H_bit.no2 +#define CSIIF00 IF0H_bit.no5 +#define IICIF00 IF0H_bit.no5 +#define STIF0 IF0H_bit.no5 +#define CSIIF01 IF0H_bit.no6 +#define IICIF01 IF0H_bit.no6 +#define SRIF0 IF0H_bit.no6 +#define SREIF0 IF0H_bit.no7 +#define TMIF01H IF0H_bit.no7 +#define CSIIF10 IF1_bit.no0 +#define IICIF10 IF1_bit.no0 +#define STIF1 IF1_bit.no0 +#define CSIIF11 IF1_bit.no1 +#define IICIF11 IF1_bit.no1 +#define SRIF1 IF1_bit.no1 +#define SREIF1 IF1_bit.no2 +#define TMIF03H IF1_bit.no2 +#define IICAIF0 IF1_bit.no3 +#define TMIF00 IF1_bit.no4 +#define TMIF01 IF1_bit.no5 +#define TMIF02 IF1_bit.no6 +#define TMIF03 IF1_bit.no7 +#define ADIF IF1H_bit.no0 +#define RTCIF IF1H_bit.no1 +#define ITIF IF1H_bit.no2 +#define KRIF IF1H_bit.no3 +#define CSIIF30 IF1H_bit.no4 +#define IICIF30 IF1H_bit.no4 +#define STIF3 IF1H_bit.no4 +#define CSIIF31 IF1H_bit.no5 +#define IICIF31 IF1H_bit.no5 +#define SRIF3 IF1H_bit.no5 +#define TRJIF0 IF1H_bit.no6 +#define TMIF10 IF1H_bit.no7 +#define SROMK MK0_bit.no0 +#define WDTIMK MK0_bit.no0 +#define LVIMK MK0_bit.no1 +#define PMK0 MK0_bit.no2 +#define PMK1 MK0_bit.no3 +#define PMK2 MK0_bit.no4 +#define PMK3 MK0_bit.no5 +#define PMK4 MK0_bit.no6 +#define PMK5 MK0_bit.no7 +#define CSIMK20 MK0H_bit.no0 +#define IICMK20 MK0H_bit.no0 +#define STMK2 MK0H_bit.no0 +#define CSIMK21 MK0H_bit.no1 +#define IICMK21 MK0H_bit.no1 +#define SRMK2 MK0H_bit.no1 +#define SREMK2 MK0H_bit.no2 +#define TMMK11H MK0H_bit.no2 +#define CSIMK00 MK0H_bit.no5 +#define IICMK00 MK0H_bit.no5 +#define STMK0 MK0H_bit.no5 +#define CSIMK01 MK0H_bit.no6 +#define IICMK01 MK0H_bit.no6 +#define SRMK0 MK0H_bit.no6 +#define SREMK0 MK0H_bit.no7 +#define TMMK01H MK0H_bit.no7 +#define CSIMK10 MK1_bit.no0 +#define IICMK10 MK1_bit.no0 +#define STMK1 MK1_bit.no0 +#define CSIMK11 MK1_bit.no1 +#define IICMK11 MK1_bit.no1 +#define SRMK1 MK1_bit.no1 +#define SREMK1 MK1_bit.no2 +#define TMMK03H MK1_bit.no2 +#define IICAMK0 MK1_bit.no3 +#define TMMK00 MK1_bit.no4 +#define TMMK01 MK1_bit.no5 +#define TMMK02 MK1_bit.no6 +#define TMMK03 MK1_bit.no7 +#define ADMK MK1H_bit.no0 +#define RTCMK MK1H_bit.no1 +#define ITMK MK1H_bit.no2 +#define KRMK MK1H_bit.no3 +#define CSIMK30 MK1H_bit.no4 +#define IICMK30 MK1H_bit.no4 +#define STMK3 MK1H_bit.no4 +#define CSIMK31 MK1H_bit.no5 +#define IICMK31 MK1H_bit.no5 +#define SRMK3 MK1H_bit.no5 +#define TRJMK0 MK1H_bit.no6 +#define TMMK10 MK1H_bit.no7 +#define SROPR0 PR00_bit.no0 +#define WDTIPR0 PR00_bit.no0 +#define LVIPR0 PR00_bit.no1 +#define PPR00 PR00_bit.no2 +#define PPR01 PR00_bit.no3 +#define PPR02 PR00_bit.no4 +#define PPR03 PR00_bit.no5 +#define PPR04 PR00_bit.no6 +#define PPR05 PR00_bit.no7 +#define CSIPR020 PR00H_bit.no0 +#define IICPR020 PR00H_bit.no0 +#define STPR02 PR00H_bit.no0 +#define CSIPR021 PR00H_bit.no1 +#define IICPR021 PR00H_bit.no1 +#define SRPR02 PR00H_bit.no1 +#define SREPR02 PR00H_bit.no2 +#define TMPR011H PR00H_bit.no2 +#define CSIPR000 PR00H_bit.no5 +#define IICPR000 PR00H_bit.no5 +#define STPR00 PR00H_bit.no5 +#define CSIPR001 PR00H_bit.no6 +#define IICPR001 PR00H_bit.no6 +#define SRPR00 PR00H_bit.no6 +#define SREPR00 PR00H_bit.no7 +#define TMPR001H PR00H_bit.no7 +#define CSIPR010 PR01_bit.no0 +#define IICPR010 PR01_bit.no0 +#define STPR01 PR01_bit.no0 +#define CSIPR011 PR01_bit.no1 +#define IICPR011 PR01_bit.no1 +#define SRPR01 PR01_bit.no1 +#define SREPR01 PR01_bit.no2 +#define TMPR003H PR01_bit.no2 +#define IICAPR00 PR01_bit.no3 +#define TMPR000 PR01_bit.no4 +#define TMPR001 PR01_bit.no5 +#define TMPR002 PR01_bit.no6 +#define TMPR003 PR01_bit.no7 +#define ADPR0 PR01H_bit.no0 +#define RTCPR0 PR01H_bit.no1 +#define ITPR0 PR01H_bit.no2 +#define KRPR0 PR01H_bit.no3 +#define CSIPR030 PR01H_bit.no4 +#define IICPR030 PR01H_bit.no4 +#define STPR03 PR01H_bit.no4 +#define CSIPR031 PR01H_bit.no5 +#define IICPR031 PR01H_bit.no5 +#define SRPR03 PR01H_bit.no5 +#define TRJPR00 PR01H_bit.no6 +#define TMPR010 PR01H_bit.no7 +#define SROPR1 PR10_bit.no0 +#define WDTIPR1 PR10_bit.no0 +#define LVIPR1 PR10_bit.no1 +#define PPR10 PR10_bit.no2 +#define PPR11 PR10_bit.no3 +#define PPR12 PR10_bit.no4 +#define PPR13 PR10_bit.no5 +#define PPR14 PR10_bit.no6 +#define PPR15 PR10_bit.no7 +#define CSIPR120 PR10H_bit.no0 +#define IICPR120 PR10H_bit.no0 +#define STPR12 PR10H_bit.no0 +#define CSIPR121 PR10H_bit.no1 +#define IICPR121 PR10H_bit.no1 +#define SRPR12 PR10H_bit.no1 +#define SREPR12 PR10H_bit.no2 +#define TMPR111H PR10H_bit.no2 +#define CSIPR100 PR10H_bit.no5 +#define IICPR100 PR10H_bit.no5 +#define STPR10 PR10H_bit.no5 +#define CSIPR101 PR10H_bit.no6 +#define IICPR101 PR10H_bit.no6 +#define SRPR10 PR10H_bit.no6 +#define SREPR10 PR10H_bit.no7 +#define TMPR101H PR10H_bit.no7 +#define CSIPR110 PR11_bit.no0 +#define IICPR110 PR11_bit.no0 +#define STPR11 PR11_bit.no0 +#define CSIPR111 PR11_bit.no1 +#define IICPR111 PR11_bit.no1 +#define SRPR11 PR11_bit.no1 +#define SREPR11 PR11_bit.no2 +#define TMPR103H PR11_bit.no2 +#define IICAPR10 PR11_bit.no3 +#define TMPR100 PR11_bit.no4 +#define TMPR101 PR11_bit.no5 +#define TMPR102 PR11_bit.no6 +#define TMPR103 PR11_bit.no7 +#define ADPR1 PR11H_bit.no0 +#define RTCPR1 PR11H_bit.no1 +#define ITPR1 PR11H_bit.no2 +#define KRPR1 PR11H_bit.no3 +#define CSIPR130 PR11H_bit.no4 +#define IICPR130 PR11H_bit.no4 +#define STPR13 PR11H_bit.no4 +#define CSIPR131 PR11H_bit.no5 +#define IICPR131 PR11H_bit.no5 +#define SRPR13 PR11H_bit.no5 +#define TRJPR10 PR11H_bit.no6 +#define TMPR110 PR11H_bit.no7 +#define MAA PMC_bit.no0 + +/* + Interrupt vector addresses + */ +#define RST_vect (0x0) +#define INTDBG_vect (0x2) +#define INTSRO_vect (0x4) +#define INTWDTI_vect (0x4) +#define INTLVI_vect (0x6) +#define INTP0_vect (0x8) +#define INTP1_vect (0xA) +#define INTP2_vect (0xC) +#define INTP3_vect (0xE) +#define INTP4_vect (0x10) +#define INTP5_vect (0x12) +#define INTCSI20_vect (0x14) +#define INTIIC20_vect (0x14) +#define INTST2_vect (0x14) +#define INTCSI21_vect (0x16) +#define INTIIC21_vect (0x16) +#define INTSR2_vect (0x16) +#define INTSRE2_vect (0x18) +#define INTTM11H_vect (0x18) +#define INTCSI00_vect (0x1E) +#define INTIIC00_vect (0x1E) +#define INTST0_vect (0x1E) +#define INTCSI01_vect (0x20) +#define INTIIC01_vect (0x20) +#define INTSR0_vect (0x20) +#define INTSRE0_vect (0x22) +#define INTTM01H_vect (0x22) +#define INTCSI10_vect (0x24) +#define INTIIC10_vect (0x24) +#define INTST1_vect (0x24) +#define INTCSI11_vect (0x26) +#define INTIIC11_vect (0x26) +#define INTSR1_vect (0x26) +#define INTSRE1_vect (0x28) +#define INTTM03H_vect (0x28) +#define INTIICA0_vect (0x2A) +#define INTTM00_vect (0x2C) +#define INTTM01_vect (0x2E) +#define INTTM02_vect (0x30) +#define INTTM03_vect (0x32) +#define INTAD_vect (0x34) +#define INTRTC_vect (0x36) +#define INTIT_vect (0x38) +#define INTKR_vect (0x3A) +#define INTCSI30_vect (0x3C) +#define INTIIC30_vect (0x3C) +#define INTST3_vect (0x3C) +#define INTCSI31_vect (0x3E) +#define INTIIC31_vect (0x3E) +#define INTSR3_vect (0x3E) +#define INTTRJ0_vect (0x40) +#define INTTM10_vect (0x42) +#define INTTM11_vect (0x44) +#define INTTM12_vect (0x46) +#define INTTM13_vect (0x48) +#define INTP6_vect (0x4A) +#define INTP7_vect (0x4C) +#define INTP8_vect (0x4E) +#define INTP9_vect (0x50) +#define INTCMP0_vect (0x52) +#define INTP10_vect (0x52) +#define INTCMP1_vect (0x54) +#define INTP11_vect (0x54) +#define INTTRD0_vect (0x56) +#define INTTRD1_vect (0x58) +#define INTTRG_vect (0x5A) +#define INTSRE3_vect (0x5C) +#define INTTM13H_vect (0x5C) +#define INTIICA1_vect (0x60) +#define INTFL_vect (0x62) +#define BRK_I_vect (0x7E) +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G14_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G14_ext.h new file mode 100644 index 000000000..892692056 --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G14_ext.h @@ -0,0 +1,1204 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78G14 */ +/* FILE : iodefine_ext.h */ +/* DESCRIPTION : Definition of Extended SFRs */ +/* CPU SERIES : RL78 - G14 */ +/* CPU TYPE : R5F104PJ */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F104PJ.DVF */ +/* Copyright(C) 2012 Renesas */ +/* File Version V2.00 */ +/* Tool Version 1.9.7121 */ +/* Date Generated 13/11/2012 */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_EXT_H +#define IODEFINE_EXT_H + +/* + IO Registers + */ +union un_adm2 { + unsigned char adm2; + __BITS8 BIT; +}; +union un_pu0 { + unsigned char pu0; + __BITS8 BIT; +}; +union un_pu1 { + unsigned char pu1; + __BITS8 BIT; +}; +union un_pu3 { + unsigned char pu3; + __BITS8 BIT; +}; +union un_pu4 { + unsigned char pu4; + __BITS8 BIT; +}; +union un_pu5 { + unsigned char pu5; + __BITS8 BIT; +}; +union un_pu6 { + unsigned char pu6; + __BITS8 BIT; +}; +union un_pu7 { + unsigned char pu7; + __BITS8 BIT; +}; +union un_pu8 { + unsigned char pu8; + __BITS8 BIT; +}; +union un_pu10 { + unsigned char pu10; + __BITS8 BIT; +}; +union un_pu11 { + unsigned char pu11; + __BITS8 BIT; +}; +union un_pu12 { + unsigned char pu12; + __BITS8 BIT; +}; +union un_pu14 { + unsigned char pu14; + __BITS8 BIT; +}; +union un_pim0 { + unsigned char pim0; + __BITS8 BIT; +}; +union un_pim1 { + unsigned char pim1; + __BITS8 BIT; +}; +union un_pim3 { + unsigned char pim3; + __BITS8 BIT; +}; +union un_pim4 { + unsigned char pim4; + __BITS8 BIT; +}; +union un_pim5 { + unsigned char pim5; + __BITS8 BIT; +}; +union un_pim8 { + unsigned char pim8; + __BITS8 BIT; +}; +union un_pim14 { + unsigned char pim14; + __BITS8 BIT; +}; +union un_pom0 { + unsigned char pom0; + __BITS8 BIT; +}; +union un_pom1 { + unsigned char pom1; + __BITS8 BIT; +}; +union un_pom3 { + unsigned char pom3; + __BITS8 BIT; +}; +union un_pom4 { + unsigned char pom4; + __BITS8 BIT; +}; +union un_pom5 { + unsigned char pom5; + __BITS8 BIT; +}; +union un_pom7 { + unsigned char pom7; + __BITS8 BIT; +}; +union un_pom8 { + unsigned char pom8; + __BITS8 BIT; +}; +union un_pom14 { + unsigned char pom14; + __BITS8 BIT; +}; +union un_pmc0 { + unsigned char pmc0; + __BITS8 BIT; +}; +union un_pmc1 { + unsigned char pmc1; + __BITS8 BIT; +}; +union un_pmc10 { + unsigned char pmc10; + __BITS8 BIT; +}; +union un_pmc12 { + unsigned char pmc12; + __BITS8 BIT; +}; +union un_pmc14 { + unsigned char pmc14; + __BITS8 BIT; +}; +union un_nfen0 { + unsigned char nfen0; + __BITS8 BIT; +}; +union un_nfen1 { + unsigned char nfen1; + __BITS8 BIT; +}; +union un_nfen2 { + unsigned char nfen2; + __BITS8 BIT; +}; +union un_isc { + unsigned char isc; + __BITS8 BIT; +}; +union un_per1 { + unsigned char per1; + __BITS8 BIT; +}; +union un_pms { + unsigned char pms; + __BITS8 BIT; +}; +union un_gdidis { + unsigned char gdidis; + __BITS8 BIT; +}; +union un_dflctl { + unsigned char dflctl; + __BITS8 BIT; +}; +union un_bectl { + unsigned char bectl; + __BITS8 BIT; +}; +union un_fsse { + unsigned char fsse; + __BITS8 BIT; +}; +union un_pfs { + unsigned char pfs; + __BITS8 BIT; +}; +union un_per0 { + unsigned char per0; + __BITS8 BIT; +}; +union un_rmc { + unsigned char rmc; + __BITS8 BIT; +}; +union un_rpectl { + unsigned char rpectl; + __BITS8 BIT; +}; +union un_se0l { + unsigned char se0l; + __BITS8 BIT; +}; +union un_ss0l { + unsigned char ss0l; + __BITS8 BIT; +}; +union un_st0l { + unsigned char st0l; + __BITS8 BIT; +}; +union un_soe0l { + unsigned char soe0l; + __BITS8 BIT; +}; +union un_se1l { + unsigned char se1l; + __BITS8 BIT; +}; +union un_ss1l { + unsigned char ss1l; + __BITS8 BIT; +}; +union un_st1l { + unsigned char st1l; + __BITS8 BIT; +}; +union un_soe1l { + unsigned char soe1l; + __BITS8 BIT; +}; +union un_te0l { + unsigned char te0l; + __BITS8 BIT; +}; +union un_ts0l { + unsigned char ts0l; + __BITS8 BIT; +}; +union un_tt0l { + unsigned char tt0l; + __BITS8 BIT; +}; +union un_toe0l { + unsigned char toe0l; + __BITS8 BIT; +}; +union un_te1l { + unsigned char te1l; + __BITS8 BIT; +}; +union un_ts1l { + unsigned char ts1l; + __BITS8 BIT; +}; +union un_tt1l { + unsigned char tt1l; + __BITS8 BIT; +}; +union un_toe1l { + unsigned char toe1l; + __BITS8 BIT; +}; +union un_iicctl00 { + unsigned char iicctl00; + __BITS8 BIT; +}; +union un_iicctl01 { + unsigned char iicctl01; + __BITS8 BIT; +}; +union un_iicctl10 { + unsigned char iicctl10; + __BITS8 BIT; +}; +union un_iicctl11 { + unsigned char iicctl11; + __BITS8 BIT; +}; +union un_trjioc0 { + unsigned char trjioc0; + __BITS8 BIT; +}; +union un_trjmr0 { + unsigned char trjmr0; + __BITS8 BIT; +}; +union un_trjisr0 { + unsigned char trjisr0; + __BITS8 BIT; +}; +union un_trgmr { + unsigned char trgmr; + __BITS8 BIT; +}; +union un_trgcntc { + unsigned char trgcntc; + __BITS8 BIT; +}; +union un_trgcr { + unsigned char trgcr; + __BITS8 BIT; +}; +union un_trgier { + unsigned char trgier; + __BITS8 BIT; +}; +union un_trgsr { + unsigned char trgsr; + __BITS8 BIT; +}; +union un_trgior { + unsigned char trgior; + __BITS8 BIT; +}; +union un_trdelc { + unsigned char trdelc; + __BITS8 BIT; +}; +union un_trdmr { + unsigned char trdmr; + __BITS8 BIT; +}; +union un_trdpmr { + unsigned char trdpmr; + __BITS8 BIT; +}; +union un_trdfcr { + unsigned char trdfcr; + __BITS8 BIT; +}; +union un_trdoer1 { + unsigned char trdoer1; + __BITS8 BIT; +}; +union un_trdoer2 { + unsigned char trdoer2; + __BITS8 BIT; +}; +union un_trdocr { + unsigned char trdocr; + __BITS8 BIT; +}; +union un_trddf0 { + unsigned char trddf0; + __BITS8 BIT; +}; +union un_trddf1 { + unsigned char trddf1; + __BITS8 BIT; +}; +union un_trdcr0 { + unsigned char trdcr0; + __BITS8 BIT; +}; +union un_trdiora0 { + unsigned char trdiora0; + __BITS8 BIT; +}; +union un_trdiorc0 { + unsigned char trdiorc0; + __BITS8 BIT; +}; +union un_trdsr0 { + unsigned char trdsr0; + __BITS8 BIT; +}; +union un_trdier0 { + unsigned char trdier0; + __BITS8 BIT; +}; +union un_trdpocr0 { + unsigned char trdpocr0; + __BITS8 BIT; +}; +union un_trdcr1 { + unsigned char trdcr1; + __BITS8 BIT; +}; +union un_trdiora1 { + unsigned char trdiora1; + __BITS8 BIT; +}; +union un_trdiorc1 { + unsigned char trdiorc1; + __BITS8 BIT; +}; +union un_trdsr1 { + unsigned char trdsr1; + __BITS8 BIT; +}; +union un_trdier1 { + unsigned char trdier1; + __BITS8 BIT; +}; +union un_trdpocr1 { + unsigned char trdpocr1; + __BITS8 BIT; +}; +union un_dtcen0 { + unsigned char dtcen0; + __BITS8 BIT; +}; +union un_dtcen1 { + unsigned char dtcen1; + __BITS8 BIT; +}; +union un_dtcen2 { + unsigned char dtcen2; + __BITS8 BIT; +}; +union un_dtcen3 { + unsigned char dtcen3; + __BITS8 BIT; +}; +union un_dtcen4 { + unsigned char dtcen4; + __BITS8 BIT; +}; +union un_crc0ctl { + unsigned char crc0ctl; + __BITS8 BIT; +}; +union un_elselr00 { + unsigned char elselr00; + __BITS8 BIT; +}; +union un_elselr01 { + unsigned char elselr01; + __BITS8 BIT; +}; +union un_elselr02 { + unsigned char elselr02; + __BITS8 BIT; +}; +union un_elselr03 { + unsigned char elselr03; + __BITS8 BIT; +}; +union un_elselr04 { + unsigned char elselr04; + __BITS8 BIT; +}; +union un_elselr05 { + unsigned char elselr05; + __BITS8 BIT; +}; +union un_elselr06 { + unsigned char elselr06; + __BITS8 BIT; +}; +union un_elselr07 { + unsigned char elselr07; + __BITS8 BIT; +}; +union un_elselr08 { + unsigned char elselr08; + __BITS8 BIT; +}; +union un_elselr09 { + unsigned char elselr09; + __BITS8 BIT; +}; +union un_elselr10 { + unsigned char elselr10; + __BITS8 BIT; +}; +union un_elselr11 { + unsigned char elselr11; + __BITS8 BIT; +}; +union un_elselr12 { + unsigned char elselr12; + __BITS8 BIT; +}; +union un_elselr13 { + unsigned char elselr13; + __BITS8 BIT; +}; +union un_elselr14 { + unsigned char elselr14; + __BITS8 BIT; +}; +union un_elselr15 { + unsigned char elselr15; + __BITS8 BIT; +}; +union un_elselr16 { + unsigned char elselr16; + __BITS8 BIT; +}; +union un_elselr17 { + unsigned char elselr17; + __BITS8 BIT; +}; +union un_elselr18 { + unsigned char elselr18; + __BITS8 BIT; +}; +union un_elselr19 { + unsigned char elselr19; + __BITS8 BIT; +}; +union un_elselr20 { + unsigned char elselr20; + __BITS8 BIT; +}; +union un_elselr21 { + unsigned char elselr21; + __BITS8 BIT; +}; +union un_elselr22 { + unsigned char elselr22; + __BITS8 BIT; +}; +union un_elselr23 { + unsigned char elselr23; + __BITS8 BIT; +}; +union un_elselr24 { + unsigned char elselr24; + __BITS8 BIT; +}; +union un_elselr25 { + unsigned char elselr25; + __BITS8 BIT; +}; +union un_compmdr { + unsigned char compmdr; + __BITS8 BIT; +}; +union un_compfir { + unsigned char compfir; + __BITS8 BIT; +}; +union un_compocr { + unsigned char compocr; + __BITS8 BIT; +}; +union un_comptcr { + unsigned char comptcr; + __BITS8 BIT; +}; + +#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 +#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT +#define ADUL (*(volatile unsigned char *)0xF0011) +#define ADLL (*(volatile unsigned char *)0xF0012) +#define ADTES (*(volatile unsigned char *)0xF0013) +#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 +#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT +#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 +#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT +#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 +#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT +#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 +#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT +#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 +#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT +#define PU6 (*(volatile union un_pu6 *)0xF0036).pu6 +#define PU6_bit (*(volatile union un_pu6 *)0xF0036).BIT +#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 +#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT +#define PU8 (*(volatile union un_pu8 *)0xF0038).pu8 +#define PU8_bit (*(volatile union un_pu8 *)0xF0038).BIT +#define PU10 (*(volatile union un_pu10 *)0xF003A).pu10 +#define PU10_bit (*(volatile union un_pu10 *)0xF003A).BIT +#define PU11 (*(volatile union un_pu11 *)0xF003B).pu11 +#define PU11_bit (*(volatile union un_pu11 *)0xF003B).BIT +#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 +#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT +#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 +#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT +#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 +#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT +#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 +#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT +#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 +#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT +#define PIM4 (*(volatile union un_pim4 *)0xF0044).pim4 +#define PIM4_bit (*(volatile union un_pim4 *)0xF0044).BIT +#define PIM5 (*(volatile union un_pim5 *)0xF0045).pim5 +#define PIM5_bit (*(volatile union un_pim5 *)0xF0045).BIT +#define PIM8 (*(volatile union un_pim8 *)0xF0048).pim8 +#define PIM8_bit (*(volatile union un_pim8 *)0xF0048).BIT +#define PIM14 (*(volatile union un_pim14 *)0xF004E).pim14 +#define PIM14_bit (*(volatile union un_pim14 *)0xF004E).BIT +#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 +#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT +#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 +#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT +#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 +#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT +#define POM4 (*(volatile union un_pom4 *)0xF0054).pom4 +#define POM4_bit (*(volatile union un_pom4 *)0xF0054).BIT +#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 +#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT +#define POM7 (*(volatile union un_pom7 *)0xF0057).pom7 +#define POM7_bit (*(volatile union un_pom7 *)0xF0057).BIT +#define POM8 (*(volatile union un_pom8 *)0xF0058).pom8 +#define POM8_bit (*(volatile union un_pom8 *)0xF0058).BIT +#define POM14 (*(volatile union un_pom14 *)0xF005E).pom14 +#define POM14_bit (*(volatile union un_pom14 *)0xF005E).BIT +#define PMC0 (*(volatile union un_pmc0 *)0xF0060).pmc0 +#define PMC0_bit (*(volatile union un_pmc0 *)0xF0060).BIT +#define PMC1 (*(volatile union un_pmc1 *)0xF0061).pmc1 +#define PMC1_bit (*(volatile union un_pmc1 *)0xF0061).BIT +#define PMC10 (*(volatile union un_pmc10 *)0xF006A).pmc10 +#define PMC10_bit (*(volatile union un_pmc10 *)0xF006A).BIT +#define PMC12 (*(volatile union un_pmc12 *)0xF006C).pmc12 +#define PMC12_bit (*(volatile union un_pmc12 *)0xF006C).BIT +#define PMC14 (*(volatile union un_pmc14 *)0xF006E).pmc14 +#define PMC14_bit (*(volatile union un_pmc14 *)0xF006E).BIT +#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 +#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT +#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 +#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT +#define NFEN2 (*(volatile union un_nfen2 *)0xF0072).nfen2 +#define NFEN2_bit (*(volatile union un_nfen2 *)0xF0072).BIT +#define ISC (*(volatile union un_isc *)0xF0073).isc +#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT +#define TIS0 (*(volatile unsigned char *)0xF0074) +#define ADPC (*(volatile unsigned char *)0xF0076) +#define PIOR0 (*(volatile unsigned char *)0xF0077) +#define IAWCTL (*(volatile unsigned char *)0xF0078) +#define PIOR1 (*(volatile unsigned char *)0xF0079) +#define PER1 (*(volatile union un_per1 *)0xF007A).per1 +#define PER1_bit (*(volatile union un_per1 *)0xF007A).BIT +#define PMS (*(volatile union un_pms *)0xF007B).pms +#define PMS_bit (*(volatile union un_pms *)0xF007B).BIT +#define GDIDIS (*(volatile union un_gdidis *)0xF007D).gdidis +#define GDIDIS_bit (*(volatile union un_gdidis *)0xF007D).BIT +#define PRDSEL (*(volatile unsigned short *)0xF007E) +#define TOOLEN (*(volatile unsigned char *)0xF0080) +#define BPAL0 (*(volatile unsigned char *)0xF0081) +#define BPAH0 (*(volatile unsigned char *)0xF0082) +#define BPAS0 (*(volatile unsigned char *)0xF0083) +#define BACDVL0 (*(volatile unsigned char *)0xF0084) +#define BACDVH0 (*(volatile unsigned char *)0xF0085) +#define BACDML0 (*(volatile unsigned char *)0xF0086) +#define BACDMH0 (*(volatile unsigned char *)0xF0087) +#define MONMOD (*(volatile unsigned char *)0xF0088) +#define BPAL1 (*(volatile unsigned char *)0xF0089) +#define BPAH1 (*(volatile unsigned char *)0xF008A) +#define BPAS1 (*(volatile unsigned char *)0xF008B) +#define BACDVL1 (*(volatile unsigned char *)0xF008C) +#define BACDVH1 (*(volatile unsigned char *)0xF008D) +#define BACDML1 (*(volatile unsigned char *)0xF008E) +#define BACDMH1 (*(volatile unsigned char *)0xF008F) +#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl +#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT +#define HIOTRM (*(volatile unsigned char *)0xF00A0) +#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl +#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT +#define HOCODIV (*(volatile unsigned char *)0xF00A8) +#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) +#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) +#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) +#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) +#define FLSEC (*(volatile unsigned short *)0xF00B0) +#define FLFSWS (*(volatile unsigned short *)0xF00B2) +#define FLFSWE (*(volatile unsigned short *)0xF00B4) +#define FSSET (*(volatile unsigned char *)0xF00B6) +#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse +#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT +#define FLFADL (*(volatile unsigned short *)0xF00B8) +#define FLFADH (*(volatile unsigned char *)0xF00BA) +#define PFCMD (*(volatile unsigned char *)0xF00C0) +#define PFS (*(volatile union un_pfs *)0xF00C1).pfs +#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT +#define FLRL (*(volatile unsigned short *)0xF00C2) +#define FLRH (*(volatile unsigned short *)0xF00C4) +#define FLWE (*(volatile unsigned char *)0xF00C6) +#define FLRE (*(volatile unsigned char *)0xF00C7) +#define FLTMS (*(volatile unsigned short *)0xF00C8) +#define DFLMC (*(volatile unsigned short *)0xF00CA) +#define FLMCL (*(volatile unsigned short *)0xF00CC) +#define FLMCH (*(volatile unsigned char *)0xF00CE) +#define FSCTL (*(volatile unsigned char *)0xF00CF) +#define ICEADR (*(volatile unsigned short *)0xF00D0) +#define ICEDAT (*(volatile unsigned short *)0xF00D2) +#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 +#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT +#define OSMC (*(volatile unsigned char *)0xF00F3) +#define RMC (*(volatile union un_rmc *)0xF00F4).rmc +#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT +#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl +#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT +#define BCDADJ (*(volatile unsigned char *)0xF00FE) +#define VECTCTRL (*(volatile unsigned char *)0xF00FF) +#define SSR00 (*(volatile unsigned short *)0xF0100) +#define SSR00L (*(volatile unsigned char *)0xF0100) +#define SSR01 (*(volatile unsigned short *)0xF0102) +#define SSR01L (*(volatile unsigned char *)0xF0102) +#define SSR02 (*(volatile unsigned short *)0xF0104) +#define SSR02L (*(volatile unsigned char *)0xF0104) +#define SSR03 (*(volatile unsigned short *)0xF0106) +#define SSR03L (*(volatile unsigned char *)0xF0106) +#define SIR00 (*(volatile unsigned short *)0xF0108) +#define SIR00L (*(volatile unsigned char *)0xF0108) +#define SIR01 (*(volatile unsigned short *)0xF010A) +#define SIR01L (*(volatile unsigned char *)0xF010A) +#define SIR02 (*(volatile unsigned short *)0xF010C) +#define SIR02L (*(volatile unsigned char *)0xF010C) +#define SIR03 (*(volatile unsigned short *)0xF010E) +#define SIR03L (*(volatile unsigned char *)0xF010E) +#define SMR00 (*(volatile unsigned short *)0xF0110) +#define SMR01 (*(volatile unsigned short *)0xF0112) +#define SMR02 (*(volatile unsigned short *)0xF0114) +#define SMR03 (*(volatile unsigned short *)0xF0116) +#define SCR00 (*(volatile unsigned short *)0xF0118) +#define SCR01 (*(volatile unsigned short *)0xF011A) +#define SCR02 (*(volatile unsigned short *)0xF011C) +#define SCR03 (*(volatile unsigned short *)0xF011E) +#define SE0 (*(volatile unsigned short *)0xF0120) +#define SE0L (*(volatile union un_se0l *)0xF0120).se0l +#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT +#define SS0 (*(volatile unsigned short *)0xF0122) +#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l +#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT +#define ST0 (*(volatile unsigned short *)0xF0124) +#define ST0L (*(volatile union un_st0l *)0xF0124).st0l +#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT +#define SPS0 (*(volatile unsigned short *)0xF0126) +#define SPS0L (*(volatile unsigned char *)0xF0126) +#define SO0 (*(volatile unsigned short *)0xF0128) +#define SOE0 (*(volatile unsigned short *)0xF012A) +#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l +#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT +#define EDR00 (*(volatile unsigned short *)0xF012C) +#define EDR00L (*(volatile unsigned char *)0xF012C) +#define EDR01 (*(volatile unsigned short *)0xF012E) +#define EDR01L (*(volatile unsigned char *)0xF012E) +#define EDR02 (*(volatile unsigned short *)0xF0130) +#define EDR02L (*(volatile unsigned char *)0xF0130) +#define EDR03 (*(volatile unsigned short *)0xF0132) +#define EDR03L (*(volatile unsigned char *)0xF0132) +#define SOL0 (*(volatile unsigned short *)0xF0134) +#define SOL0L (*(volatile unsigned char *)0xF0134) +#define SSC0 (*(volatile unsigned short *)0xF0138) +#define SSC0L (*(volatile unsigned char *)0xF0138) +#define SSR10 (*(volatile unsigned short *)0xF0140) +#define SSR10L (*(volatile unsigned char *)0xF0140) +#define SSR11 (*(volatile unsigned short *)0xF0142) +#define SSR11L (*(volatile unsigned char *)0xF0142) +#define SSR12 (*(volatile unsigned short *)0xF0144) +#define SSR12L (*(volatile unsigned char *)0xF0144) +#define SSR13 (*(volatile unsigned short *)0xF0146) +#define SSR13L (*(volatile unsigned char *)0xF0146) +#define SIR10 (*(volatile unsigned short *)0xF0148) +#define SIR10L (*(volatile unsigned char *)0xF0148) +#define SIR11 (*(volatile unsigned short *)0xF014A) +#define SIR11L (*(volatile unsigned char *)0xF014A) +#define SIR12 (*(volatile unsigned short *)0xF014C) +#define SIR12L (*(volatile unsigned char *)0xF014C) +#define SIR13 (*(volatile unsigned short *)0xF014E) +#define SIR13L (*(volatile unsigned char *)0xF014E) +#define SMR10 (*(volatile unsigned short *)0xF0150) +#define SMR11 (*(volatile unsigned short *)0xF0152) +#define SMR12 (*(volatile unsigned short *)0xF0154) +#define SMR13 (*(volatile unsigned short *)0xF0156) +#define SCR10 (*(volatile unsigned short *)0xF0158) +#define SCR11 (*(volatile unsigned short *)0xF015A) +#define SCR12 (*(volatile unsigned short *)0xF015C) +#define SCR13 (*(volatile unsigned short *)0xF015E) +#define SE1 (*(volatile unsigned short *)0xF0160) +#define SE1L (*(volatile union un_se1l *)0xF0160).se1l +#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT +#define SS1 (*(volatile unsigned short *)0xF0162) +#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l +#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT +#define ST1 (*(volatile unsigned short *)0xF0164) +#define ST1L (*(volatile union un_st1l *)0xF0164).st1l +#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT +#define SPS1 (*(volatile unsigned short *)0xF0166) +#define SPS1L (*(volatile unsigned char *)0xF0166) +#define SO1 (*(volatile unsigned short *)0xF0168) +#define SOE1 (*(volatile unsigned short *)0xF016A) +#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l +#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT +#define EDR10 (*(volatile unsigned short *)0xF016C) +#define EDR10L (*(volatile unsigned char *)0xF016C) +#define EDR11 (*(volatile unsigned short *)0xF016E) +#define EDR11L (*(volatile unsigned char *)0xF016E) +#define EDR12 (*(volatile unsigned short *)0xF0170) +#define EDR12L (*(volatile unsigned char *)0xF0170) +#define EDR13 (*(volatile unsigned short *)0xF0172) +#define EDR13L (*(volatile unsigned char *)0xF0172) +#define SOL1 (*(volatile unsigned short *)0xF0174) +#define SOL1L (*(volatile unsigned char *)0xF0174) +#define SSC1 (*(volatile unsigned short *)0xF0178) +#define SSC1L (*(volatile unsigned char *)0xF0178) +#define TCR00 (*(volatile unsigned short *)0xF0180) +#define TCR01 (*(volatile unsigned short *)0xF0182) +#define TCR02 (*(volatile unsigned short *)0xF0184) +#define TCR03 (*(volatile unsigned short *)0xF0186) +#define TMR00 (*(volatile unsigned short *)0xF0190) +#define TMR01 (*(volatile unsigned short *)0xF0192) +#define TMR02 (*(volatile unsigned short *)0xF0194) +#define TMR03 (*(volatile unsigned short *)0xF0196) +#define TSR00 (*(volatile unsigned short *)0xF01A0) +#define TSR00L (*(volatile unsigned char *)0xF01A0) +#define TSR01 (*(volatile unsigned short *)0xF01A2) +#define TSR01L (*(volatile unsigned char *)0xF01A2) +#define TSR02 (*(volatile unsigned short *)0xF01A4) +#define TSR02L (*(volatile unsigned char *)0xF01A4) +#define TSR03 (*(volatile unsigned short *)0xF01A6) +#define TSR03L (*(volatile unsigned char *)0xF01A6) +#define TE0 (*(volatile unsigned short *)0xF01B0) +#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l +#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT +#define TS0 (*(volatile unsigned short *)0xF01B2) +#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l +#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT +#define TT0 (*(volatile unsigned short *)0xF01B4) +#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l +#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT +#define TPS0 (*(volatile unsigned short *)0xF01B6) +#define TO0 (*(volatile unsigned short *)0xF01B8) +#define TO0L (*(volatile unsigned char *)0xF01B8) +#define TOE0 (*(volatile unsigned short *)0xF01BA) +#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l +#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT +#define TOL0 (*(volatile unsigned short *)0xF01BC) +#define TOL0L (*(volatile unsigned char *)0xF01BC) +#define TOM0 (*(volatile unsigned short *)0xF01BE) +#define TOM0L (*(volatile unsigned char *)0xF01BE) +#define TCR10 (*(volatile unsigned short *)0xF01C0) +#define TCR11 (*(volatile unsigned short *)0xF01C2) +#define TCR12 (*(volatile unsigned short *)0xF01C4) +#define TCR13 (*(volatile unsigned short *)0xF01C6) +#define TMR10 (*(volatile unsigned short *)0xF01D0) +#define TMR11 (*(volatile unsigned short *)0xF01D2) +#define TMR12 (*(volatile unsigned short *)0xF01D4) +#define TMR13 (*(volatile unsigned short *)0xF01D6) +#define TSR10 (*(volatile unsigned short *)0xF01E0) +#define TSR10L (*(volatile unsigned char *)0xF01E0) +#define TSR11 (*(volatile unsigned short *)0xF01E2) +#define TSR11L (*(volatile unsigned char *)0xF01E2) +#define TSR12 (*(volatile unsigned short *)0xF01E4) +#define TSR12L (*(volatile unsigned char *)0xF01E4) +#define TSR13 (*(volatile unsigned short *)0xF01E6) +#define TSR13L (*(volatile unsigned char *)0xF01E6) +#define TE1 (*(volatile unsigned short *)0xF01F0) +#define TE1L (*(volatile union un_te1l *)0xF01F0).te1l +#define TE1L_bit (*(volatile union un_te1l *)0xF01F0).BIT +#define TS1 (*(volatile unsigned short *)0xF01F2) +#define TS1L (*(volatile union un_ts1l *)0xF01F2).ts1l +#define TS1L_bit (*(volatile union un_ts1l *)0xF01F2).BIT +#define TT1 (*(volatile unsigned short *)0xF01F4) +#define TT1L (*(volatile union un_tt1l *)0xF01F4).tt1l +#define TT1L_bit (*(volatile union un_tt1l *)0xF01F4).BIT +#define TPS1 (*(volatile unsigned short *)0xF01F6) +#define TO1 (*(volatile unsigned short *)0xF01F8) +#define TO1L (*(volatile unsigned char *)0xF01F8) +#define TOE1 (*(volatile unsigned short *)0xF01FA) +#define TOE1L (*(volatile union un_toe1l *)0xF01FA).toe1l +#define TOE1L_bit (*(volatile union un_toe1l *)0xF01FA).BIT +#define TOL1 (*(volatile unsigned short *)0xF01FC) +#define TOL1L (*(volatile unsigned char *)0xF01FC) +#define TOM1 (*(volatile unsigned short *)0xF01FE) +#define TOM1L (*(volatile unsigned char *)0xF01FE) +#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 +#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT +#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 +#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT +#define IICWL0 (*(volatile unsigned char *)0xF0232) +#define IICWH0 (*(volatile unsigned char *)0xF0233) +#define SVA0 (*(volatile unsigned char *)0xF0234) +#define IICSE0 (*(volatile unsigned char *)0xF0235) +#define IICCTL10 (*(volatile union un_iicctl10 *)0xF0238).iicctl10 +#define IICCTL10_bit (*(volatile union un_iicctl10 *)0xF0238).BIT +#define IICCTL11 (*(volatile union un_iicctl11 *)0xF0239).iicctl11 +#define IICCTL11_bit (*(volatile union un_iicctl11 *)0xF0239).BIT +#define IICWL1 (*(volatile unsigned char *)0xF023A) +#define IICWH1 (*(volatile unsigned char *)0xF023B) +#define SVA1 (*(volatile unsigned char *)0xF023C) +#define IICSE1 (*(volatile unsigned char *)0xF023D) +#define TRJCR0 (*(volatile unsigned char *)0xF0240) +#define TRJIOC0 (*(volatile union un_trjioc0 *)0xF0241).trjioc0 +#define TRJIOC0_bit (*(volatile union un_trjioc0 *)0xF0241).BIT +#define TRJMR0 (*(volatile union un_trjmr0 *)0xF0242).trjmr0 +#define TRJMR0_bit (*(volatile union un_trjmr0 *)0xF0242).BIT +#define TRJISR0 (*(volatile union un_trjisr0 *)0xF0243).trjisr0 +#define TRJISR0_bit (*(volatile union un_trjisr0 *)0xF0243).BIT +#define TRGMR (*(volatile union un_trgmr *)0xF0250).trgmr +#define TRGMR_bit (*(volatile union un_trgmr *)0xF0250).BIT +#define TRGCNTC (*(volatile union un_trgcntc *)0xF0251).trgcntc +#define TRGCNTC_bit (*(volatile union un_trgcntc *)0xF0251).BIT +#define TRGCR (*(volatile union un_trgcr *)0xF0252).trgcr +#define TRGCR_bit (*(volatile union un_trgcr *)0xF0252).BIT +#define TRGIER (*(volatile union un_trgier *)0xF0253).trgier +#define TRGIER_bit (*(volatile union un_trgier *)0xF0253).BIT +#define TRGSR (*(volatile union un_trgsr *)0xF0254).trgsr +#define TRGSR_bit (*(volatile union un_trgsr *)0xF0254).BIT +#define TRGIOR (*(volatile union un_trgior *)0xF0255).trgior +#define TRGIOR_bit (*(volatile union un_trgior *)0xF0255).BIT +#define TRG (*(volatile unsigned short *)0xF0256) +#define TRGGRA (*(volatile unsigned short *)0xF0258) +#define TRGGRB (*(volatile unsigned short *)0xF025A) +#define TRGGRCM (*(volatile unsigned short *)0xF025C) +#define TRGGRDM (*(volatile unsigned short *)0xF025E) +#define TRDELC (*(volatile union un_trdelc *)0xF0260).trdelc +#define TRDELC_bit (*(volatile union un_trdelc *)0xF0260).BIT +#define TRDSTR (*(volatile unsigned char *)0xF0263) +#define TRDMR (*(volatile union un_trdmr *)0xF0264).trdmr +#define TRDMR_bit (*(volatile union un_trdmr *)0xF0264).BIT +#define TRDPMR (*(volatile union un_trdpmr *)0xF0265).trdpmr +#define TRDPMR_bit (*(volatile union un_trdpmr *)0xF0265).BIT +#define TRDFCR (*(volatile union un_trdfcr *)0xF0266).trdfcr +#define TRDFCR_bit (*(volatile union un_trdfcr *)0xF0266).BIT +#define TRDOER1 (*(volatile union un_trdoer1 *)0xF0267).trdoer1 +#define TRDOER1_bit (*(volatile union un_trdoer1 *)0xF0267).BIT +#define TRDOER2 (*(volatile union un_trdoer2 *)0xF0268).trdoer2 +#define TRDOER2_bit (*(volatile union un_trdoer2 *)0xF0268).BIT +#define TRDOCR (*(volatile union un_trdocr *)0xF0269).trdocr +#define TRDOCR_bit (*(volatile union un_trdocr *)0xF0269).BIT +#define TRDDF0 (*(volatile union un_trddf0 *)0xF026A).trddf0 +#define TRDDF0_bit (*(volatile union un_trddf0 *)0xF026A).BIT +#define TRDDF1 (*(volatile union un_trddf1 *)0xF026B).trddf1 +#define TRDDF1_bit (*(volatile union un_trddf1 *)0xF026B).BIT +#define TRDCR0 (*(volatile union un_trdcr0 *)0xF0270).trdcr0 +#define TRDCR0_bit (*(volatile union un_trdcr0 *)0xF0270).BIT +#define TRDIORA0 (*(volatile union un_trdiora0 *)0xF0271).trdiora0 +#define TRDIORA0_bit (*(volatile union un_trdiora0 *)0xF0271).BIT +#define TRDIORC0 (*(volatile union un_trdiorc0 *)0xF0272).trdiorc0 +#define TRDIORC0_bit (*(volatile union un_trdiorc0 *)0xF0272).BIT +#define TRDSR0 (*(volatile union un_trdsr0 *)0xF0273).trdsr0 +#define TRDSR0_bit (*(volatile union un_trdsr0 *)0xF0273).BIT +#define TRDIER0 (*(volatile union un_trdier0 *)0xF0274).trdier0 +#define TRDIER0_bit (*(volatile union un_trdier0 *)0xF0274).BIT +#define TRDPOCR0 (*(volatile union un_trdpocr0 *)0xF0275).trdpocr0 +#define TRDPOCR0_bit (*(volatile union un_trdpocr0 *)0xF0275).BIT +#define TRD0 (*(volatile unsigned short *)0xF0276) +#define TRDGRA0 (*(volatile unsigned short *)0xF0278) +#define TRDGRB0 (*(volatile unsigned short *)0xF027A) +#define TRDGRC0M (*(volatile unsigned short *)0xF027C) +#define TRDGRD0M (*(volatile unsigned short *)0xF027E) +#define TRDCR1 (*(volatile union un_trdcr1 *)0xF0280).trdcr1 +#define TRDCR1_bit (*(volatile union un_trdcr1 *)0xF0280).BIT +#define TRDIORA1 (*(volatile union un_trdiora1 *)0xF0281).trdiora1 +#define TRDIORA1_bit (*(volatile union un_trdiora1 *)0xF0281).BIT +#define TRDIORC1 (*(volatile union un_trdiorc1 *)0xF0282).trdiorc1 +#define TRDIORC1_bit (*(volatile union un_trdiorc1 *)0xF0282).BIT +#define TRDSR1 (*(volatile union un_trdsr1 *)0xF0283).trdsr1 +#define TRDSR1_bit (*(volatile union un_trdsr1 *)0xF0283).BIT +#define TRDIER1 (*(volatile union un_trdier1 *)0xF0284).trdier1 +#define TRDIER1_bit (*(volatile union un_trdier1 *)0xF0284).BIT +#define TRDPOCR1 (*(volatile union un_trdpocr1 *)0xF0285).trdpocr1 +#define TRDPOCR1_bit (*(volatile union un_trdpocr1 *)0xF0285).BIT +#define TRD1 (*(volatile unsigned short *)0xF0286) +#define TRDGRA1 (*(volatile unsigned short *)0xF0288) +#define TRDGRB1 (*(volatile unsigned short *)0xF028A) +#define TRDGRC1M (*(volatile unsigned short *)0xF028C) +#define TRDGRD1M (*(volatile unsigned short *)0xF028E) +#define DTCBAR (*(volatile unsigned char *)0xF02E0) +#define DTCEN0 (*(volatile union un_dtcen0 *)0xF02E8).dtcen0 +#define DTCEN0_bit (*(volatile union un_dtcen0 *)0xF02E8).BIT +#define DTCEN1 (*(volatile union un_dtcen1 *)0xF02E9).dtcen1 +#define DTCEN1_bit (*(volatile union un_dtcen1 *)0xF02E9).BIT +#define DTCEN2 (*(volatile union un_dtcen2 *)0xF02EA).dtcen2 +#define DTCEN2_bit (*(volatile union un_dtcen2 *)0xF02EA).BIT +#define DTCEN3 (*(volatile union un_dtcen3 *)0xF02EB).dtcen3 +#define DTCEN3_bit (*(volatile union un_dtcen3 *)0xF02EB).BIT +#define DTCEN4 (*(volatile union un_dtcen4 *)0xF02EC).dtcen4 +#define DTCEN4_bit (*(volatile union un_dtcen4 *)0xF02EC).BIT +#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl +#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT +#define PGCRCL (*(volatile unsigned short *)0xF02F2) +#define CRCD (*(volatile unsigned short *)0xF02FA) +#define ELSELR00 (*(volatile union un_elselr00 *)0xF0300).elselr00 +#define ELSELR00_bit (*(volatile union un_elselr00 *)0xF0300).BIT +#define ELSELR01 (*(volatile union un_elselr01 *)0xF0301).elselr01 +#define ELSELR01_bit (*(volatile union un_elselr01 *)0xF0301).BIT +#define ELSELR02 (*(volatile union un_elselr02 *)0xF0302).elselr02 +#define ELSELR02_bit (*(volatile union un_elselr02 *)0xF0302).BIT +#define ELSELR03 (*(volatile union un_elselr03 *)0xF0303).elselr03 +#define ELSELR03_bit (*(volatile union un_elselr03 *)0xF0303).BIT +#define ELSELR04 (*(volatile union un_elselr04 *)0xF0304).elselr04 +#define ELSELR04_bit (*(volatile union un_elselr04 *)0xF0304).BIT +#define ELSELR05 (*(volatile union un_elselr05 *)0xF0305).elselr05 +#define ELSELR05_bit (*(volatile union un_elselr05 *)0xF0305).BIT +#define ELSELR06 (*(volatile union un_elselr06 *)0xF0306).elselr06 +#define ELSELR06_bit (*(volatile union un_elselr06 *)0xF0306).BIT +#define ELSELR07 (*(volatile union un_elselr07 *)0xF0307).elselr07 +#define ELSELR07_bit (*(volatile union un_elselr07 *)0xF0307).BIT +#define ELSELR08 (*(volatile union un_elselr08 *)0xF0308).elselr08 +#define ELSELR08_bit (*(volatile union un_elselr08 *)0xF0308).BIT +#define ELSELR09 (*(volatile union un_elselr09 *)0xF0309).elselr09 +#define ELSELR09_bit (*(volatile union un_elselr09 *)0xF0309).BIT +#define ELSELR10 (*(volatile union un_elselr10 *)0xF030A).elselr10 +#define ELSELR10_bit (*(volatile union un_elselr10 *)0xF030A).BIT +#define ELSELR11 (*(volatile union un_elselr11 *)0xF030B).elselr11 +#define ELSELR11_bit (*(volatile union un_elselr11 *)0xF030B).BIT +#define ELSELR12 (*(volatile union un_elselr12 *)0xF030C).elselr12 +#define ELSELR12_bit (*(volatile union un_elselr12 *)0xF030C).BIT +#define ELSELR13 (*(volatile union un_elselr13 *)0xF030D).elselr13 +#define ELSELR13_bit (*(volatile union un_elselr13 *)0xF030D).BIT +#define ELSELR14 (*(volatile union un_elselr14 *)0xF030E).elselr14 +#define ELSELR14_bit (*(volatile union un_elselr14 *)0xF030E).BIT +#define ELSELR15 (*(volatile union un_elselr15 *)0xF030F).elselr15 +#define ELSELR15_bit (*(volatile union un_elselr15 *)0xF030F).BIT +#define ELSELR16 (*(volatile union un_elselr16 *)0xF0310).elselr16 +#define ELSELR16_bit (*(volatile union un_elselr16 *)0xF0310).BIT +#define ELSELR17 (*(volatile union un_elselr17 *)0xF0311).elselr17 +#define ELSELR17_bit (*(volatile union un_elselr17 *)0xF0311).BIT +#define ELSELR18 (*(volatile union un_elselr18 *)0xF0312).elselr18 +#define ELSELR18_bit (*(volatile union un_elselr18 *)0xF0312).BIT +#define ELSELR19 (*(volatile union un_elselr19 *)0xF0313).elselr19 +#define ELSELR19_bit (*(volatile union un_elselr19 *)0xF0313).BIT +#define ELSELR20 (*(volatile union un_elselr20 *)0xF0314).elselr20 +#define ELSELR20_bit (*(volatile union un_elselr20 *)0xF0314).BIT +#define ELSELR21 (*(volatile union un_elselr21 *)0xF0315).elselr21 +#define ELSELR21_bit (*(volatile union un_elselr21 *)0xF0315).BIT +#define ELSELR22 (*(volatile union un_elselr22 *)0xF0316).elselr22 +#define ELSELR22_bit (*(volatile union un_elselr22 *)0xF0316).BIT +#define ELSELR23 (*(volatile union un_elselr23 *)0xF0317).elselr23 +#define ELSELR23_bit (*(volatile union un_elselr23 *)0xF0317).BIT +#define ELSELR24 (*(volatile union un_elselr24 *)0xF0318).elselr24 +#define ELSELR24_bit (*(volatile union un_elselr24 *)0xF0318).BIT +#define ELSELR25 (*(volatile union un_elselr25 *)0xF0319).elselr25 +#define ELSELR25_bit (*(volatile union un_elselr25 *)0xF0319).BIT +#define COMPMDR (*(volatile union un_compmdr *)0xF0340).compmdr +#define COMPMDR_bit (*(volatile union un_compmdr *)0xF0340).BIT +#define COMPFIR (*(volatile union un_compfir *)0xF0341).compfir +#define COMPFIR_bit (*(volatile union un_compfir *)0xF0341).BIT +#define COMPOCR (*(volatile union un_compocr *)0xF0342).compocr +#define COMPOCR_bit (*(volatile union un_compocr *)0xF0342).BIT +#define COMPTCR (*(volatile union un_comptcr *)0xF0343).comptcr +#define COMPTCR_bit (*(volatile union un_comptcr *)0xF0343).BIT +#define TRJ0 (*(volatile unsigned short *)0xF0500) +#define MONMOD1 (*(volatile unsigned char *)0xF0720) +#define TRCMA (*(volatile unsigned char *)0xF0721) + +/* + Sfr bits + */ +#define ADTYP ADM2_bit.no0 +#define AWC ADM2_bit.no2 +#define ADRCK ADM2_bit.no3 +#define SSIE00 ISC_bit.no7 +#define TRJ0EN PER1_bit.no0 +#define DTCEN PER1_bit.no3 +#define TRD0EN PER1_bit.no4 +#define CMPEN PER1_bit.no5 +#define TRGEN PER1_bit.no6 +#define DACEN PER1_bit.no7 +#define DFLEN DFLCTL_bit.no0 +#define BRSAM BECTL_bit.no0 +#define ESQST FSSE_bit.no7 +#define TAU0EN PER0_bit.no0 +#define TAU1EN PER0_bit.no1 +#define SAU0EN PER0_bit.no2 +#define SAU1EN PER0_bit.no3 +#define IICA0EN PER0_bit.no4 +#define ADCEN PER0_bit.no5 +#define IICA1EN PER0_bit.no6 +#define RTCEN PER0_bit.no7 +#define PAENB RMC_bit.no0 +#define WDVOL RMC_bit.no7 +#define RPEF RPECTL_bit.no0 +#define RPERDIS RPECTL_bit.no7 +#define SPT0 IICCTL00_bit.no0 +#define STT0 IICCTL00_bit.no1 +#define ACKE0 IICCTL00_bit.no2 +#define WTIM0 IICCTL00_bit.no3 +#define SPIE0 IICCTL00_bit.no4 +#define WREL0 IICCTL00_bit.no5 +#define LREL0 IICCTL00_bit.no6 +#define IICE0 IICCTL00_bit.no7 +#define PRS0 IICCTL01_bit.no0 +#define DFC0 IICCTL01_bit.no2 +#define SMC0 IICCTL01_bit.no3 +#define DAD0 IICCTL01_bit.no4 +#define CLD0 IICCTL01_bit.no5 +#define WUP0 IICCTL01_bit.no7 +#define SPT1 IICCTL10_bit.no0 +#define STT1 IICCTL10_bit.no1 +#define ACKE1 IICCTL10_bit.no2 +#define WTIM1 IICCTL10_bit.no3 +#define SPIE1 IICCTL10_bit.no4 +#define WREL1 IICCTL10_bit.no5 +#define LREL1 IICCTL10_bit.no6 +#define IICE1 IICCTL10_bit.no7 +#define PRS1 IICCTL11_bit.no0 +#define DFC1 IICCTL11_bit.no2 +#define SMC1 IICCTL11_bit.no3 +#define DAD1 IICCTL11_bit.no4 +#define CLD1 IICCTL11_bit.no5 +#define WUP1 IICCTL11_bit.no7 +#define TRGPWM TRGMR_bit.no0 +#define TRGMDF TRGMR_bit.no1 +#define TRGDFA TRGMR_bit.no2 +#define TRGDFB TRGMR_bit.no3 +#define TRGDFCK0 TRGMR_bit.no4 +#define TRGDFCK1 TRGMR_bit.no5 +#define TRGELCICE TRGMR_bit.no6 +#define TRGSTART TRGMR_bit.no7 +#define TRGTCK0 TRGCR_bit.no0 +#define TRGTCK1 TRGCR_bit.no1 +#define TRGTCK2 TRGCR_bit.no2 +#define TRGCKEG0 TRGCR_bit.no3 +#define TRGCKEG1 TRGCR_bit.no4 +#define TRGCCLR0 TRGCR_bit.no5 +#define TRGCCLR1 TRGCR_bit.no6 +#define TRGIMIEA TRGIER_bit.no0 +#define TRGIMIEB TRGIER_bit.no1 +#define TRGUDIE TRGIER_bit.no2 +#define TRGOVIE TRGIER_bit.no3 +#define TRGIMFA TRGSR_bit.no0 +#define TRGIMFB TRGSR_bit.no1 +#define TRGUDF TRGSR_bit.no2 +#define TRGOVF TRGSR_bit.no3 +#define TRGDIRF TRGSR_bit.no4 +#define TRGIOA0 TRGIOR_bit.no0 +#define TRGIOA1 TRGIOR_bit.no1 +#define TRGIOA2 TRGIOR_bit.no2 +#define TRGBUFA TRGIOR_bit.no3 +#define TRGIOB0 TRGIOR_bit.no4 +#define TRGIOB1 TRGIOR_bit.no5 +#define TRGIOB2 TRGIOR_bit.no6 +#define TRGBUFB TRGIOR_bit.no7 +#define TRDSYNC TRDMR_bit.no0 +#define TRDBFC0 TRDMR_bit.no4 +#define TRDBFD0 TRDMR_bit.no5 +#define TRDBFC1 TRDMR_bit.no6 +#define TRDBFD1 TRDMR_bit.no7 +#define TRDPWMB0 TRDPMR_bit.no0 +#define TRDPWMC0 TRDPMR_bit.no1 +#define TRDPWMD0 TRDPMR_bit.no2 +#define TRDPWMB1 TRDPMR_bit.no4 +#define TRDPWMC1 TRDPMR_bit.no5 +#define TRDPWMD1 TRDPMR_bit.no6 +#define TRDSHUTS TRDOER2_bit.no0 +#define TRDPTO TRDOER2_bit.no7 +#define CRC0EN CRC0CTL_bit.no7 +#define C0ENB COMPMDR_bit.no0 +#define C0MON COMPMDR_bit.no3 +#define C1ENB COMPMDR_bit.no4 +#define C1MON COMPMDR_bit.no7 +#define C0IE COMPOCR_bit.no0 +#define C0OE COMPOCR_bit.no1 +#define C0OP COMPOCR_bit.no2 +#define C1IE COMPOCR_bit.no4 +#define C1OE COMPOCR_bit.no5 +#define C1OP COMPOCR_bit.no6 +#define SPDMD COMPOCR_bit.no7 +#define TSTMD COMPTCR_bit.no0 +#define TMDWE COMPTCR_bit.no7 + +/* + Interrupt vector addresses + */ +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1A.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1A.h new file mode 100644 index 000000000..341081ea3 --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1A.h @@ -0,0 +1,1037 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78G1A */ +/* FILE : iodefine.h */ +/* DESCRIPTION : Definition of I/O Registers */ +/* CPU SERIES : RL78 - G1A */ +/* CPU TYPE : R5F10ELE */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F10ELE.DVF */ +/* Copyright(C) 2012 Renesas */ +/* File Version V1.00 */ +/* Tool Version 1.9.7121 */ +/* Date Generated 13/11/2012 */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_H +#define IODEFINE_H + +/* + IO Registers + */ +union un_p0 { + unsigned char p0; + __BITS8 BIT; +}; +union un_p1 { + unsigned char p1; + __BITS8 BIT; +}; +union un_p2 { + unsigned char p2; + __BITS8 BIT; +}; +union un_p3 { + unsigned char p3; + __BITS8 BIT; +}; +union un_p4 { + unsigned char p4; + __BITS8 BIT; +}; +union un_p5 { + unsigned char p5; + __BITS8 BIT; +}; +union un_p6 { + unsigned char p6; + __BITS8 BIT; +}; +union un_p7 { + unsigned char p7; + __BITS8 BIT; +}; +union un_p12 { + unsigned char p12; + __BITS8 BIT; +}; +union un_p13 { + unsigned char p13; + __BITS8 BIT; +}; +union un_p14 { + unsigned char p14; + __BITS8 BIT; +}; +union un_p15 { + unsigned char p15; + __BITS8 BIT; +}; +union un_pm0 { + unsigned char pm0; + __BITS8 BIT; +}; +union un_pm1 { + unsigned char pm1; + __BITS8 BIT; +}; +union un_pm2 { + unsigned char pm2; + __BITS8 BIT; +}; +union un_pm3 { + unsigned char pm3; + __BITS8 BIT; +}; +union un_pm4 { + unsigned char pm4; + __BITS8 BIT; +}; +union un_pm5 { + unsigned char pm5; + __BITS8 BIT; +}; +union un_pm6 { + unsigned char pm6; + __BITS8 BIT; +}; +union un_pm7 { + unsigned char pm7; + __BITS8 BIT; +}; +union un_pm12 { + unsigned char pm12; + __BITS8 BIT; +}; +union un_pm14 { + unsigned char pm14; + __BITS8 BIT; +}; +union un_pm15 { + unsigned char pm15; + __BITS8 BIT; +}; +union un_adm0 { + unsigned char adm0; + __BITS8 BIT; +}; +union un_ads { + unsigned char ads; + __BITS8 BIT; +}; +union un_adm1 { + unsigned char adm1; + __BITS8 BIT; +}; +union un_krctl { + unsigned char krctl; + __BITS8 BIT; +}; +union un_krf { + unsigned char krf; + __BITS8 BIT; +}; +union un_krm1 { + unsigned char krm1; + __BITS8 BIT; +}; +union un_krm0 { + unsigned char krm0; + __BITS8 BIT; +}; +union un_egp0 { + unsigned char egp0; + __BITS8 BIT; +}; +union un_egn0 { + unsigned char egn0; + __BITS8 BIT; +}; +union un_egp1 { + unsigned char egp1; + __BITS8 BIT; +}; +union un_egn1 { + unsigned char egn1; + __BITS8 BIT; +}; +union un_iics0 { + unsigned char iics0; + __BITS8 BIT; +}; +union un_iicf0 { + unsigned char iicf0; + __BITS8 BIT; +}; +union un_flars { + unsigned char flars; + __BITS8 BIT; +}; +union un_fssq { + unsigned char fssq; + __BITS8 BIT; +}; +union un_flrst { + unsigned char flrst; + __BITS8 BIT; +}; +union un_fsastl { + unsigned char fsastl; + __BITS8 BIT; +}; +union un_fsasth { + unsigned char fsasth; + __BITS8 BIT; +}; +union un_rtcc0 { + unsigned char rtcc0; + __BITS8 BIT; +}; +union un_rtcc1 { + unsigned char rtcc1; + __BITS8 BIT; +}; +union un_csc { + unsigned char csc; + __BITS8 BIT; +}; +union un_ostc { + unsigned char ostc; + __BITS8 BIT; +}; +union un_ckc { + unsigned char ckc; + __BITS8 BIT; +}; +union un_cks0 { + unsigned char cks0; + __BITS8 BIT; +}; +union un_cks1 { + unsigned char cks1; + __BITS8 BIT; +}; +union un_lvim { + unsigned char lvim; + __BITS8 BIT; +}; +union un_lvis { + unsigned char lvis; + __BITS8 BIT; +}; +union un_monsta0 { + unsigned char monsta0; + __BITS8 BIT; +}; +union un_asim { + unsigned char asim; + __BITS8 BIT; +}; +union un_dmc0 { + unsigned char dmc0; + __BITS8 BIT; +}; +union un_dmc1 { + unsigned char dmc1; + __BITS8 BIT; +}; +union un_drc0 { + unsigned char drc0; + __BITS8 BIT; +}; +union un_drc1 { + unsigned char drc1; + __BITS8 BIT; +}; +union un_if2 { + unsigned short if2; + __BITS16 BIT; +}; +union un_if2l { + unsigned char if2l; + __BITS8 BIT; +}; +union un_if2h { + unsigned char if2h; + __BITS8 BIT; +}; +union un_mk2 { + unsigned short mk2; + __BITS16 BIT; +}; +union un_mk2l { + unsigned char mk2l; + __BITS8 BIT; +}; +union un_mk2h { + unsigned char mk2h; + __BITS8 BIT; +}; +union un_pr02 { + unsigned short pr02; + __BITS16 BIT; +}; +union un_pr02l { + unsigned char pr02l; + __BITS8 BIT; +}; +union un_pr02h { + unsigned char pr02h; + __BITS8 BIT; +}; +union un_pr12 { + unsigned short pr12; + __BITS16 BIT; +}; +union un_pr12l { + unsigned char pr12l; + __BITS8 BIT; +}; +union un_pr12h { + unsigned char pr12h; + __BITS8 BIT; +}; +union un_if0 { + unsigned short if0; + __BITS16 BIT; +}; +union un_if0l { + unsigned char if0l; + __BITS8 BIT; +}; +union un_if0h { + unsigned char if0h; + __BITS8 BIT; +}; +union un_if1 { + unsigned short if1; + __BITS16 BIT; +}; +union un_if1l { + unsigned char if1l; + __BITS8 BIT; +}; +union un_if1h { + unsigned char if1h; + __BITS8 BIT; +}; +union un_mk0 { + unsigned short mk0; + __BITS16 BIT; +}; +union un_mk0l { + unsigned char mk0l; + __BITS8 BIT; +}; +union un_mk0h { + unsigned char mk0h; + __BITS8 BIT; +}; +union un_mk1 { + unsigned short mk1; + __BITS16 BIT; +}; +union un_mk1l { + unsigned char mk1l; + __BITS8 BIT; +}; +union un_mk1h { + unsigned char mk1h; + __BITS8 BIT; +}; +union un_pr00 { + unsigned short pr00; + __BITS16 BIT; +}; +union un_pr00l { + unsigned char pr00l; + __BITS8 BIT; +}; +union un_pr00h { + unsigned char pr00h; + __BITS8 BIT; +}; +union un_pr01 { + unsigned short pr01; + __BITS16 BIT; +}; +union un_pr01l { + unsigned char pr01l; + __BITS8 BIT; +}; +union un_pr01h { + unsigned char pr01h; + __BITS8 BIT; +}; +union un_pr10 { + unsigned short pr10; + __BITS16 BIT; +}; +union un_pr10l { + unsigned char pr10l; + __BITS8 BIT; +}; +union un_pr10h { + unsigned char pr10h; + __BITS8 BIT; +}; +union un_pr11 { + unsigned short pr11; + __BITS16 BIT; +}; +union un_pr11l { + unsigned char pr11l; + __BITS8 BIT; +}; +union un_pr11h { + unsigned char pr11h; + __BITS8 BIT; +}; +union un_pmc { + unsigned char pmc; + __BITS8 BIT; +}; + +#define P0 (*(volatile union un_p0 *)0xFFF00).p0 +#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT +#define P1 (*(volatile union un_p1 *)0xFFF01).p1 +#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT +#define P2 (*(volatile union un_p2 *)0xFFF02).p2 +#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT +#define P3 (*(volatile union un_p3 *)0xFFF03).p3 +#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT +#define P4 (*(volatile union un_p4 *)0xFFF04).p4 +#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT +#define P5 (*(volatile union un_p5 *)0xFFF05).p5 +#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT +#define P6 (*(volatile union un_p6 *)0xFFF06).p6 +#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT +#define P7 (*(volatile union un_p7 *)0xFFF07).p7 +#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT +#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 +#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT +#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 +#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT +#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 +#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT +#define P15 (*(volatile union un_p15 *)0xFFF0F).p15 +#define P15_bit (*(volatile union un_p15 *)0xFFF0F).BIT +#define SDR00 (*(volatile unsigned short *)0xFFF10) +#define SIO00 (*(volatile unsigned char *)0xFFF10) +#define TXD0 (*(volatile unsigned char *)0xFFF10) +#define SDR01 (*(volatile unsigned short *)0xFFF12) +#define RXD0 (*(volatile unsigned char *)0xFFF12) +#define SIO01 (*(volatile unsigned char *)0xFFF12) +#define TDR00 (*(volatile unsigned short *)0xFFF18) +#define TDR01 (*(volatile unsigned short *)0xFFF1A) +#define TDR01L (*(volatile unsigned char *)0xFFF1A) +#define TDR01H (*(volatile unsigned char *)0xFFF1B) +#define ADCR (*(volatile unsigned short *)0xFFF1E) +#define ADCRH (*(volatile unsigned char *)0xFFF1F) +#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 +#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT +#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 +#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT +#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 +#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT +#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 +#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT +#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 +#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT +#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 +#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT +#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 +#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT +#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 +#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT +#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 +#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT +#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 +#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT +#define PM15 (*(volatile union un_pm15 *)0xFFF2F).pm15 +#define PM15_bit (*(volatile union un_pm15 *)0xFFF2F).BIT +#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 +#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT +#define ADS (*(volatile union un_ads *)0xFFF31).ads +#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT +#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 +#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT +#define KRCTL (*(volatile union un_krctl *)0xFFF34).krctl +#define KRCTL_bit (*(volatile union un_krctl *)0xFFF34).BIT +#define KRF (*(volatile union un_krf *)0xFFF35).krf +#define KRF_bit (*(volatile union un_krf *)0xFFF35).BIT +#define KRM1 (*(volatile union un_krm1 *)0xFFF36).krm1 +#define KRM1_bit (*(volatile union un_krm1 *)0xFFF36).BIT +#define KRM0 (*(volatile union un_krm0 *)0xFFF37).krm0 +#define KRM0_bit (*(volatile union un_krm0 *)0xFFF37).BIT +#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 +#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT +#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 +#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT +#define EGP1 (*(volatile union un_egp1 *)0xFFF3A).egp1 +#define EGP1_bit (*(volatile union un_egp1 *)0xFFF3A).BIT +#define EGN1 (*(volatile union un_egn1 *)0xFFF3B).egn1 +#define EGN1_bit (*(volatile union un_egn1 *)0xFFF3B).BIT +#define SDR02 (*(volatile unsigned short *)0xFFF44) +#define SIO10 (*(volatile unsigned char *)0xFFF44) +#define TXD1 (*(volatile unsigned char *)0xFFF44) +#define SDR03 (*(volatile unsigned short *)0xFFF46) +#define RXD1 (*(volatile unsigned char *)0xFFF46) +#define SIO11 (*(volatile unsigned char *)0xFFF46) +#define SDR10 (*(volatile unsigned short *)0xFFF48) +#define SIO20 (*(volatile unsigned char *)0xFFF48) +#define TXD2 (*(volatile unsigned char *)0xFFF48) +#define SDR11 (*(volatile unsigned short *)0xFFF4A) +#define RXD2 (*(volatile unsigned char *)0xFFF4A) +#define SIO21 (*(volatile unsigned char *)0xFFF4A) +#define IICA0 (*(volatile unsigned char *)0xFFF50) +#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 +#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT +#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 +#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT +#define TDR02 (*(volatile unsigned short *)0xFFF64) +#define TDR03 (*(volatile unsigned short *)0xFFF66) +#define TDR03L (*(volatile unsigned char *)0xFFF66) +#define TDR03H (*(volatile unsigned char *)0xFFF67) +#define TDR04 (*(volatile unsigned short *)0xFFF68) +#define TDR05 (*(volatile unsigned short *)0xFFF6A) +#define TDR06 (*(volatile unsigned short *)0xFFF6C) +#define TDR07 (*(volatile unsigned short *)0xFFF6E) +#define FLPMC (*(volatile unsigned char *)0xFFF80) +#define FLARS (*(volatile union un_flars *)0xFFF81).flars +#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT +#define FLAPL (*(volatile unsigned short *)0xFFF82) +#define FLAPH (*(volatile unsigned char *)0xFFF84) +#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq +#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT +#define FLSEDL (*(volatile unsigned short *)0xFFF86) +#define FLSEDH (*(volatile unsigned char *)0xFFF88) +#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst +#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT +#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl +#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT +#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth +#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT +#define FLWL (*(volatile unsigned short *)0xFFF8C) +#define FLWH (*(volatile unsigned short *)0xFFF8E) +#define ITMC (*(volatile unsigned short *)0xFFF90) +#define SEC (*(volatile unsigned char *)0xFFF92) +#define MIN (*(volatile unsigned char *)0xFFF93) +#define HOUR (*(volatile unsigned char *)0xFFF94) +#define WEEK (*(volatile unsigned char *)0xFFF95) +#define DAY (*(volatile unsigned char *)0xFFF96) +#define MONTH (*(volatile unsigned char *)0xFFF97) +#define YEAR (*(volatile unsigned char *)0xFFF98) +#define SUBCUD (*(volatile unsigned char *)0xFFF99) +#define ALARMWM (*(volatile unsigned char *)0xFFF9A) +#define ALARMWH (*(volatile unsigned char *)0xFFF9B) +#define ALARMWW (*(volatile unsigned char *)0xFFF9C) +#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 +#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT +#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 +#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT +#define CMC (*(volatile unsigned char *)0xFFFA0) +#define CSC (*(volatile union un_csc *)0xFFFA1).csc +#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT +#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc +#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT +#define OSTS (*(volatile unsigned char *)0xFFFA3) +#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc +#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT +#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 +#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT +#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 +#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT +#define RESF (*(volatile unsigned char *)0xFFFA8) +#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim +#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT +#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis +#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT +#define WDTE (*(volatile unsigned char *)0xFFFAB) +#define CRCIN (*(volatile unsigned char *)0xFFFAC) +#define RXB (*(volatile unsigned char *)0xFFFAD) +#define TXS (*(volatile unsigned char *)0xFFFAD) +#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 +#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT +#define ASIM (*(volatile union un_asim *)0xFFFAF).asim +#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT +#define DSA0 (*(volatile unsigned char *)0xFFFB0) +#define DSA1 (*(volatile unsigned char *)0xFFFB1) +#define DRA0 (*(volatile unsigned short *)0xFFFB2) +#define DRA0L (*(volatile unsigned char *)0xFFFB2) +#define DRA0H (*(volatile unsigned char *)0xFFFB3) +#define DRA1 (*(volatile unsigned short *)0xFFFB4) +#define DRA1L (*(volatile unsigned char *)0xFFFB4) +#define DRA1H (*(volatile unsigned char *)0xFFFB5) +#define DBC0 (*(volatile unsigned short *)0xFFFB6) +#define DBC0L (*(volatile unsigned char *)0xFFFB6) +#define DBC0H (*(volatile unsigned char *)0xFFFB7) +#define DBC1 (*(volatile unsigned short *)0xFFFB8) +#define DBC1L (*(volatile unsigned char *)0xFFFB8) +#define DBC1H (*(volatile unsigned char *)0xFFFB9) +#define DMC0 (*(volatile union un_dmc0 *)0xFFFBA).dmc0 +#define DMC0_bit (*(volatile union un_dmc0 *)0xFFFBA).BIT +#define DMC1 (*(volatile union un_dmc1 *)0xFFFBB).dmc1 +#define DMC1_bit (*(volatile union un_dmc1 *)0xFFFBB).BIT +#define DRC0 (*(volatile union un_drc0 *)0xFFFBC).drc0 +#define DRC0_bit (*(volatile union un_drc0 *)0xFFFBC).BIT +#define DRC1 (*(volatile union un_drc1 *)0xFFFBD).drc1 +#define DRC1_bit (*(volatile union un_drc1 *)0xFFFBD).BIT +#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 +#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT +#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l +#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT +#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h +#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT +#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 +#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT +#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l +#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT +#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h +#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT +#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 +#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT +#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l +#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT +#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h +#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT +#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 +#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT +#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l +#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT +#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h +#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT +#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 +#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT +#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l +#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT +#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h +#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT +#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 +#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT +#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l +#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT +#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h +#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT +#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 +#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT +#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l +#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT +#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h +#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT +#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 +#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT +#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l +#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT +#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h +#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT +#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 +#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT +#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l +#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT +#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h +#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT +#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 +#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT +#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l +#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT +#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h +#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT +#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 +#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT +#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l +#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT +#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h +#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT +#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 +#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT +#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l +#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT +#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h +#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT +#define MDAL (*(volatile unsigned short *)0xFFFF0) +#define MULA (*(volatile unsigned short *)0xFFFF0) +#define MDAH (*(volatile unsigned short *)0xFFFF2) +#define MULB (*(volatile unsigned short *)0xFFFF2) +#define MDBH (*(volatile unsigned short *)0xFFFF4) +#define MULOH (*(volatile unsigned short *)0xFFFF4) +#define MDBL (*(volatile unsigned short *)0xFFFF6) +#define MULOL (*(volatile unsigned short *)0xFFFF6) +#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc +#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT + +/* + Sfr bits + */ +#define ADCE ADM0_bit.no0 +#define ADCS ADM0_bit.no7 +#define SPD0 IICS0_bit.no0 +#define STD0 IICS0_bit.no1 +#define ACKD0 IICS0_bit.no2 +#define TRC0 IICS0_bit.no3 +#define COI0 IICS0_bit.no4 +#define EXC0 IICS0_bit.no5 +#define ALD0 IICS0_bit.no6 +#define MSTS0 IICS0_bit.no7 +#define IICRSV0 IICF0_bit.no0 +#define STCEN0 IICF0_bit.no1 +#define IICBSY0 IICF0_bit.no6 +#define STCF0 IICF0_bit.no7 +#define FSSTP FSSQ_bit.no6 +#define SQST FSSQ_bit.no7 +#define SQEND FSASTH_bit.no6 +#define ESQEND FSASTH_bit.no7 +#define RCLOE1 RTCC0_bit.no5 +#define RTCE RTCC0_bit.no7 +#define RWAIT RTCC1_bit.no0 +#define RWST RTCC1_bit.no1 +#define RIFG RTCC1_bit.no3 +#define WAFG RTCC1_bit.no4 +#define WALIE RTCC1_bit.no6 +#define WALE RTCC1_bit.no7 +#define HIOSTOP CSC_bit.no0 +#define XTSTOP CSC_bit.no6 +#define MSTOP CSC_bit.no7 +#define SDIV CKC_bit.no3 +#define MCM0 CKC_bit.no4 +#define MCS CKC_bit.no5 +#define CSS CKC_bit.no6 +#define CLS CKC_bit.no7 +#define PCLOE0 CKS0_bit.no7 +#define PCLOE1 CKS1_bit.no7 +#define LVIF LVIM_bit.no0 +#define LVIOMSK LVIM_bit.no1 +#define LVISEN LVIM_bit.no7 +#define LVILV LVIS_bit.no0 +#define LVIMD LVIS_bit.no7 +#define DWAIT0 DMC0_bit.no4 +#define DS0 DMC0_bit.no5 +#define DRS0 DMC0_bit.no6 +#define STG0 DMC0_bit.no7 +#define DWAIT1 DMC1_bit.no4 +#define DS1 DMC1_bit.no5 +#define DRS1 DMC1_bit.no6 +#define STG1 DMC1_bit.no7 +#define DST0 DRC0_bit.no0 +#define DEN0 DRC0_bit.no7 +#define DST1 DRC1_bit.no0 +#define DEN1 DRC1_bit.no7 +#define TMIF05 IF2_bit.no0 +#define TMIF06 IF2_bit.no1 +#define TMIF07 IF2_bit.no2 +#define PIF6 IF2_bit.no3 +#define PIF7 IF2_bit.no4 +#define PIF8 IF2_bit.no5 +#define PIF9 IF2_bit.no6 +#define PIF10 IF2_bit.no7 +#define PIF11 IF2H_bit.no0 +#define MDIF IF2H_bit.no5 +#define FLIF IF2H_bit.no7 +#define TMMK05 MK2_bit.no0 +#define TMMK06 MK2_bit.no1 +#define TMMK07 MK2_bit.no2 +#define PMK6 MK2_bit.no3 +#define PMK7 MK2_bit.no4 +#define PMK8 MK2_bit.no5 +#define PMK9 MK2_bit.no6 +#define PMK10 MK2_bit.no7 +#define PMK11 MK2H_bit.no0 +#define MDMK MK2H_bit.no5 +#define FLMK MK2H_bit.no7 +#define TMPR005 PR02_bit.no0 +#define TMPR006 PR02_bit.no1 +#define TMPR007 PR02_bit.no2 +#define PPR06 PR02_bit.no3 +#define PPR07 PR02_bit.no4 +#define PPR08 PR02_bit.no5 +#define PPR09 PR02_bit.no6 +#define PPR010 PR02_bit.no7 +#define PPR011 PR02H_bit.no0 +#define MDPR0 PR02H_bit.no5 +#define FLPR0 PR02H_bit.no7 +#define TMPR105 PR12_bit.no0 +#define TMPR106 PR12_bit.no1 +#define TMPR107 PR12_bit.no2 +#define PPR16 PR12_bit.no3 +#define PPR17 PR12_bit.no4 +#define PPR18 PR12_bit.no5 +#define PPR19 PR12_bit.no6 +#define PPR110 PR12_bit.no7 +#define PPR111 PR12H_bit.no0 +#define MDPR1 PR12H_bit.no5 +#define FLPR1 PR12H_bit.no7 +#define WDTIIF IF0_bit.no0 +#define LVIIF IF0_bit.no1 +#define PIF0 IF0_bit.no2 +#define PIF1 IF0_bit.no3 +#define PIF2 IF0_bit.no4 +#define PIF3 IF0_bit.no5 +#define PIF4 IF0_bit.no6 +#define PIF5 IF0_bit.no7 +#define CSIIF20 IF0H_bit.no0 +#define IICIF20 IF0H_bit.no0 +#define STIF2 IF0H_bit.no0 +#define CSIIF21 IF0H_bit.no1 +#define IICIF21 IF0H_bit.no1 +#define SRIF2 IF0H_bit.no1 +#define SREIF2 IF0H_bit.no2 +#define DMAIF0 IF0H_bit.no3 +#define DMAIF1 IF0H_bit.no4 +#define CSIIF00 IF0H_bit.no5 +#define IICIF00 IF0H_bit.no5 +#define STIF0 IF0H_bit.no5 +#define CSIIF01 IF0H_bit.no6 +#define IICIF01 IF0H_bit.no6 +#define SRIF0 IF0H_bit.no6 +#define SREIF0 IF0H_bit.no7 +#define TMIF01H IF0H_bit.no7 +#define CSIIF10 IF1_bit.no0 +#define IICIF10 IF1_bit.no0 +#define STIF1 IF1_bit.no0 +#define CSIIF11 IF1_bit.no1 +#define IICIF11 IF1_bit.no1 +#define SRIF1 IF1_bit.no1 +#define SREIF1 IF1_bit.no2 +#define TMIF03H IF1_bit.no2 +#define IICAIF0 IF1_bit.no3 +#define TMIF00 IF1_bit.no4 +#define TMIF01 IF1_bit.no5 +#define TMIF02 IF1_bit.no6 +#define TMIF03 IF1_bit.no7 +#define ADIF IF1H_bit.no0 +#define RTCIF IF1H_bit.no1 +#define ITIF IF1H_bit.no2 +#define KRIF IF1H_bit.no3 +#define TMIF04 IF1H_bit.no7 +#define WDTIMK MK0_bit.no0 +#define LVIMK MK0_bit.no1 +#define PMK0 MK0_bit.no2 +#define PMK1 MK0_bit.no3 +#define PMK2 MK0_bit.no4 +#define PMK3 MK0_bit.no5 +#define PMK4 MK0_bit.no6 +#define PMK5 MK0_bit.no7 +#define CSIMK20 MK0H_bit.no0 +#define IICMK20 MK0H_bit.no0 +#define STMK2 MK0H_bit.no0 +#define CSIMK21 MK0H_bit.no1 +#define IICMK21 MK0H_bit.no1 +#define SRMK2 MK0H_bit.no1 +#define SREMK2 MK0H_bit.no2 +#define DMAMK0 MK0H_bit.no3 +#define DMAMK1 MK0H_bit.no4 +#define CSIMK00 MK0H_bit.no5 +#define IICMK00 MK0H_bit.no5 +#define STMK0 MK0H_bit.no5 +#define CSIMK01 MK0H_bit.no6 +#define IICMK01 MK0H_bit.no6 +#define SRMK0 MK0H_bit.no6 +#define SREMK0 MK0H_bit.no7 +#define TMMK01H MK0H_bit.no7 +#define CSIMK10 MK1_bit.no0 +#define IICMK10 MK1_bit.no0 +#define STMK1 MK1_bit.no0 +#define CSIMK11 MK1_bit.no1 +#define IICMK11 MK1_bit.no1 +#define SRMK1 MK1_bit.no1 +#define SREMK1 MK1_bit.no2 +#define TMMK03H MK1_bit.no2 +#define IICAMK0 MK1_bit.no3 +#define TMMK00 MK1_bit.no4 +#define TMMK01 MK1_bit.no5 +#define TMMK02 MK1_bit.no6 +#define TMMK03 MK1_bit.no7 +#define ADMK MK1H_bit.no0 +#define RTCMK MK1H_bit.no1 +#define ITMK MK1H_bit.no2 +#define KRMK MK1H_bit.no3 +#define TMMK04 MK1H_bit.no7 +#define WDTIPR0 PR00_bit.no0 +#define LVIPR0 PR00_bit.no1 +#define PPR00 PR00_bit.no2 +#define PPR01 PR00_bit.no3 +#define PPR02 PR00_bit.no4 +#define PPR03 PR00_bit.no5 +#define PPR04 PR00_bit.no6 +#define PPR05 PR00_bit.no7 +#define CSIPR020 PR00H_bit.no0 +#define IICPR020 PR00H_bit.no0 +#define STPR02 PR00H_bit.no0 +#define CSIPR021 PR00H_bit.no1 +#define IICPR021 PR00H_bit.no1 +#define SRPR02 PR00H_bit.no1 +#define SREPR02 PR00H_bit.no2 +#define DMAPR00 PR00H_bit.no3 +#define DMAPR01 PR00H_bit.no4 +#define CSIPR000 PR00H_bit.no5 +#define IICPR000 PR00H_bit.no5 +#define STPR00 PR00H_bit.no5 +#define CSIPR001 PR00H_bit.no6 +#define IICPR001 PR00H_bit.no6 +#define SRPR00 PR00H_bit.no6 +#define SREPR00 PR00H_bit.no7 +#define TMPR001H PR00H_bit.no7 +#define CSIPR010 PR01_bit.no0 +#define IICPR010 PR01_bit.no0 +#define STPR01 PR01_bit.no0 +#define CSIPR011 PR01_bit.no1 +#define IICPR011 PR01_bit.no1 +#define SRPR01 PR01_bit.no1 +#define SREPR01 PR01_bit.no2 +#define TMPR003H PR01_bit.no2 +#define IICAPR00 PR01_bit.no3 +#define TMPR000 PR01_bit.no4 +#define TMPR001 PR01_bit.no5 +#define TMPR002 PR01_bit.no6 +#define TMPR003 PR01_bit.no7 +#define ADPR0 PR01H_bit.no0 +#define RTCPR0 PR01H_bit.no1 +#define ITPR0 PR01H_bit.no2 +#define KRPR0 PR01H_bit.no3 +#define TMPR004 PR01H_bit.no7 +#define WDTIPR1 PR10_bit.no0 +#define LVIPR1 PR10_bit.no1 +#define PPR10 PR10_bit.no2 +#define PPR11 PR10_bit.no3 +#define PPR12 PR10_bit.no4 +#define PPR13 PR10_bit.no5 +#define PPR14 PR10_bit.no6 +#define PPR15 PR10_bit.no7 +#define CSIPR120 PR10H_bit.no0 +#define IICPR120 PR10H_bit.no0 +#define STPR12 PR10H_bit.no0 +#define CSIPR121 PR10H_bit.no1 +#define IICPR121 PR10H_bit.no1 +#define SRPR12 PR10H_bit.no1 +#define SREPR12 PR10H_bit.no2 +#define DMAPR10 PR10H_bit.no3 +#define DMAPR11 PR10H_bit.no4 +#define CSIPR100 PR10H_bit.no5 +#define IICPR100 PR10H_bit.no5 +#define STPR10 PR10H_bit.no5 +#define CSIPR101 PR10H_bit.no6 +#define IICPR101 PR10H_bit.no6 +#define SRPR10 PR10H_bit.no6 +#define SREPR10 PR10H_bit.no7 +#define TMPR101H PR10H_bit.no7 +#define CSIPR110 PR11_bit.no0 +#define IICPR110 PR11_bit.no0 +#define STPR11 PR11_bit.no0 +#define CSIPR111 PR11_bit.no1 +#define IICPR111 PR11_bit.no1 +#define SRPR11 PR11_bit.no1 +#define SREPR11 PR11_bit.no2 +#define TMPR103H PR11_bit.no2 +#define IICAPR10 PR11_bit.no3 +#define TMPR100 PR11_bit.no4 +#define TMPR101 PR11_bit.no5 +#define TMPR102 PR11_bit.no6 +#define TMPR103 PR11_bit.no7 +#define ADPR1 PR11H_bit.no0 +#define RTCPR1 PR11H_bit.no1 +#define ITPR1 PR11H_bit.no2 +#define KRPR1 PR11H_bit.no3 +#define TMPR104 PR11H_bit.no7 +#define MAA PMC_bit.no0 + +/* + Interrupt vector addresses + */ +#define RST_vect (0x0) +#define INTDBG_vect (0x2) +#define INTWDTI_vect (0x4) +#define INTLVI_vect (0x6) +#define INTP0_vect (0x8) +#define INTP1_vect (0xA) +#define INTP2_vect (0xC) +#define INTP3_vect (0xE) +#define INTP4_vect (0x10) +#define INTP5_vect (0x12) +#define INTCSI20_vect (0x14) +#define INTIIC20_vect (0x14) +#define INTST2_vect (0x14) +#define INTCSI21_vect (0x16) +#define INTIIC21_vect (0x16) +#define INTSR2_vect (0x16) +#define INTSRE2_vect (0x18) +#define INTDMA0_vect (0x1A) +#define INTDMA1_vect (0x1C) +#define INTCSI00_vect (0x1E) +#define INTIIC00_vect (0x1E) +#define INTST0_vect (0x1E) +#define INTCSI01_vect (0x20) +#define INTIIC01_vect (0x20) +#define INTSR0_vect (0x20) +#define INTSRE0_vect (0x22) +#define INTTM01H_vect (0x22) +#define INTCSI10_vect (0x24) +#define INTIIC10_vect (0x24) +#define INTST1_vect (0x24) +#define INTCSI11_vect (0x26) +#define INTIIC11_vect (0x26) +#define INTSR1_vect (0x26) +#define INTSRE1_vect (0x28) +#define INTTM03H_vect (0x28) +#define INTIICA0_vect (0x2A) +#define INTTM00_vect (0x2C) +#define INTTM01_vect (0x2E) +#define INTTM02_vect (0x30) +#define INTTM03_vect (0x32) +#define INTAD_vect (0x34) +#define INTRTC_vect (0x36) +#define INTIT_vect (0x38) +#define INTKR_vect (0x3A) +#define INTTM04_vect (0x42) +#define INTTM05_vect (0x44) +#define INTTM06_vect (0x46) +#define INTTM07_vect (0x48) +#define INTP6_vect (0x4A) +#define INTP7_vect (0x4C) +#define INTP8_vect (0x4E) +#define INTP9_vect (0x50) +#define INTP10_vect (0x52) +#define INTP11_vect (0x54) +#define INTMD_vect (0x5E) +#define INTFL_vect (0x62) +#define BRK_I_vect (0x7E) +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1A_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1A_ext.h new file mode 100644 index 000000000..0048962c4 --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1A_ext.h @@ -0,0 +1,571 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78G1A */ +/* FILE : iodefine_ext.h */ +/* DESCRIPTION : Definition of Extended SFRs */ +/* CPU SERIES : RL78 - G1A */ +/* CPU TYPE : R5F10ELE */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F10ELE.DVF */ +/* Copyright(C) 2012 Renesas */ +/* File Version V1.00 */ +/* Tool Version 1.9.7121 */ +/* Date Generated 13/11/2012 */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_EXT_H +#define IODEFINE_EXT_H + +/* + IO Registers + */ +union un_adm2 { + unsigned char adm2; + __BITS8 BIT; +}; +union un_pu0 { + unsigned char pu0; + __BITS8 BIT; +}; +union un_pu1 { + unsigned char pu1; + __BITS8 BIT; +}; +union un_pu3 { + unsigned char pu3; + __BITS8 BIT; +}; +union un_pu4 { + unsigned char pu4; + __BITS8 BIT; +}; +union un_pu5 { + unsigned char pu5; + __BITS8 BIT; +}; +union un_pu7 { + unsigned char pu7; + __BITS8 BIT; +}; +union un_pu12 { + unsigned char pu12; + __BITS8 BIT; +}; +union un_pu14 { + unsigned char pu14; + __BITS8 BIT; +}; +union un_pim0 { + unsigned char pim0; + __BITS8 BIT; +}; +union un_pim1 { + unsigned char pim1; + __BITS8 BIT; +}; +union un_pom0 { + unsigned char pom0; + __BITS8 BIT; +}; +union un_pom1 { + unsigned char pom1; + __BITS8 BIT; +}; +union un_pom5 { + unsigned char pom5; + __BITS8 BIT; +}; +union un_pom7 { + unsigned char pom7; + __BITS8 BIT; +}; +union un_pmc0 { + unsigned char pmc0; + __BITS8 BIT; +}; +union un_pmc1 { + unsigned char pmc1; + __BITS8 BIT; +}; +union un_pmc3 { + unsigned char pmc3; + __BITS8 BIT; +}; +union un_pmc4 { + unsigned char pmc4; + __BITS8 BIT; +}; +union un_pmc5 { + unsigned char pmc5; + __BITS8 BIT; +}; +union un_pmc7 { + unsigned char pmc7; + __BITS8 BIT; +}; +union un_pmc12 { + unsigned char pmc12; + __BITS8 BIT; +}; +union un_nfen0 { + unsigned char nfen0; + __BITS8 BIT; +}; +union un_nfen1 { + unsigned char nfen1; + __BITS8 BIT; +}; +union un_isc { + unsigned char isc; + __BITS8 BIT; +}; +union un_gaidis { + unsigned char gaidis; + __BITS8 BIT; +}; +union un_gdidis { + unsigned char gdidis; + __BITS8 BIT; +}; +union un_dflctl { + unsigned char dflctl; + __BITS8 BIT; +}; +union un_bectl { + unsigned char bectl; + __BITS8 BIT; +}; +union un_fsse { + unsigned char fsse; + __BITS8 BIT; +}; +union un_pfs { + unsigned char pfs; + __BITS8 BIT; +}; +union un_mduc { + unsigned char mduc; + __BITS8 BIT; +}; +union un_per0 { + unsigned char per0; + __BITS8 BIT; +}; +union un_rmc { + unsigned char rmc; + __BITS8 BIT; +}; +union un_rpectl { + unsigned char rpectl; + __BITS8 BIT; +}; +union un_se0l { + unsigned char se0l; + __BITS8 BIT; +}; +union un_ss0l { + unsigned char ss0l; + __BITS8 BIT; +}; +union un_st0l { + unsigned char st0l; + __BITS8 BIT; +}; +union un_soe0l { + unsigned char soe0l; + __BITS8 BIT; +}; +union un_se1l { + unsigned char se1l; + __BITS8 BIT; +}; +union un_ss1l { + unsigned char ss1l; + __BITS8 BIT; +}; +union un_st1l { + unsigned char st1l; + __BITS8 BIT; +}; +union un_soe1l { + unsigned char soe1l; + __BITS8 BIT; +}; +union un_te0l { + unsigned char te0l; + __BITS8 BIT; +}; +union un_ts0l { + unsigned char ts0l; + __BITS8 BIT; +}; +union un_tt0l { + unsigned char tt0l; + __BITS8 BIT; +}; +union un_toe0l { + unsigned char toe0l; + __BITS8 BIT; +}; +union un_iicctl00 { + unsigned char iicctl00; + __BITS8 BIT; +}; +union un_iicctl01 { + unsigned char iicctl01; + __BITS8 BIT; +}; +union un_crc0ctl { + unsigned char crc0ctl; + __BITS8 BIT; +}; + +#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 +#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT +#define ADUL (*(volatile unsigned char *)0xF0011) +#define ADLL (*(volatile unsigned char *)0xF0012) +#define ADTES (*(volatile unsigned char *)0xF0013) +#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 +#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT +#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 +#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT +#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 +#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT +#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 +#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT +#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 +#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT +#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 +#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT +#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 +#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT +#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 +#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT +#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 +#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT +#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 +#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT +#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 +#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT +#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 +#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT +#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 +#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT +#define POM7 (*(volatile union un_pom7 *)0xF0057).pom7 +#define POM7_bit (*(volatile union un_pom7 *)0xF0057).BIT +#define PMC0 (*(volatile union un_pmc0 *)0xF0060).pmc0 +#define PMC0_bit (*(volatile union un_pmc0 *)0xF0060).BIT +#define PMC1 (*(volatile union un_pmc1 *)0xF0061).pmc1 +#define PMC1_bit (*(volatile union un_pmc1 *)0xF0061).BIT +#define PMC3 (*(volatile union un_pmc3 *)0xF0063).pmc3 +#define PMC3_bit (*(volatile union un_pmc3 *)0xF0063).BIT +#define PMC4 (*(volatile union un_pmc4 *)0xF0064).pmc4 +#define PMC4_bit (*(volatile union un_pmc4 *)0xF0064).BIT +#define PMC5 (*(volatile union un_pmc5 *)0xF0065).pmc5 +#define PMC5_bit (*(volatile union un_pmc5 *)0xF0065).BIT +#define PMC7 (*(volatile union un_pmc7 *)0xF0067).pmc7 +#define PMC7_bit (*(volatile union un_pmc7 *)0xF0067).BIT +#define PMC12 (*(volatile union un_pmc12 *)0xF006C).pmc12 +#define PMC12_bit (*(volatile union un_pmc12 *)0xF006C).BIT +#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 +#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT +#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 +#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT +#define ISC (*(volatile union un_isc *)0xF0073).isc +#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT +#define TIS0 (*(volatile unsigned char *)0xF0074) +#define ADPC (*(volatile unsigned char *)0xF0076) +#define PIOR (*(volatile unsigned char *)0xF0077) +#define IAWCTL (*(volatile unsigned char *)0xF0078) +#define GAIDIS (*(volatile union un_gaidis *)0xF007C).gaidis +#define GAIDIS_bit (*(volatile union un_gaidis *)0xF007C).BIT +#define GDIDIS (*(volatile union un_gdidis *)0xF007D).gdidis +#define GDIDIS_bit (*(volatile union un_gdidis *)0xF007D).BIT +#define PRDSEL (*(volatile unsigned short *)0xF007E) +#define TOOLEN (*(volatile unsigned char *)0xF0080) +#define BPAL0 (*(volatile unsigned char *)0xF0081) +#define BPAH0 (*(volatile unsigned char *)0xF0082) +#define BPAS0 (*(volatile unsigned char *)0xF0083) +#define BACDVL0 (*(volatile unsigned char *)0xF0084) +#define BACDVH0 (*(volatile unsigned char *)0xF0085) +#define BACDML0 (*(volatile unsigned char *)0xF0086) +#define BACDMH0 (*(volatile unsigned char *)0xF0087) +#define MONMOD (*(volatile unsigned char *)0xF0088) +#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl +#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT +#define HIOTRM (*(volatile unsigned char *)0xF00A0) +#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl +#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT +#define HOCODIV (*(volatile unsigned char *)0xF00A8) +#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) +#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) +#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) +#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) +#define FLSEC (*(volatile unsigned short *)0xF00B0) +#define FLFSWS (*(volatile unsigned short *)0xF00B2) +#define FLFSWE (*(volatile unsigned short *)0xF00B4) +#define FSSET (*(volatile unsigned char *)0xF00B6) +#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse +#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT +#define FLFADL (*(volatile unsigned short *)0xF00B8) +#define FLFADH (*(volatile unsigned char *)0xF00BA) +#define PFCMD (*(volatile unsigned char *)0xF00C0) +#define PFS (*(volatile union un_pfs *)0xF00C1).pfs +#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT +#define FLRL (*(volatile unsigned short *)0xF00C2) +#define FLRH (*(volatile unsigned short *)0xF00C4) +#define FLWE (*(volatile unsigned char *)0xF00C6) +#define FLRE (*(volatile unsigned char *)0xF00C7) +#define FLTMS (*(volatile unsigned short *)0xF00C8) +#define DFLMC (*(volatile unsigned short *)0xF00CA) +#define FLMCL (*(volatile unsigned short *)0xF00CC) +#define FLMCH (*(volatile unsigned char *)0xF00CE) +#define FSCTL (*(volatile unsigned char *)0xF00CF) +#define ICEADR (*(volatile unsigned short *)0xF00D0) +#define ICEDAT (*(volatile unsigned short *)0xF00D2) +#define MDCL (*(volatile unsigned short *)0xF00E0) +#define MDCH (*(volatile unsigned short *)0xF00E2) +#define MDUC (*(volatile union un_mduc *)0xF00E8).mduc +#define MDUC_bit (*(volatile union un_mduc *)0xF00E8).BIT +#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 +#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT +#define OSMC (*(volatile unsigned char *)0xF00F3) +#define RMC (*(volatile union un_rmc *)0xF00F4).rmc +#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT +#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl +#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT +#define BCDADJ (*(volatile unsigned char *)0xF00FE) +#define VECTCTRL (*(volatile unsigned char *)0xF00FF) +#define SSR00 (*(volatile unsigned short *)0xF0100) +#define SSR00L (*(volatile unsigned char *)0xF0100) +#define SSR01 (*(volatile unsigned short *)0xF0102) +#define SSR01L (*(volatile unsigned char *)0xF0102) +#define SSR02 (*(volatile unsigned short *)0xF0104) +#define SSR02L (*(volatile unsigned char *)0xF0104) +#define SSR03 (*(volatile unsigned short *)0xF0106) +#define SSR03L (*(volatile unsigned char *)0xF0106) +#define SIR00 (*(volatile unsigned short *)0xF0108) +#define SIR00L (*(volatile unsigned char *)0xF0108) +#define SIR01 (*(volatile unsigned short *)0xF010A) +#define SIR01L (*(volatile unsigned char *)0xF010A) +#define SIR02 (*(volatile unsigned short *)0xF010C) +#define SIR02L (*(volatile unsigned char *)0xF010C) +#define SIR03 (*(volatile unsigned short *)0xF010E) +#define SIR03L (*(volatile unsigned char *)0xF010E) +#define SMR00 (*(volatile unsigned short *)0xF0110) +#define SMR01 (*(volatile unsigned short *)0xF0112) +#define SMR02 (*(volatile unsigned short *)0xF0114) +#define SMR03 (*(volatile unsigned short *)0xF0116) +#define SCR00 (*(volatile unsigned short *)0xF0118) +#define SCR01 (*(volatile unsigned short *)0xF011A) +#define SCR02 (*(volatile unsigned short *)0xF011C) +#define SCR03 (*(volatile unsigned short *)0xF011E) +#define SE0 (*(volatile unsigned short *)0xF0120) +#define SE0L (*(volatile union un_se0l *)0xF0120).se0l +#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT +#define SS0 (*(volatile unsigned short *)0xF0122) +#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l +#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT +#define ST0 (*(volatile unsigned short *)0xF0124) +#define ST0L (*(volatile union un_st0l *)0xF0124).st0l +#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT +#define SPS0 (*(volatile unsigned short *)0xF0126) +#define SPS0L (*(volatile unsigned char *)0xF0126) +#define SO0 (*(volatile unsigned short *)0xF0128) +#define SOE0 (*(volatile unsigned short *)0xF012A) +#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l +#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT +#define EDR00 (*(volatile unsigned short *)0xF012C) +#define EDR00L (*(volatile unsigned char *)0xF012C) +#define EDR01 (*(volatile unsigned short *)0xF012E) +#define EDR01L (*(volatile unsigned char *)0xF012E) +#define EDR02 (*(volatile unsigned short *)0xF0130) +#define EDR02L (*(volatile unsigned char *)0xF0130) +#define EDR03 (*(volatile unsigned short *)0xF0132) +#define EDR03L (*(volatile unsigned char *)0xF0132) +#define SOL0 (*(volatile unsigned short *)0xF0134) +#define SOL0L (*(volatile unsigned char *)0xF0134) +#define SSC0 (*(volatile unsigned short *)0xF0138) +#define SSC0L (*(volatile unsigned char *)0xF0138) +#define SSR10 (*(volatile unsigned short *)0xF0140) +#define SSR10L (*(volatile unsigned char *)0xF0140) +#define SSR11 (*(volatile unsigned short *)0xF0142) +#define SSR11L (*(volatile unsigned char *)0xF0142) +#define SIR10 (*(volatile unsigned short *)0xF0148) +#define SIR10L (*(volatile unsigned char *)0xF0148) +#define SIR11 (*(volatile unsigned short *)0xF014A) +#define SIR11L (*(volatile unsigned char *)0xF014A) +#define SMR10 (*(volatile unsigned short *)0xF0150) +#define SMR11 (*(volatile unsigned short *)0xF0152) +#define SCR10 (*(volatile unsigned short *)0xF0158) +#define SCR11 (*(volatile unsigned short *)0xF015A) +#define SE1 (*(volatile unsigned short *)0xF0160) +#define SE1L (*(volatile union un_se1l *)0xF0160).se1l +#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT +#define SS1 (*(volatile unsigned short *)0xF0162) +#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l +#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT +#define ST1 (*(volatile unsigned short *)0xF0164) +#define ST1L (*(volatile union un_st1l *)0xF0164).st1l +#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT +#define SPS1 (*(volatile unsigned short *)0xF0166) +#define SPS1L (*(volatile unsigned char *)0xF0166) +#define SO1 (*(volatile unsigned short *)0xF0168) +#define SOE1 (*(volatile unsigned short *)0xF016A) +#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l +#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT +#define EDR10 (*(volatile unsigned short *)0xF016C) +#define EDR10L (*(volatile unsigned char *)0xF016C) +#define EDR11 (*(volatile unsigned short *)0xF016E) +#define EDR11L (*(volatile unsigned char *)0xF016E) +#define SOL1 (*(volatile unsigned short *)0xF0174) +#define SOL1L (*(volatile unsigned char *)0xF0174) +#define TCR00 (*(volatile unsigned short *)0xF0180) +#define TCR01 (*(volatile unsigned short *)0xF0182) +#define TCR02 (*(volatile unsigned short *)0xF0184) +#define TCR03 (*(volatile unsigned short *)0xF0186) +#define TCR04 (*(volatile unsigned short *)0xF0188) +#define TCR05 (*(volatile unsigned short *)0xF018A) +#define TCR06 (*(volatile unsigned short *)0xF018C) +#define TCR07 (*(volatile unsigned short *)0xF018E) +#define TMR00 (*(volatile unsigned short *)0xF0190) +#define TMR01 (*(volatile unsigned short *)0xF0192) +#define TMR02 (*(volatile unsigned short *)0xF0194) +#define TMR03 (*(volatile unsigned short *)0xF0196) +#define TMR04 (*(volatile unsigned short *)0xF0198) +#define TMR05 (*(volatile unsigned short *)0xF019A) +#define TMR06 (*(volatile unsigned short *)0xF019C) +#define TMR07 (*(volatile unsigned short *)0xF019E) +#define TSR00 (*(volatile unsigned short *)0xF01A0) +#define TSR00L (*(volatile unsigned char *)0xF01A0) +#define TSR01 (*(volatile unsigned short *)0xF01A2) +#define TSR01L (*(volatile unsigned char *)0xF01A2) +#define TSR02 (*(volatile unsigned short *)0xF01A4) +#define TSR02L (*(volatile unsigned char *)0xF01A4) +#define TSR03 (*(volatile unsigned short *)0xF01A6) +#define TSR03L (*(volatile unsigned char *)0xF01A6) +#define TSR04 (*(volatile unsigned short *)0xF01A8) +#define TSR04L (*(volatile unsigned char *)0xF01A8) +#define TSR05 (*(volatile unsigned short *)0xF01AA) +#define TSR05L (*(volatile unsigned char *)0xF01AA) +#define TSR06 (*(volatile unsigned short *)0xF01AC) +#define TSR06L (*(volatile unsigned char *)0xF01AC) +#define TSR07 (*(volatile unsigned short *)0xF01AE) +#define TSR07L (*(volatile unsigned char *)0xF01AE) +#define TE0 (*(volatile unsigned short *)0xF01B0) +#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l +#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT +#define TS0 (*(volatile unsigned short *)0xF01B2) +#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l +#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT +#define TT0 (*(volatile unsigned short *)0xF01B4) +#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l +#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT +#define TPS0 (*(volatile unsigned short *)0xF01B6) +#define TO0 (*(volatile unsigned short *)0xF01B8) +#define TO0L (*(volatile unsigned char *)0xF01B8) +#define TOE0 (*(volatile unsigned short *)0xF01BA) +#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l +#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT +#define TOL0 (*(volatile unsigned short *)0xF01BC) +#define TOL0L (*(volatile unsigned char *)0xF01BC) +#define TOM0 (*(volatile unsigned short *)0xF01BE) +#define TOM0L (*(volatile unsigned char *)0xF01BE) +#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 +#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT +#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 +#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT +#define IICWL0 (*(volatile unsigned char *)0xF0232) +#define IICWH0 (*(volatile unsigned char *)0xF0233) +#define SVA0 (*(volatile unsigned char *)0xF0234) +#define IICSE0 (*(volatile unsigned char *)0xF0235) +#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl +#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT +#define PGCRCL (*(volatile unsigned short *)0xF02F2) +#define CRCD (*(volatile unsigned short *)0xF02FA) + +/* + Sfr bits + */ +#define ADTYP ADM2_bit.no0 +#define AWC ADM2_bit.no2 +#define ADRCK ADM2_bit.no3 +#define DFLEN DFLCTL_bit.no0 +#define BRSAM BECTL_bit.no0 +#define ESQST FSSE_bit.no7 +#define DIVST MDUC_bit.no0 +#define MACSF MDUC_bit.no1 +#define MACOF MDUC_bit.no2 +#define MDSM MDUC_bit.no3 +#define MACMODE MDUC_bit.no6 +#define DIVMODE MDUC_bit.no7 +#define TAU0EN PER0_bit.no0 +#define SAU0EN PER0_bit.no2 +#define SAU1EN PER0_bit.no3 +#define IICA0EN PER0_bit.no4 +#define ADCEN PER0_bit.no5 +#define RTCEN PER0_bit.no7 +#define PAENB RMC_bit.no0 +#define WDVOL RMC_bit.no7 +#define RPEF RPECTL_bit.no0 +#define RPERDIS RPECTL_bit.no7 +#define SPT0 IICCTL00_bit.no0 +#define STT0 IICCTL00_bit.no1 +#define ACKE0 IICCTL00_bit.no2 +#define WTIM0 IICCTL00_bit.no3 +#define SPIE0 IICCTL00_bit.no4 +#define WREL0 IICCTL00_bit.no5 +#define LREL0 IICCTL00_bit.no6 +#define IICE0 IICCTL00_bit.no7 +#define PRS0 IICCTL01_bit.no0 +#define DFC0 IICCTL01_bit.no2 +#define SMC0 IICCTL01_bit.no3 +#define DAD0 IICCTL01_bit.no4 +#define CLD0 IICCTL01_bit.no5 +#define WUP0 IICCTL01_bit.no7 +#define CRC0EN CRC0CTL_bit.no7 + +/* + Interrupt vector addresses + */ +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1C.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1C.h new file mode 100644 index 000000000..dfd868535 --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1C.h @@ -0,0 +1,903 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78G1C */ +/* FILE : iodefine.h */ +/* DESCRIPTION : Definition of I/O Registers */ +/* CPU SERIES : RL78 - G1C */ +/* CPU TYPE : R5F10JGC */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F10JGC.DVF */ +/* Copyright(C) 2012 Renesas */ +/* File Version V1.00 */ +/* Tool Version 1.9.7121 */ +/* Date Generated 13/11/2012 */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_H +#define IODEFINE_H + +/* + IO Registers + */ +union un_p0 { + unsigned char p0; + __BITS8 BIT; +}; +union un_p1 { + unsigned char p1; + __BITS8 BIT; +}; +union un_p2 { + unsigned char p2; + __BITS8 BIT; +}; +union un_p3 { + unsigned char p3; + __BITS8 BIT; +}; +union un_p4 { + unsigned char p4; + __BITS8 BIT; +}; +union un_p5 { + unsigned char p5; + __BITS8 BIT; +}; +union un_p6 { + unsigned char p6; + __BITS8 BIT; +}; +union un_p7 { + unsigned char p7; + __BITS8 BIT; +}; +union un_p12 { + unsigned char p12; + __BITS8 BIT; +}; +union un_p13 { + unsigned char p13; + __BITS8 BIT; +}; +union un_p14 { + unsigned char p14; + __BITS8 BIT; +}; +union un_pm0 { + unsigned char pm0; + __BITS8 BIT; +}; +union un_pm1 { + unsigned char pm1; + __BITS8 BIT; +}; +union un_pm2 { + unsigned char pm2; + __BITS8 BIT; +}; +union un_pm3 { + unsigned char pm3; + __BITS8 BIT; +}; +union un_pm4 { + unsigned char pm4; + __BITS8 BIT; +}; +union un_pm5 { + unsigned char pm5; + __BITS8 BIT; +}; +union un_pm6 { + unsigned char pm6; + __BITS8 BIT; +}; +union un_pm7 { + unsigned char pm7; + __BITS8 BIT; +}; +union un_pm12 { + unsigned char pm12; + __BITS8 BIT; +}; +union un_pm14 { + unsigned char pm14; + __BITS8 BIT; +}; +union un_adm0 { + unsigned char adm0; + __BITS8 BIT; +}; +union un_ads { + unsigned char ads; + __BITS8 BIT; +}; +union un_adm1 { + unsigned char adm1; + __BITS8 BIT; +}; +union un_krm { + unsigned char krm; + __BITS8 BIT; +}; +union un_egp0 { + unsigned char egp0; + __BITS8 BIT; +}; +union un_egn0 { + unsigned char egn0; + __BITS8 BIT; +}; +union un_egp1 { + unsigned char egp1; + __BITS8 BIT; +}; +union un_egn1 { + unsigned char egn1; + __BITS8 BIT; +}; +union un_iics0 { + unsigned char iics0; + __BITS8 BIT; +}; +union un_iicf0 { + unsigned char iicf0; + __BITS8 BIT; +}; +union un_flars { + unsigned char flars; + __BITS8 BIT; +}; +union un_fssq { + unsigned char fssq; + __BITS8 BIT; +}; +union un_flrst { + unsigned char flrst; + __BITS8 BIT; +}; +union un_fsastl { + unsigned char fsastl; + __BITS8 BIT; +}; +union un_fsasth { + unsigned char fsasth; + __BITS8 BIT; +}; +union un_rtcc0 { + unsigned char rtcc0; + __BITS8 BIT; +}; +union un_rtcc1 { + unsigned char rtcc1; + __BITS8 BIT; +}; +union un_csc { + unsigned char csc; + __BITS8 BIT; +}; +union un_ostc { + unsigned char ostc; + __BITS8 BIT; +}; +union un_ckc { + unsigned char ckc; + __BITS8 BIT; +}; +union un_cks0 { + unsigned char cks0; + __BITS8 BIT; +}; +union un_cks1 { + unsigned char cks1; + __BITS8 BIT; +}; +union un_lvim { + unsigned char lvim; + __BITS8 BIT; +}; +union un_lvis { + unsigned char lvis; + __BITS8 BIT; +}; +union un_monsta0 { + unsigned char monsta0; + __BITS8 BIT; +}; +union un_asim { + unsigned char asim; + __BITS8 BIT; +}; +union un_dmc0 { + unsigned char dmc0; + __BITS8 BIT; +}; +union un_dmc1 { + unsigned char dmc1; + __BITS8 BIT; +}; +union un_drc0 { + unsigned char drc0; + __BITS8 BIT; +}; +union un_drc1 { + unsigned char drc1; + __BITS8 BIT; +}; +union un_if2 { + unsigned short if2; + __BITS16 BIT; +}; +union un_if2l { + unsigned char if2l; + __BITS8 BIT; +}; +union un_if2h { + unsigned char if2h; + __BITS8 BIT; +}; +union un_mk2 { + unsigned short mk2; + __BITS16 BIT; +}; +union un_mk2l { + unsigned char mk2l; + __BITS8 BIT; +}; +union un_mk2h { + unsigned char mk2h; + __BITS8 BIT; +}; +union un_pr02 { + unsigned short pr02; + __BITS16 BIT; +}; +union un_pr02l { + unsigned char pr02l; + __BITS8 BIT; +}; +union un_pr02h { + unsigned char pr02h; + __BITS8 BIT; +}; +union un_pr12 { + unsigned short pr12; + __BITS16 BIT; +}; +union un_pr12l { + unsigned char pr12l; + __BITS8 BIT; +}; +union un_pr12h { + unsigned char pr12h; + __BITS8 BIT; +}; +union un_if0 { + unsigned short if0; + __BITS16 BIT; +}; +union un_if0l { + unsigned char if0l; + __BITS8 BIT; +}; +union un_if0h { + unsigned char if0h; + __BITS8 BIT; +}; +union un_if1 { + unsigned short if1; + __BITS16 BIT; +}; +union un_if1l { + unsigned char if1l; + __BITS8 BIT; +}; +union un_if1h { + unsigned char if1h; + __BITS8 BIT; +}; +union un_mk0 { + unsigned short mk0; + __BITS16 BIT; +}; +union un_mk0l { + unsigned char mk0l; + __BITS8 BIT; +}; +union un_mk0h { + unsigned char mk0h; + __BITS8 BIT; +}; +union un_mk1 { + unsigned short mk1; + __BITS16 BIT; +}; +union un_mk1l { + unsigned char mk1l; + __BITS8 BIT; +}; +union un_mk1h { + unsigned char mk1h; + __BITS8 BIT; +}; +union un_pr00 { + unsigned short pr00; + __BITS16 BIT; +}; +union un_pr00l { + unsigned char pr00l; + __BITS8 BIT; +}; +union un_pr00h { + unsigned char pr00h; + __BITS8 BIT; +}; +union un_pr01 { + unsigned short pr01; + __BITS16 BIT; +}; +union un_pr01l { + unsigned char pr01l; + __BITS8 BIT; +}; +union un_pr01h { + unsigned char pr01h; + __BITS8 BIT; +}; +union un_pr10 { + unsigned short pr10; + __BITS16 BIT; +}; +union un_pr10l { + unsigned char pr10l; + __BITS8 BIT; +}; +union un_pr10h { + unsigned char pr10h; + __BITS8 BIT; +}; +union un_pr11 { + unsigned short pr11; + __BITS16 BIT; +}; +union un_pr11l { + unsigned char pr11l; + __BITS8 BIT; +}; +union un_pr11h { + unsigned char pr11h; + __BITS8 BIT; +}; +union un_pmc { + unsigned char pmc; + __BITS8 BIT; +}; + +#define P0 (*(volatile union un_p0 *)0xFFF00).p0 +#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT +#define P1 (*(volatile union un_p1 *)0xFFF01).p1 +#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT +#define P2 (*(volatile union un_p2 *)0xFFF02).p2 +#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT +#define P3 (*(volatile union un_p3 *)0xFFF03).p3 +#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT +#define P4 (*(volatile union un_p4 *)0xFFF04).p4 +#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT +#define P5 (*(volatile union un_p5 *)0xFFF05).p5 +#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT +#define P6 (*(volatile union un_p6 *)0xFFF06).p6 +#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT +#define P7 (*(volatile union un_p7 *)0xFFF07).p7 +#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT +#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 +#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT +#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 +#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT +#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 +#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT +#define SDR00 (*(volatile unsigned short *)0xFFF10) +#define SIO00 (*(volatile unsigned char *)0xFFF10) +#define TXD0 (*(volatile unsigned char *)0xFFF10) +#define SDR01 (*(volatile unsigned short *)0xFFF12) +#define RXD0 (*(volatile unsigned char *)0xFFF12) +#define SIO01 (*(volatile unsigned char *)0xFFF12) +#define TDR00 (*(volatile unsigned short *)0xFFF18) +#define TDR01 (*(volatile unsigned short *)0xFFF1A) +#define TDR01L (*(volatile unsigned char *)0xFFF1A) +#define TDR01H (*(volatile unsigned char *)0xFFF1B) +#define ADCR (*(volatile unsigned short *)0xFFF1E) +#define ADCRH (*(volatile unsigned char *)0xFFF1F) +#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 +#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT +#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 +#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT +#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 +#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT +#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 +#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT +#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 +#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT +#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 +#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT +#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 +#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT +#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 +#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT +#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 +#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT +#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 +#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT +#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 +#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT +#define ADS (*(volatile union un_ads *)0xFFF31).ads +#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT +#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 +#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT +#define KRM (*(volatile union un_krm *)0xFFF37).krm +#define KRM_bit (*(volatile union un_krm *)0xFFF37).BIT +#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 +#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT +#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 +#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT +#define EGP1 (*(volatile union un_egp1 *)0xFFF3A).egp1 +#define EGP1_bit (*(volatile union un_egp1 *)0xFFF3A).BIT +#define EGN1 (*(volatile union un_egn1 *)0xFFF3B).egn1 +#define EGN1_bit (*(volatile union un_egn1 *)0xFFF3B).BIT +#define IICA0 (*(volatile unsigned char *)0xFFF50) +#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 +#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT +#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 +#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT +#define CFIFO (*(volatile unsigned short *)0xFFF54) +#define CFIFOL (*(volatile unsigned char *)0xFFF54) +#define D0FIFO (*(volatile unsigned short *)0xFFF58) +#define D0FIFOL (*(volatile unsigned char *)0xFFF58) +#define D1FIFO (*(volatile unsigned short *)0xFFF5C) +#define D1FIFOL (*(volatile unsigned char *)0xFFF5C) +#define TDR02 (*(volatile unsigned short *)0xFFF64) +#define TDR03 (*(volatile unsigned short *)0xFFF66) +#define TDR03L (*(volatile unsigned char *)0xFFF66) +#define TDR03H (*(volatile unsigned char *)0xFFF67) +#define FLPMC (*(volatile unsigned char *)0xFFF80) +#define FLARS (*(volatile union un_flars *)0xFFF81).flars +#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT +#define FLAPL (*(volatile unsigned short *)0xFFF82) +#define FLAPH (*(volatile unsigned char *)0xFFF84) +#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq +#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT +#define FLSEDL (*(volatile unsigned short *)0xFFF86) +#define FLSEDH (*(volatile unsigned char *)0xFFF88) +#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst +#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT +#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl +#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT +#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth +#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT +#define FLWL (*(volatile unsigned short *)0xFFF8C) +#define FLWH (*(volatile unsigned short *)0xFFF8E) +#define ITMC (*(volatile unsigned short *)0xFFF90) +#define SEC (*(volatile unsigned char *)0xFFF92) +#define MIN (*(volatile unsigned char *)0xFFF93) +#define HOUR (*(volatile unsigned char *)0xFFF94) +#define WEEK (*(volatile unsigned char *)0xFFF95) +#define DAY (*(volatile unsigned char *)0xFFF96) +#define MONTH (*(volatile unsigned char *)0xFFF97) +#define YEAR (*(volatile unsigned char *)0xFFF98) +#define SUBCUD (*(volatile unsigned char *)0xFFF99) +#define ALARMWM (*(volatile unsigned char *)0xFFF9A) +#define ALARMWH (*(volatile unsigned char *)0xFFF9B) +#define ALARMWW (*(volatile unsigned char *)0xFFF9C) +#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 +#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT +#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 +#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT +#define CMC (*(volatile unsigned char *)0xFFFA0) +#define CSC (*(volatile union un_csc *)0xFFFA1).csc +#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT +#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc +#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT +#define OSTS (*(volatile unsigned char *)0xFFFA3) +#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc +#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT +#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 +#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT +#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 +#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT +#define RESF (*(volatile unsigned char *)0xFFFA8) +#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim +#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT +#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis +#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT +#define WDTE (*(volatile unsigned char *)0xFFFAB) +#define CRCIN (*(volatile unsigned char *)0xFFFAC) +#define RXB (*(volatile unsigned char *)0xFFFAD) +#define TXS (*(volatile unsigned char *)0xFFFAD) +#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 +#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT +#define ASIM (*(volatile union un_asim *)0xFFFAF).asim +#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT +#define DSA0 (*(volatile unsigned char *)0xFFFB0) +#define DSA1 (*(volatile unsigned char *)0xFFFB1) +#define DRA0 (*(volatile unsigned short *)0xFFFB2) +#define DRA0L (*(volatile unsigned char *)0xFFFB2) +#define DRA0H (*(volatile unsigned char *)0xFFFB3) +#define DRA1 (*(volatile unsigned short *)0xFFFB4) +#define DRA1L (*(volatile unsigned char *)0xFFFB4) +#define DRA1H (*(volatile unsigned char *)0xFFFB5) +#define DBC0 (*(volatile unsigned short *)0xFFFB6) +#define DBC0L (*(volatile unsigned char *)0xFFFB6) +#define DBC0H (*(volatile unsigned char *)0xFFFB7) +#define DBC1 (*(volatile unsigned short *)0xFFFB8) +#define DBC1L (*(volatile unsigned char *)0xFFFB8) +#define DBC1H (*(volatile unsigned char *)0xFFFB9) +#define DMC0 (*(volatile union un_dmc0 *)0xFFFBA).dmc0 +#define DMC0_bit (*(volatile union un_dmc0 *)0xFFFBA).BIT +#define DMC1 (*(volatile union un_dmc1 *)0xFFFBB).dmc1 +#define DMC1_bit (*(volatile union un_dmc1 *)0xFFFBB).BIT +#define DRC0 (*(volatile union un_drc0 *)0xFFFBC).drc0 +#define DRC0_bit (*(volatile union un_drc0 *)0xFFFBC).BIT +#define DRC1 (*(volatile union un_drc1 *)0xFFFBD).drc1 +#define DRC1_bit (*(volatile union un_drc1 *)0xFFFBD).BIT +#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 +#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT +#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l +#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT +#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h +#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT +#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 +#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT +#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l +#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT +#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h +#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT +#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 +#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT +#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l +#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT +#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h +#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT +#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 +#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT +#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l +#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT +#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h +#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT +#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 +#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT +#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l +#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT +#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h +#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT +#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 +#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT +#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l +#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT +#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h +#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT +#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 +#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT +#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l +#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT +#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h +#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT +#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 +#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT +#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l +#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT +#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h +#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT +#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 +#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT +#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l +#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT +#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h +#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT +#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 +#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT +#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l +#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT +#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h +#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT +#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 +#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT +#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l +#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT +#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h +#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT +#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 +#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT +#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l +#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT +#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h +#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT +#define MDAL (*(volatile unsigned short *)0xFFFF0) +#define MULA (*(volatile unsigned short *)0xFFFF0) +#define MDAH (*(volatile unsigned short *)0xFFFF2) +#define MULB (*(volatile unsigned short *)0xFFFF2) +#define MDBH (*(volatile unsigned short *)0xFFFF4) +#define MULOH (*(volatile unsigned short *)0xFFFF4) +#define MDBL (*(volatile unsigned short *)0xFFFF6) +#define MULOL (*(volatile unsigned short *)0xFFFF6) +#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc +#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT + +/* + Sfr bits + */ +#define ADCE ADM0_bit.no0 +#define ADCS ADM0_bit.no7 +#define SPD0 IICS0_bit.no0 +#define STD0 IICS0_bit.no1 +#define ACKD0 IICS0_bit.no2 +#define TRC0 IICS0_bit.no3 +#define COI0 IICS0_bit.no4 +#define EXC0 IICS0_bit.no5 +#define ALD0 IICS0_bit.no6 +#define MSTS0 IICS0_bit.no7 +#define IICRSV0 IICF0_bit.no0 +#define STCEN0 IICF0_bit.no1 +#define IICBSY0 IICF0_bit.no6 +#define STCF0 IICF0_bit.no7 +#define FSSTP FSSQ_bit.no6 +#define SQST FSSQ_bit.no7 +#define SQEND FSASTH_bit.no6 +#define ESQEND FSASTH_bit.no7 +#define RCLOE1 RTCC0_bit.no5 +#define RTCE RTCC0_bit.no7 +#define RWAIT RTCC1_bit.no0 +#define RWST RTCC1_bit.no1 +#define RIFG RTCC1_bit.no3 +#define WAFG RTCC1_bit.no4 +#define WALIE RTCC1_bit.no6 +#define WALE RTCC1_bit.no7 +#define HIOSTOP CSC_bit.no0 +#define XTSTOP CSC_bit.no6 +#define MSTOP CSC_bit.no7 +#define SDIV CKC_bit.no3 +#define MCM0 CKC_bit.no4 +#define MCS CKC_bit.no5 +#define CSS CKC_bit.no6 +#define CLS CKC_bit.no7 +#define PCLOE0 CKS0_bit.no7 +#define PCLOE1 CKS1_bit.no7 +#define LVIF LVIM_bit.no0 +#define LVIOMSK LVIM_bit.no1 +#define LVISEN LVIM_bit.no7 +#define LVILV LVIS_bit.no0 +#define LVIMD LVIS_bit.no7 +#define DWAIT0 DMC0_bit.no4 +#define DS0 DMC0_bit.no5 +#define DRS0 DMC0_bit.no6 +#define STG0 DMC0_bit.no7 +#define DWAIT1 DMC1_bit.no4 +#define DS1 DMC1_bit.no5 +#define DRS1 DMC1_bit.no6 +#define STG1 DMC1_bit.no7 +#define DST0 DRC0_bit.no0 +#define DEN0 DRC0_bit.no7 +#define DST1 DRC1_bit.no0 +#define DEN1 DRC1_bit.no7 +#define PIF6 IF2_bit.no3 +#define PIF8 IF2_bit.no5 +#define PIF9 IF2_bit.no6 +#define MDIF IF2H_bit.no5 +#define FLIF IF2H_bit.no7 +#define PMK6 MK2_bit.no3 +#define PMK8 MK2_bit.no5 +#define PMK9 MK2_bit.no6 +#define MDMK MK2H_bit.no5 +#define FLMK MK2H_bit.no7 +#define PPR06 PR02_bit.no3 +#define PPR08 PR02_bit.no5 +#define PPR09 PR02_bit.no6 +#define MDPR0 PR02H_bit.no5 +#define FLPR0 PR02H_bit.no7 +#define PPR16 PR12_bit.no3 +#define PPR18 PR12_bit.no5 +#define PPR19 PR12_bit.no6 +#define MDPR1 PR12H_bit.no5 +#define FLPR1 PR12H_bit.no7 +#define WDTIIF IF0_bit.no0 +#define LVIIF IF0_bit.no1 +#define PIF0 IF0_bit.no2 +#define PIF1 IF0_bit.no3 +#define PIF2 IF0_bit.no4 +#define PIF3 IF0_bit.no5 +#define PIF4 IF0_bit.no6 +#define PIF5 IF0_bit.no7 +#define DMAIF0 IF0H_bit.no3 +#define DMAIF1 IF0H_bit.no4 +#define CSIIF00 IF0H_bit.no5 +#define IICIF00 IF0H_bit.no5 +#define STIF0 IF0H_bit.no5 +#define TMIF00 IF0H_bit.no6 +#define CSIIF01 IF0H_bit.no7 +#define IICIF01 IF0H_bit.no7 +#define SRIF0 IF0H_bit.no7 +#define SREIF0 IF1_bit.no0 +#define TMIF01H IF1_bit.no0 +#define TMIF03H IF1_bit.no3 +#define IICAIF0 IF1_bit.no4 +#define TMIF01 IF1_bit.no5 +#define TMIF02 IF1_bit.no6 +#define TMIF03 IF1_bit.no7 +#define ADIF IF1H_bit.no0 +#define RTCIF IF1H_bit.no1 +#define ITIF IF1H_bit.no2 +#define KRIF IF1H_bit.no3 +#define USBIF IF1H_bit.no4 +#define RSUIF IF1H_bit.no5 +#define WDTIMK MK0_bit.no0 +#define LVIMK MK0_bit.no1 +#define PMK0 MK0_bit.no2 +#define PMK1 MK0_bit.no3 +#define PMK2 MK0_bit.no4 +#define PMK3 MK0_bit.no5 +#define PMK4 MK0_bit.no6 +#define PMK5 MK0_bit.no7 +#define DMAMK0 MK0H_bit.no3 +#define DMAMK1 MK0H_bit.no4 +#define CSIMK00 MK0H_bit.no5 +#define IICMK00 MK0H_bit.no5 +#define STMK0 MK0H_bit.no5 +#define TMMK00 MK0H_bit.no6 +#define CSIMK01 MK0H_bit.no7 +#define IICMK01 MK0H_bit.no7 +#define SRMK0 MK0H_bit.no7 +#define SREMK0 MK1_bit.no0 +#define TMMK01H MK1_bit.no0 +#define TMMK03H MK1_bit.no3 +#define IICAMK0 MK1_bit.no4 +#define TMMK01 MK1_bit.no5 +#define TMMK02 MK1_bit.no6 +#define TMMK03 MK1_bit.no7 +#define ADMK MK1H_bit.no0 +#define RTCMK MK1H_bit.no1 +#define ITMK MK1H_bit.no2 +#define KRMK MK1H_bit.no3 +#define USBMK MK1H_bit.no4 +#define RSUMK MK1H_bit.no5 +#define WDTIPR0 PR00_bit.no0 +#define LVIPR0 PR00_bit.no1 +#define PPR00 PR00_bit.no2 +#define PPR01 PR00_bit.no3 +#define PPR02 PR00_bit.no4 +#define PPR03 PR00_bit.no5 +#define PPR04 PR00_bit.no6 +#define PPR05 PR00_bit.no7 +#define DMAPR00 PR00H_bit.no3 +#define DMAPR01 PR00H_bit.no4 +#define CSIPR000 PR00H_bit.no5 +#define IICPR000 PR00H_bit.no5 +#define STPR00 PR00H_bit.no5 +#define TMPR000 PR00H_bit.no6 +#define CSIPR001 PR00H_bit.no7 +#define IICPR001 PR00H_bit.no7 +#define SRPR00 PR00H_bit.no7 +#define SREPR00 PR01_bit.no0 +#define TMPR001H PR01_bit.no0 +#define TMPR003H PR01_bit.no3 +#define IICAPR00 PR01_bit.no4 +#define TMPR001 PR01_bit.no5 +#define TMPR002 PR01_bit.no6 +#define TMPR003 PR01_bit.no7 +#define ADPR0 PR01H_bit.no0 +#define RTCPR0 PR01H_bit.no1 +#define ITPR0 PR01H_bit.no2 +#define KRPR0 PR01H_bit.no3 +#define USBPR0 PR01H_bit.no4 +#define RSUPR0 PR01H_bit.no5 +#define WDTIPR1 PR10_bit.no0 +#define LVIPR1 PR10_bit.no1 +#define PPR10 PR10_bit.no2 +#define PPR11 PR10_bit.no3 +#define PPR12 PR10_bit.no4 +#define PPR13 PR10_bit.no5 +#define PPR14 PR10_bit.no6 +#define PPR15 PR10_bit.no7 +#define DMAPR10 PR10H_bit.no3 +#define DMAPR11 PR10H_bit.no4 +#define CSIPR100 PR10H_bit.no5 +#define IICPR100 PR10H_bit.no5 +#define STPR10 PR10H_bit.no5 +#define TMPR100 PR10H_bit.no6 +#define CSIPR101 PR10H_bit.no7 +#define IICPR101 PR10H_bit.no7 +#define SRPR10 PR10H_bit.no7 +#define SREPR10 PR11_bit.no0 +#define TMPR101H PR11_bit.no0 +#define TMPR103H PR11_bit.no3 +#define IICAPR10 PR11_bit.no4 +#define TMPR101 PR11_bit.no5 +#define TMPR102 PR11_bit.no6 +#define TMPR103 PR11_bit.no7 +#define ADPR1 PR11H_bit.no0 +#define RTCPR1 PR11H_bit.no1 +#define ITPR1 PR11H_bit.no2 +#define KRPR1 PR11H_bit.no3 +#define USBPR1 PR11H_bit.no4 +#define RSUPR1 PR11H_bit.no5 +#define MAA PMC_bit.no0 + +/* + Interrupt vector addresses + */ +#define RST_vect (0x0) +#define INTDBG_vect (0x2) +#define INTSRO_vect (0x4) +#define INTWDTI_vect (0x4) +#define INTLVI_vect (0x6) +#define INTP0_vect (0x8) +#define INTP1_vect (0xA) +#define INTP2_vect (0xC) +#define INTP3_vect (0xE) +#define INTP4_vect (0x10) +#define INTP5_vect (0x12) +#define INTDMA0_vect (0x1A) +#define INTDMA1_vect (0x1C) +#define INTCSI00_vect (0x1E) +#define INTIIC00_vect (0x1E) +#define INTST0_vect (0x1E) +#define INTTM00_vect (0x20) +#define INTCSI01_vect (0x22) +#define INTIIC01_vect (0x22) +#define INTSR0_vect (0x22) +#define INTSRE0_vect (0x24) +#define INTTM01H_vect (0x24) +#define INTTM03H_vect (0x2A) +#define INTIICA0_vect (0x2C) +#define INTTM01_vect (0x2E) +#define INTTM02_vect (0x30) +#define INTTM03_vect (0x32) +#define INTAD_vect (0x34) +#define INTRTC_vect (0x36) +#define INTIT_vect (0x38) +#define INTKR_vect (0x3A) +#define INTUSB_vect (0x3C) +#define INTRSUM_vect (0x3E) +#define INTP6_vect (0x4A) +#define INTP8_vect (0x4E) +#define INTP9_vect (0x50) +#define INTMD_vect (0x5E) +#define INTFL_vect (0x62) +#define BRK_I_vect (0x7E) +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1C_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1C_ext.h new file mode 100644 index 000000000..e881e4b6a --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78G1C_ext.h @@ -0,0 +1,530 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78G1C */ +/* FILE : iodefine_ext.h */ +/* DESCRIPTION : Definition of Extended SFRs */ +/* CPU SERIES : RL78 - G1C */ +/* CPU TYPE : R5F10JGC */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F10JGC.DVF */ +/* Copyright(C) 2012 Renesas */ +/* File Version V1.00 */ +/* Tool Version 1.9.7121 */ +/* Date Generated 13/11/2012 */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_EXT_H +#define IODEFINE_EXT_H + +/* + IO Registers + */ +union un_adm2 { + unsigned char adm2; + __BITS8 BIT; +}; +union un_pms { + unsigned char pms; + __BITS8 BIT; +}; +union un_pu0 { + unsigned char pu0; + __BITS8 BIT; +}; +union un_pu1 { + unsigned char pu1; + __BITS8 BIT; +}; +union un_pu3 { + unsigned char pu3; + __BITS8 BIT; +}; +union un_pu4 { + unsigned char pu4; + __BITS8 BIT; +}; +union un_pu5 { + unsigned char pu5; + __BITS8 BIT; +}; +union un_pu7 { + unsigned char pu7; + __BITS8 BIT; +}; +union un_pu12 { + unsigned char pu12; + __BITS8 BIT; +}; +union un_pu14 { + unsigned char pu14; + __BITS8 BIT; +}; +union un_pim0 { + unsigned char pim0; + __BITS8 BIT; +}; +union un_pim3 { + unsigned char pim3; + __BITS8 BIT; +}; +union un_pim5 { + unsigned char pim5; + __BITS8 BIT; +}; +union un_pom0 { + unsigned char pom0; + __BITS8 BIT; +}; +union un_pom3 { + unsigned char pom3; + __BITS8 BIT; +}; +union un_pom5 { + unsigned char pom5; + __BITS8 BIT; +}; +union un_pom7 { + unsigned char pom7; + __BITS8 BIT; +}; +union un_pmc12 { + unsigned char pmc12; + __BITS8 BIT; +}; +union un_nfen0 { + unsigned char nfen0; + __BITS8 BIT; +}; +union un_nfen1 { + unsigned char nfen1; + __BITS8 BIT; +}; +union un_isc { + unsigned char isc; + __BITS8 BIT; +}; +union un_dflctl { + unsigned char dflctl; + __BITS8 BIT; +}; +union un_bectl { + unsigned char bectl; + __BITS8 BIT; +}; +union un_fsse { + unsigned char fsse; + __BITS8 BIT; +}; +union un_pfs { + unsigned char pfs; + __BITS8 BIT; +}; +union un_mduc { + unsigned char mduc; + __BITS8 BIT; +}; +union un_per0 { + unsigned char per0; + __BITS8 BIT; +}; +union un_rmc { + unsigned char rmc; + __BITS8 BIT; +}; +union un_rpectl { + unsigned char rpectl; + __BITS8 BIT; +}; +union un_se0l { + unsigned char se0l; + __BITS8 BIT; +}; +union un_ss0l { + unsigned char ss0l; + __BITS8 BIT; +}; +union un_st0l { + unsigned char st0l; + __BITS8 BIT; +}; +union un_soe0l { + unsigned char soe0l; + __BITS8 BIT; +}; +union un_te0l { + unsigned char te0l; + __BITS8 BIT; +}; +union un_ts0l { + unsigned char ts0l; + __BITS8 BIT; +}; +union un_tt0l { + unsigned char tt0l; + __BITS8 BIT; +}; +union un_toe0l { + unsigned char toe0l; + __BITS8 BIT; +}; +union un_iicctl00 { + unsigned char iicctl00; + __BITS8 BIT; +}; +union un_iicctl01 { + unsigned char iicctl01; + __BITS8 BIT; +}; +union un_dscctl { + unsigned char dscctl; + __BITS8 BIT; +}; +union un_mckc { + unsigned char mckc; + __BITS8 BIT; +}; +union un_crc0ctl { + unsigned char crc0ctl; + __BITS8 BIT; +}; + +#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 +#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT +#define ADUL (*(volatile unsigned char *)0xF0011) +#define ADLL (*(volatile unsigned char *)0xF0012) +#define ADTES (*(volatile unsigned char *)0xF0013) +#define PMS (*(volatile union un_pms *)0xF0018).pms +#define PMS_bit (*(volatile union un_pms *)0xF0018).BIT +#define PIOR (*(volatile unsigned char *)0xF001A) +#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 +#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT +#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 +#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT +#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 +#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT +#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 +#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT +#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 +#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT +#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 +#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT +#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 +#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT +#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 +#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT +#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 +#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT +#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 +#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT +#define PIM5 (*(volatile union un_pim5 *)0xF0045).pim5 +#define PIM5_bit (*(volatile union un_pim5 *)0xF0045).BIT +#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 +#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT +#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 +#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT +#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 +#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT +#define POM7 (*(volatile union un_pom7 *)0xF0057).pom7 +#define POM7_bit (*(volatile union un_pom7 *)0xF0057).BIT +#define PMC12 (*(volatile union un_pmc12 *)0xF006C).pmc12 +#define PMC12_bit (*(volatile union un_pmc12 *)0xF006C).BIT +#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 +#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT +#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 +#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT +#define ISC (*(volatile union un_isc *)0xF0073).isc +#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT +#define TIS0 (*(volatile unsigned char *)0xF0074) +#define ADPC (*(volatile unsigned char *)0xF0076) +#define IAWCTL (*(volatile unsigned char *)0xF0077) +#define PRDSEL (*(volatile unsigned short *)0xF007E) +#define TOOLEN (*(volatile unsigned char *)0xF0080) +#define BPAL0 (*(volatile unsigned char *)0xF0081) +#define BPAH0 (*(volatile unsigned char *)0xF0082) +#define BPAS0 (*(volatile unsigned char *)0xF0083) +#define BACDVL0 (*(volatile unsigned char *)0xF0084) +#define BACDVH0 (*(volatile unsigned char *)0xF0085) +#define BACDML0 (*(volatile unsigned char *)0xF0086) +#define BACDMH0 (*(volatile unsigned char *)0xF0087) +#define MONMOD (*(volatile unsigned char *)0xF0088) +#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl +#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT +#define HIOTRM (*(volatile unsigned char *)0xF00A0) +#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl +#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT +#define HOCODIV (*(volatile unsigned char *)0xF00A8) +#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) +#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) +#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) +#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) +#define FLSEC (*(volatile unsigned short *)0xF00B0) +#define FLFSWS (*(volatile unsigned short *)0xF00B2) +#define FLFSWE (*(volatile unsigned short *)0xF00B4) +#define FSSET (*(volatile unsigned char *)0xF00B6) +#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse +#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT +#define FLFADL (*(volatile unsigned short *)0xF00B8) +#define FLFADH (*(volatile unsigned char *)0xF00BA) +#define PFCMD (*(volatile unsigned char *)0xF00C0) +#define PFS (*(volatile union un_pfs *)0xF00C1).pfs +#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT +#define FLRL (*(volatile unsigned short *)0xF00C2) +#define FLRH (*(volatile unsigned short *)0xF00C4) +#define FLWE (*(volatile unsigned char *)0xF00C6) +#define FLRE (*(volatile unsigned char *)0xF00C7) +#define FLTMS (*(volatile unsigned short *)0xF00C8) +#define DFLMC (*(volatile unsigned short *)0xF00CA) +#define FLMCL (*(volatile unsigned short *)0xF00CC) +#define FLMCH (*(volatile unsigned char *)0xF00CE) +#define FSCTL (*(volatile unsigned char *)0xF00CF) +#define ICEADR (*(volatile unsigned short *)0xF00D0) +#define ICEDAT (*(volatile unsigned short *)0xF00D2) +#define MDCL (*(volatile unsigned short *)0xF00E0) +#define MDCH (*(volatile unsigned short *)0xF00E2) +#define MDUC (*(volatile union un_mduc *)0xF00E8).mduc +#define MDUC_bit (*(volatile union un_mduc *)0xF00E8).BIT +#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 +#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT +#define OSMC (*(volatile unsigned char *)0xF00F3) +#define RMC (*(volatile union un_rmc *)0xF00F4).rmc +#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT +#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl +#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT +#define BCDADJ (*(volatile unsigned char *)0xF00FE) +#define VECTCTRL (*(volatile unsigned char *)0xF00FF) +#define SSR00 (*(volatile unsigned short *)0xF0100) +#define SSR00L (*(volatile unsigned char *)0xF0100) +#define SSR01 (*(volatile unsigned short *)0xF0102) +#define SSR01L (*(volatile unsigned char *)0xF0102) +#define SIR00 (*(volatile unsigned short *)0xF0108) +#define SIR00L (*(volatile unsigned char *)0xF0108) +#define SIR01 (*(volatile unsigned short *)0xF010A) +#define SIR01L (*(volatile unsigned char *)0xF010A) +#define SMR00 (*(volatile unsigned short *)0xF0110) +#define SMR01 (*(volatile unsigned short *)0xF0112) +#define SCR00 (*(volatile unsigned short *)0xF0118) +#define SCR01 (*(volatile unsigned short *)0xF011A) +#define SE0 (*(volatile unsigned short *)0xF0120) +#define SE0L (*(volatile union un_se0l *)0xF0120).se0l +#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT +#define SS0 (*(volatile unsigned short *)0xF0122) +#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l +#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT +#define ST0 (*(volatile unsigned short *)0xF0124) +#define ST0L (*(volatile union un_st0l *)0xF0124).st0l +#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT +#define SPS0 (*(volatile unsigned short *)0xF0126) +#define SPS0L (*(volatile unsigned char *)0xF0126) +#define SO0 (*(volatile unsigned short *)0xF0128) +#define SOE0 (*(volatile unsigned short *)0xF012A) +#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l +#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT +#define EDR00 (*(volatile unsigned short *)0xF012C) +#define EDR00L (*(volatile unsigned char *)0xF012C) +#define EDR01 (*(volatile unsigned short *)0xF012E) +#define EDR01L (*(volatile unsigned char *)0xF012E) +#define SOL0 (*(volatile unsigned short *)0xF0134) +#define SOL0L (*(volatile unsigned char *)0xF0134) +#define SSC0 (*(volatile unsigned short *)0xF0138) +#define SSC0L (*(volatile unsigned char *)0xF0138) +#define TCR00 (*(volatile unsigned short *)0xF0180) +#define TCR01 (*(volatile unsigned short *)0xF0182) +#define TCR02 (*(volatile unsigned short *)0xF0184) +#define TCR03 (*(volatile unsigned short *)0xF0186) +#define TMR00 (*(volatile unsigned short *)0xF0190) +#define TMR01 (*(volatile unsigned short *)0xF0192) +#define TMR02 (*(volatile unsigned short *)0xF0194) +#define TMR03 (*(volatile unsigned short *)0xF0196) +#define TSR00 (*(volatile unsigned short *)0xF01A0) +#define TSR00L (*(volatile unsigned char *)0xF01A0) +#define TSR01 (*(volatile unsigned short *)0xF01A2) +#define TSR01L (*(volatile unsigned char *)0xF01A2) +#define TSR02 (*(volatile unsigned short *)0xF01A4) +#define TSR02L (*(volatile unsigned char *)0xF01A4) +#define TSR03 (*(volatile unsigned short *)0xF01A6) +#define TSR03L (*(volatile unsigned char *)0xF01A6) +#define TE0 (*(volatile unsigned short *)0xF01B0) +#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l +#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT +#define TS0 (*(volatile unsigned short *)0xF01B2) +#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l +#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT +#define TT0 (*(volatile unsigned short *)0xF01B4) +#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l +#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT +#define TPS0 (*(volatile unsigned short *)0xF01B6) +#define TO0 (*(volatile unsigned short *)0xF01B8) +#define TO0L (*(volatile unsigned char *)0xF01B8) +#define TOE0 (*(volatile unsigned short *)0xF01BA) +#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l +#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT +#define TOL0 (*(volatile unsigned short *)0xF01BC) +#define TOL0L (*(volatile unsigned char *)0xF01BC) +#define TOM0 (*(volatile unsigned short *)0xF01BE) +#define TOM0L (*(volatile unsigned char *)0xF01BE) +#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 +#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT +#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 +#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT +#define IICWL0 (*(volatile unsigned char *)0xF0232) +#define IICWH0 (*(volatile unsigned char *)0xF0233) +#define SVA0 (*(volatile unsigned char *)0xF0234) +#define IICSE0 (*(volatile unsigned char *)0xF0235) +#define DSCCTL (*(volatile union un_dscctl *)0xF02E5).dscctl +#define DSCCTL_bit (*(volatile union un_dscctl *)0xF02E5).BIT +#define MCKC (*(volatile union un_mckc *)0xF02E6).mckc +#define MCKC_bit (*(volatile union un_mckc *)0xF02E6).BIT +#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl +#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT +#define PGCRCL (*(volatile unsigned short *)0xF02F2) +#define CRCD (*(volatile unsigned short *)0xF02FA) +#define SYSCFG (*(volatile unsigned short *)0xF0400) +#define SYSCFG1 (*(volatile unsigned short *)0xF0402) +#define SYSSTS0 (*(volatile unsigned short *)0xF0404) +#define SYSSTS1 (*(volatile unsigned short *)0xF0406) +#define DVSTCTR0 (*(volatile unsigned short *)0xF0408) +#define DVSTCTR1 (*(volatile unsigned short *)0xF040A) +#define DMA0PCFG (*(volatile unsigned short *)0xF0410) +#define DMA1PCFG (*(volatile unsigned short *)0xF0412) +#define CFIFOM (*(volatile unsigned short *)0xF0414) +#define CFIFOML (*(volatile unsigned char *)0xF0414) +#define D0FIFOM (*(volatile unsigned short *)0xF0418) +#define D0FIFOML (*(volatile unsigned char *)0xF0418) +#define D1FIFOM (*(volatile unsigned short *)0xF041C) +#define D1FIFOML (*(volatile unsigned char *)0xF041C) +#define CFIFOSEL (*(volatile unsigned short *)0xF0420) +#define CFIFOCTR (*(volatile unsigned short *)0xF0422) +#define D0FIFOSEL (*(volatile unsigned short *)0xF0428) +#define D0FIFOCTR (*(volatile unsigned short *)0xF042A) +#define D1FIFOSEL (*(volatile unsigned short *)0xF042C) +#define D1FIFOCTR (*(volatile unsigned short *)0xF042E) +#define INTENB0 (*(volatile unsigned short *)0xF0430) +#define INTENB1 (*(volatile unsigned short *)0xF0432) +#define INTENB2 (*(volatile unsigned short *)0xF0434) +#define BRDYENB (*(volatile unsigned short *)0xF0436) +#define NRDYENB (*(volatile unsigned short *)0xF0438) +#define BEMPENB (*(volatile unsigned short *)0xF043A) +#define SOFCFG (*(volatile unsigned short *)0xF043C) +#define INTSTS0 (*(volatile unsigned short *)0xF0440) +#define INTSTS1 (*(volatile unsigned short *)0xF0442) +#define INTSTS2 (*(volatile unsigned short *)0xF0444) +#define BRDYSTS (*(volatile unsigned short *)0xF0446) +#define NRDYSTS (*(volatile unsigned short *)0xF0448) +#define BEMPSTS (*(volatile unsigned short *)0xF044A) +#define FRMNUM (*(volatile unsigned short *)0xF044C) +#define USBADDR (*(volatile unsigned short *)0xF0450) +#define USBREQ (*(volatile unsigned short *)0xF0454) +#define USBVAL (*(volatile unsigned short *)0xF0456) +#define USBINDX (*(volatile unsigned short *)0xF0458) +#define USBLENG (*(volatile unsigned short *)0xF045A) +#define DCPCFG (*(volatile unsigned short *)0xF045C) +#define DCPMAXP (*(volatile unsigned short *)0xF045E) +#define DCPCTR (*(volatile unsigned short *)0xF0460) +#define PIPESEL (*(volatile unsigned short *)0xF0464) +#define PIPECFG (*(volatile unsigned short *)0xF0468) +#define PIPEMAXP (*(volatile unsigned short *)0xF046C) +#define PIPEPERI (*(volatile unsigned short *)0xF046E) +#define PIPE4CTR (*(volatile unsigned short *)0xF0476) +#define PIPE5CTR (*(volatile unsigned short *)0xF0478) +#define PIPE6CTR (*(volatile unsigned short *)0xF047A) +#define PIPE7CTR (*(volatile unsigned short *)0xF047C) +#define PIPE4TRE (*(volatile unsigned short *)0xF049C) +#define PIPE4TRN (*(volatile unsigned short *)0xF049E) +#define PIPE5TRE (*(volatile unsigned short *)0xF04A0) +#define PIPE5TRN (*(volatile unsigned short *)0xF04A2) +#define USBBCCTRL0 (*(volatile unsigned short *)0xF04B0) +#define USBBCCTRL1 (*(volatile unsigned short *)0xF04B4) +#define USBBCOPT0 (*(volatile unsigned short *)0xF04B8) +#define USBBCOPT1 (*(volatile unsigned short *)0xF04BC) +#define USBMC (*(volatile unsigned short *)0xF04CC) +#define DEVADD0 (*(volatile unsigned short *)0xF04D0) +#define DEVADD1 (*(volatile unsigned short *)0xF04D2) +#define DEVADD2 (*(volatile unsigned short *)0xF04D4) +#define DEVADD3 (*(volatile unsigned short *)0xF04D6) +#define DEVADD4 (*(volatile unsigned short *)0xF04D8) +#define DEVADD5 (*(volatile unsigned short *)0xF04DA) + +/* + Sfr bits + */ +#define ADTYP ADM2_bit.no0 +#define AWC ADM2_bit.no2 +#define ADRCK ADM2_bit.no3 +#define DFLEN DFLCTL_bit.no0 +#define BRSAM BECTL_bit.no0 +#define ESQST FSSE_bit.no7 +#define DIVST MDUC_bit.no0 +#define MACSF MDUC_bit.no1 +#define MACOF MDUC_bit.no2 +#define MDSM MDUC_bit.no3 +#define MACMODE MDUC_bit.no6 +#define DIVMODE MDUC_bit.no7 +#define TAU0EN PER0_bit.no0 +#define SAU0EN PER0_bit.no2 +#define IICA0EN PER0_bit.no4 +#define ADCEN PER0_bit.no5 +#define RTCEN PER0_bit.no7 +#define PAENB RMC_bit.no0 +#define WDVOL RMC_bit.no7 +#define RPEF RPECTL_bit.no0 +#define RPERDIS RPECTL_bit.no7 +#define SPT0 IICCTL00_bit.no0 +#define STT0 IICCTL00_bit.no1 +#define ACKE0 IICCTL00_bit.no2 +#define WTIM0 IICCTL00_bit.no3 +#define SPIE0 IICCTL00_bit.no4 +#define WREL0 IICCTL00_bit.no5 +#define LREL0 IICCTL00_bit.no6 +#define IICE0 IICCTL00_bit.no7 +#define PRS0 IICCTL01_bit.no0 +#define DFC0 IICCTL01_bit.no2 +#define SMC0 IICCTL01_bit.no3 +#define DAD0 IICCTL01_bit.no4 +#define CLD0 IICCTL01_bit.no5 +#define WUP0 IICCTL01_bit.no7 +#define CRC0EN CRC0CTL_bit.no7 + +/* + Interrupt vector addresses + */ +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L13.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L13.h new file mode 100644 index 000000000..60db13d1f --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L13.h @@ -0,0 +1,1057 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78L13 */ +/* FILE : iodefine.h */ +/* DESCRIPTION : Definition of I/O Registers */ +/* CPU SERIES : RL78 - L13 */ +/* CPU TYPE : R5F10WMG */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F10WMG.DVF */ +/* Copyright(C) 2012 Renesas */ +/* Version E1.00d */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_H +#define IODEFINE_H + +/* + IO Registers + */ +union un_p0 { + unsigned char p0; + __BITS8 BIT; +}; +union un_p1 { + unsigned char p1; + __BITS8 BIT; +}; +union un_p2 { + unsigned char p2; + __BITS8 BIT; +}; +union un_p3 { + unsigned char p3; + __BITS8 BIT; +}; +union un_p4 { + unsigned char p4; + __BITS8 BIT; +}; +union un_p5 { + unsigned char p5; + __BITS8 BIT; +}; +union un_p6 { + unsigned char p6; + __BITS8 BIT; +}; +union un_p7 { + unsigned char p7; + __BITS8 BIT; +}; +union un_p12 { + unsigned char p12; + __BITS8 BIT; +}; +union un_p13 { + unsigned char p13; + __BITS8 BIT; +}; +union un_pm0 { + unsigned char pm0; + __BITS8 BIT; +}; +union un_pm1 { + unsigned char pm1; + __BITS8 BIT; +}; +union un_pm2 { + unsigned char pm2; + __BITS8 BIT; +}; +union un_pm3 { + unsigned char pm3; + __BITS8 BIT; +}; +union un_pm4 { + unsigned char pm4; + __BITS8 BIT; +}; +union un_pm5 { + unsigned char pm5; + __BITS8 BIT; +}; +union un_pm6 { + unsigned char pm6; + __BITS8 BIT; +}; +union un_pm7 { + unsigned char pm7; + __BITS8 BIT; +}; +union un_pm12 { + unsigned char pm12; + __BITS8 BIT; +}; +union un_pm13 { + unsigned char pm13; + __BITS8 BIT; +}; +union un_adm0 { + unsigned char adm0; + __BITS8 BIT; +}; +union un_ads { + unsigned char ads; + __BITS8 BIT; +}; +union un_adm1 { + unsigned char adm1; + __BITS8 BIT; +}; +union un_krctl { + unsigned char krctl; + __BITS8 BIT; +}; +union un_krm0 { + unsigned char krm0; + __BITS8 BIT; +}; +union un_egp0 { + unsigned char egp0; + __BITS8 BIT; +}; +union un_egn0 { + unsigned char egn0; + __BITS8 BIT; +}; +union un_lcdm1 { + unsigned char lcdm1; + __BITS8 BIT; +}; +union un_mlcd { + unsigned char mlcd; + __BITS8 BIT; +}; +union un_iics0 { + unsigned char iics0; + __BITS8 BIT; +}; +union un_iicf0 { + unsigned char iicf0; + __BITS8 BIT; +}; +union un_flars { + unsigned char flars; + __BITS8 BIT; +}; +union un_fssq { + unsigned char fssq; + __BITS8 BIT; +}; +union un_flrst { + unsigned char flrst; + __BITS8 BIT; +}; +union un_fsastl { + unsigned char fsastl; + __BITS8 BIT; +}; +union un_fsasth { + unsigned char fsasth; + __BITS8 BIT; +}; +union un_rtcc0 { + unsigned char rtcc0; + __BITS8 BIT; +}; +union un_rtcc1 { + unsigned char rtcc1; + __BITS8 BIT; +}; +union un_csc { + unsigned char csc; + __BITS8 BIT; +}; +union un_ostc { + unsigned char ostc; + __BITS8 BIT; +}; +union un_ckc { + unsigned char ckc; + __BITS8 BIT; +}; +union un_cks0 { + unsigned char cks0; + __BITS8 BIT; +}; +union un_cks1 { + unsigned char cks1; + __BITS8 BIT; +}; +union un_lvim { + unsigned char lvim; + __BITS8 BIT; +}; +union un_lvis { + unsigned char lvis; + __BITS8 BIT; +}; +union un_monsta0 { + unsigned char monsta0; + __BITS8 BIT; +}; +union un_asim { + unsigned char asim; + __BITS8 BIT; +}; +union un_dmc0 { + unsigned char dmc0; + __BITS8 BIT; +}; +union un_dmc1 { + unsigned char dmc1; + __BITS8 BIT; +}; +union un_drc0 { + unsigned char drc0; + __BITS8 BIT; +}; +union un_drc1 { + unsigned char drc1; + __BITS8 BIT; +}; +union un_if2 { + unsigned short if2; + __BITS16 BIT; +}; +union un_if2l { + unsigned char if2l; + __BITS8 BIT; +}; +union un_if2h { + unsigned char if2h; + __BITS8 BIT; +}; +union un_if3 { + unsigned short if3; + __BITS16 BIT; +}; +union un_if3l { + unsigned char if3l; + __BITS8 BIT; +}; +union un_mk2 { + unsigned short mk2; + __BITS16 BIT; +}; +union un_mk2l { + unsigned char mk2l; + __BITS8 BIT; +}; +union un_mk2h { + unsigned char mk2h; + __BITS8 BIT; +}; +union un_mk3 { + unsigned short mk3; + __BITS16 BIT; +}; +union un_mk3l { + unsigned char mk3l; + __BITS8 BIT; +}; +union un_pr02 { + unsigned short pr02; + __BITS16 BIT; +}; +union un_pr02l { + unsigned char pr02l; + __BITS8 BIT; +}; +union un_pr02h { + unsigned char pr02h; + __BITS8 BIT; +}; +union un_pr03 { + unsigned short pr03; + __BITS16 BIT; +}; +union un_pr03l { + unsigned char pr03l; + __BITS8 BIT; +}; +union un_pr12 { + unsigned short pr12; + __BITS16 BIT; +}; +union un_pr12l { + unsigned char pr12l; + __BITS8 BIT; +}; +union un_pr12h { + unsigned char pr12h; + __BITS8 BIT; +}; +union un_pr13 { + unsigned short pr13; + __BITS16 BIT; +}; +union un_pr13l { + unsigned char pr13l; + __BITS8 BIT; +}; +union un_if0 { + unsigned short if0; + __BITS16 BIT; +}; +union un_if0l { + unsigned char if0l; + __BITS8 BIT; +}; +union un_if0h { + unsigned char if0h; + __BITS8 BIT; +}; +union un_if1 { + unsigned short if1; + __BITS16 BIT; +}; +union un_if1l { + unsigned char if1l; + __BITS8 BIT; +}; +union un_if1h { + unsigned char if1h; + __BITS8 BIT; +}; +union un_mk0 { + unsigned short mk0; + __BITS16 BIT; +}; +union un_mk0l { + unsigned char mk0l; + __BITS8 BIT; +}; +union un_mk0h { + unsigned char mk0h; + __BITS8 BIT; +}; +union un_mk1 { + unsigned short mk1; + __BITS16 BIT; +}; +union un_mk1l { + unsigned char mk1l; + __BITS8 BIT; +}; +union un_mk1h { + unsigned char mk1h; + __BITS8 BIT; +}; +union un_pr00 { + unsigned short pr00; + __BITS16 BIT; +}; +union un_pr00l { + unsigned char pr00l; + __BITS8 BIT; +}; +union un_pr00h { + unsigned char pr00h; + __BITS8 BIT; +}; +union un_pr01 { + unsigned short pr01; + __BITS16 BIT; +}; +union un_pr01l { + unsigned char pr01l; + __BITS8 BIT; +}; +union un_pr01h { + unsigned char pr01h; + __BITS8 BIT; +}; +union un_pr10 { + unsigned short pr10; + __BITS16 BIT; +}; +union un_pr10l { + unsigned char pr10l; + __BITS8 BIT; +}; +union un_pr10h { + unsigned char pr10h; + __BITS8 BIT; +}; +union un_pr11 { + unsigned short pr11; + __BITS16 BIT; +}; +union un_pr11l { + unsigned char pr11l; + __BITS8 BIT; +}; +union un_pr11h { + unsigned char pr11h; + __BITS8 BIT; +}; +union un_pmc { + unsigned char pmc; + __BITS8 BIT; +}; + +#define P0 (*(volatile union un_p0 *)0xFFF00).p0 +#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT +#define P1 (*(volatile union un_p1 *)0xFFF01).p1 +#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT +#define P2 (*(volatile union un_p2 *)0xFFF02).p2 +#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT +#define P3 (*(volatile union un_p3 *)0xFFF03).p3 +#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT +#define P4 (*(volatile union un_p4 *)0xFFF04).p4 +#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT +#define P5 (*(volatile union un_p5 *)0xFFF05).p5 +#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT +#define P6 (*(volatile union un_p6 *)0xFFF06).p6 +#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT +#define P7 (*(volatile union un_p7 *)0xFFF07).p7 +#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT +#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 +#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT +#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 +#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT +#define SDR00 (*(volatile unsigned short *)0xFFF10) +#define SIO00 (*(volatile unsigned char *)0xFFF10) +#define TXD0 (*(volatile unsigned char *)0xFFF10) +#define SDR01 (*(volatile unsigned short *)0xFFF12) +#define RXD0 (*(volatile unsigned char *)0xFFF12) +#define SDR12 (*(volatile unsigned short *)0xFFF14) +#define TXD3 (*(volatile unsigned char *)0xFFF14) +#define SDR13 (*(volatile unsigned short *)0xFFF16) +#define RXD3 (*(volatile unsigned char *)0xFFF16) +#define TDR00 (*(volatile unsigned short *)0xFFF18) +#define TDR01 (*(volatile unsigned short *)0xFFF1A) +#define TDR01L (*(volatile unsigned char *)0xFFF1A) +#define TDR01H (*(volatile unsigned char *)0xFFF1B) +#define ADCR (*(volatile unsigned short *)0xFFF1E) +#define ADCRH (*(volatile unsigned char *)0xFFF1F) +#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 +#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT +#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 +#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT +#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 +#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT +#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 +#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT +#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 +#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT +#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 +#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT +#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 +#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT +#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 +#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT +#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 +#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT +#define PM13 (*(volatile union un_pm13 *)0xFFF2D).pm13 +#define PM13_bit (*(volatile union un_pm13 *)0xFFF2D).BIT +#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 +#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT +#define ADS (*(volatile union un_ads *)0xFFF31).ads +#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT +#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 +#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT +#define KRCTL (*(volatile union un_krctl *)0xFFF34).krctl +#define KRCTL_bit (*(volatile union un_krctl *)0xFFF34).BIT +#define KRF (*(volatile unsigned char *)0xFFF35) +#define KRM0 (*(volatile union un_krm0 *)0xFFF37).krm0 +#define KRM0_bit (*(volatile union un_krm0 *)0xFFF37).BIT +#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 +#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT +#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 +#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT +#define LCDM0 (*(volatile unsigned char *)0xFFF40) +#define LCDM1 (*(volatile union un_lcdm1 *)0xFFF41).lcdm1 +#define LCDM1_bit (*(volatile union un_lcdm1 *)0xFFF41).BIT +#define LCDC0 (*(volatile unsigned char *)0xFFF42) +#define VLCD (*(volatile unsigned char *)0xFFF43) +#define SDR02 (*(volatile unsigned short *)0xFFF44) +#define SIO10 (*(volatile unsigned char *)0xFFF44) +#define TXD1 (*(volatile unsigned char *)0xFFF44) +#define SDR03 (*(volatile unsigned short *)0xFFF46) +#define RXD1 (*(volatile unsigned char *)0xFFF46) +#define SDR10 (*(volatile unsigned short *)0xFFF48) +#define TXD2 (*(volatile unsigned char *)0xFFF48) +#define SDR11 (*(volatile unsigned short *)0xFFF4A) +#define RXD2 (*(volatile unsigned char *)0xFFF4A) +#define MLCD (*(volatile union un_mlcd *)0xFFF4C).mlcd +#define MLCD_bit (*(volatile union un_mlcd *)0xFFF4C).BIT +#define IICA0 (*(volatile unsigned char *)0xFFF50) +#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 +#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT +#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 +#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT +#define TDR02 (*(volatile unsigned short *)0xFFF64) +#define TDR03 (*(volatile unsigned short *)0xFFF66) +#define TDR03L (*(volatile unsigned char *)0xFFF66) +#define TDR03H (*(volatile unsigned char *)0xFFF67) +#define TDR04 (*(volatile unsigned short *)0xFFF68) +#define TDR05 (*(volatile unsigned short *)0xFFF6A) +#define TDR06 (*(volatile unsigned short *)0xFFF6C) +#define TDR07 (*(volatile unsigned short *)0xFFF6E) +#define FLPMC (*(volatile unsigned char *)0xFFF80) +#define FLARS (*(volatile union un_flars *)0xFFF81).flars +#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT +#define FLAPL (*(volatile unsigned short *)0xFFF82) +#define FLAPH (*(volatile unsigned char *)0xFFF84) +#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq +#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT +#define FLSEDL (*(volatile unsigned short *)0xFFF86) +#define FLSEDH (*(volatile unsigned char *)0xFFF88) +#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst +#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT +#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl +#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT +#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth +#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT +#define FLWL (*(volatile unsigned short *)0xFFF8C) +#define FLWH (*(volatile unsigned short *)0xFFF8E) +#define ITMC (*(volatile unsigned short *)0xFFF90) +#define SEC (*(volatile unsigned char *)0xFFF92) +#define MIN (*(volatile unsigned char *)0xFFF93) +#define HOUR (*(volatile unsigned char *)0xFFF94) +#define WEEK (*(volatile unsigned char *)0xFFF95) +#define DAY (*(volatile unsigned char *)0xFFF96) +#define MONTH (*(volatile unsigned char *)0xFFF97) +#define YEAR (*(volatile unsigned char *)0xFFF98) +#define ALARMWM (*(volatile unsigned char *)0xFFF9A) +#define ALARMWH (*(volatile unsigned char *)0xFFF9B) +#define ALARMWW (*(volatile unsigned char *)0xFFF9C) +#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 +#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT +#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 +#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT +#define CMC (*(volatile unsigned char *)0xFFFA0) +#define CSC (*(volatile union un_csc *)0xFFFA1).csc +#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT +#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc +#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT +#define OSTS (*(volatile unsigned char *)0xFFFA3) +#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc +#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT +#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 +#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT +#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 +#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT +#define RESF (*(volatile unsigned char *)0xFFFA8) +#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim +#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT +#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis +#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT +#define WDTE (*(volatile unsigned char *)0xFFFAB) +#define CRCIN (*(volatile unsigned char *)0xFFFAC) +#define RXB (*(volatile unsigned char *)0xFFFAD) +#define TXS (*(volatile unsigned char *)0xFFFAD) +#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 +#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT +#define ASIM (*(volatile union un_asim *)0xFFFAF).asim +#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT +#define DSA0 (*(volatile unsigned char *)0xFFFB0) +#define DSA1 (*(volatile unsigned char *)0xFFFB1) +#define DRA0 (*(volatile unsigned short *)0xFFFB2) +#define DRA0L (*(volatile unsigned char *)0xFFFB2) +#define DRA0H (*(volatile unsigned char *)0xFFFB3) +#define DRA1 (*(volatile unsigned short *)0xFFFB4) +#define DRA1L (*(volatile unsigned char *)0xFFFB4) +#define DRA1H (*(volatile unsigned char *)0xFFFB5) +#define DBC0 (*(volatile unsigned short *)0xFFFB6) +#define DBC0L (*(volatile unsigned char *)0xFFFB6) +#define DBC0H (*(volatile unsigned char *)0xFFFB7) +#define DBC1 (*(volatile unsigned short *)0xFFFB8) +#define DBC1L (*(volatile unsigned char *)0xFFFB8) +#define DBC1H (*(volatile unsigned char *)0xFFFB9) +#define DMC0 (*(volatile union un_dmc0 *)0xFFFBA).dmc0 +#define DMC0_bit (*(volatile union un_dmc0 *)0xFFFBA).BIT +#define DMC1 (*(volatile union un_dmc1 *)0xFFFBB).dmc1 +#define DMC1_bit (*(volatile union un_dmc1 *)0xFFFBB).BIT +#define DRC0 (*(volatile union un_drc0 *)0xFFFBC).drc0 +#define DRC0_bit (*(volatile union un_drc0 *)0xFFFBC).BIT +#define DRC1 (*(volatile union un_drc1 *)0xFFFBD).drc1 +#define DRC1_bit (*(volatile union un_drc1 *)0xFFFBD).BIT +#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 +#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT +#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l +#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT +#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h +#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT +#define IF3 (*(volatile union un_if3 *)0xFFFD2).if3 +#define IF3_bit (*(volatile union un_if3 *)0xFFFD2).BIT +#define IF3L (*(volatile union un_if3l *)0xFFFD2).if3l +#define IF3L_bit (*(volatile union un_if3l *)0xFFFD2).BIT +#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 +#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT +#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l +#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT +#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h +#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT +#define MK3 (*(volatile union un_mk3 *)0xFFFD6).mk3 +#define MK3_bit (*(volatile union un_mk3 *)0xFFFD6).BIT +#define MK3L (*(volatile union un_mk3l *)0xFFFD6).mk3l +#define MK3L_bit (*(volatile union un_mk3l *)0xFFFD6).BIT +#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 +#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT +#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l +#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT +#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h +#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT +#define PR03 (*(volatile union un_pr03 *)0xFFFDA).pr03 +#define PR03_bit (*(volatile union un_pr03 *)0xFFFDA).BIT +#define PR03L (*(volatile union un_pr03l *)0xFFFDA).pr03l +#define PR03L_bit (*(volatile union un_pr03l *)0xFFFDA).BIT +#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 +#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT +#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l +#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT +#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h +#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT +#define PR13 (*(volatile union un_pr13 *)0xFFFDE).pr13 +#define PR13_bit (*(volatile union un_pr13 *)0xFFFDE).BIT +#define PR13L (*(volatile union un_pr13l *)0xFFFDE).pr13l +#define PR13L_bit (*(volatile union un_pr13l *)0xFFFDE).BIT +#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 +#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT +#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l +#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT +#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h +#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT +#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 +#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT +#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l +#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT +#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h +#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT +#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 +#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT +#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l +#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT +#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h +#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT +#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 +#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT +#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l +#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT +#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h +#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT +#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 +#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT +#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l +#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT +#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h +#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT +#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 +#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT +#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l +#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT +#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h +#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT +#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 +#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT +#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l +#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT +#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h +#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT +#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 +#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT +#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l +#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT +#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h +#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT +#define MDAL (*(volatile unsigned short *)0xFFFF0) +#define MULA (*(volatile unsigned short *)0xFFFF0) +#define MDAH (*(volatile unsigned short *)0xFFFF2) +#define MULB (*(volatile unsigned short *)0xFFFF2) +#define MDBH (*(volatile unsigned short *)0xFFFF4) +#define MULOH (*(volatile unsigned short *)0xFFFF4) +#define MDBL (*(volatile unsigned short *)0xFFFF6) +#define MULOL (*(volatile unsigned short *)0xFFFF6) +#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc +#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT + +/* + Sfr bits + */ +#define ADCE ADM0_bit.no0 +#define ADCS ADM0_bit.no7 +#define LCDVLM LCDM1_bit.no0 +#define LCDSEL LCDM1_bit.no3 +#define BLON LCDM1_bit.no4 +#define VLCON LCDM1_bit.no5 +#define SCOC LCDM1_bit.no6 +#define LCDON LCDM1_bit.no7 +#define OPTCKE MLCD_bit.no4 +#define COMEXP MLCD_bit.no6 +#define MLCDEN MLCD_bit.no7 +#define SPD0 IICS0_bit.no0 +#define STD0 IICS0_bit.no1 +#define ACKD0 IICS0_bit.no2 +#define TRC0 IICS0_bit.no3 +#define COI0 IICS0_bit.no4 +#define EXC0 IICS0_bit.no5 +#define ALD0 IICS0_bit.no6 +#define MSTS0 IICS0_bit.no7 +#define IICRSV0 IICF0_bit.no0 +#define STCEN0 IICF0_bit.no1 +#define IICBSY0 IICF0_bit.no6 +#define STCF0 IICF0_bit.no7 +#define FSSTP FSSQ_bit.no6 +#define SQST FSSQ_bit.no7 +#define SQEND FSASTH_bit.no6 +#define ESQEND FSASTH_bit.no7 +#define RCLOE1 RTCC0_bit.no5 +#define RCLOSEL RTCC0_bit.no6 +#define RTCE RTCC0_bit.no7 +#define RWAIT RTCC1_bit.no0 +#define RWST RTCC1_bit.no1 +#define RIFG RTCC1_bit.no3 +#define WAFG RTCC1_bit.no4 +#define RITE RTCC1_bit.no5 +#define WALIE RTCC1_bit.no6 +#define WALE RTCC1_bit.no7 +#define HIOSTOP CSC_bit.no0 +#define XTSTOP CSC_bit.no6 +#define MSTOP CSC_bit.no7 +#define SDIV CKC_bit.no3 +#define MCM0 CKC_bit.no4 +#define MCS CKC_bit.no5 +#define CSS CKC_bit.no6 +#define CLS CKC_bit.no7 +#define PCLOE0 CKS0_bit.no7 +#define PCLOE1 CKS1_bit.no7 +#define LVIF LVIM_bit.no0 +#define LVIOMSK LVIM_bit.no1 +#define LVISEN LVIM_bit.no7 +#define LVILV LVIS_bit.no0 +#define LVIMD LVIS_bit.no7 +#define DWAIT0 DMC0_bit.no4 +#define DS0 DMC0_bit.no5 +#define DRS0 DMC0_bit.no6 +#define STG0 DMC0_bit.no7 +#define DWAIT1 DMC1_bit.no4 +#define DS1 DMC1_bit.no5 +#define DRS1 DMC1_bit.no6 +#define STG1 DMC1_bit.no7 +#define DST0 DRC0_bit.no0 +#define DEN0 DRC0_bit.no7 +#define DST1 DRC1_bit.no0 +#define DEN1 DRC1_bit.no7 +#define TKBIF2 IF2_bit.no0 +#define TMIF04 IF2_bit.no1 +#define TMIF05 IF2_bit.no2 +#define PIF6 IF2_bit.no3 +#define PIF7 IF2_bit.no4 +#define LCDIF0 IF2_bit.no5 +#define CMPIF0 IF2_bit.no6 +#define CMPIF1 IF2_bit.no7 +#define TMIF06 IF2H_bit.no0 +#define TMIF07 IF2H_bit.no1 +#define SREIF3 IF2H_bit.no4 +#define MDIF IF2H_bit.no5 +#define FLIF IF2H_bit.no7 +#define DMAIF2 IF3_bit.no0 +#define DMAIF3 IF3_bit.no1 +#define TKBMK2 MK2_bit.no0 +#define TMMK04 MK2_bit.no1 +#define TMMK05 MK2_bit.no2 +#define PMK6 MK2_bit.no3 +#define PMK7 MK2_bit.no4 +#define LCDMK0 MK2_bit.no5 +#define CMPMK0 MK2_bit.no6 +#define CMPMK1 MK2_bit.no7 +#define TMMK06 MK2H_bit.no0 +#define TMMK07 MK2H_bit.no1 +#define SREMK3 MK2H_bit.no4 +#define MDMK MK2H_bit.no5 +#define FLMK MK2H_bit.no7 +#define DMAMK2 MK3_bit.no0 +#define DMAMK3 MK3_bit.no1 +#define TKBPR02 PR02_bit.no0 +#define TMPR004 PR02_bit.no1 +#define TMPR005 PR02_bit.no2 +#define PPR06 PR02_bit.no3 +#define PPR07 PR02_bit.no4 +#define LCDPR00 PR02_bit.no5 +#define CMPPR00 PR02_bit.no6 +#define CMPPR01 PR02_bit.no7 +#define TPR006 PR02H_bit.no0 +#define TPR007 PR02H_bit.no1 +#define SREPR03 PR02H_bit.no4 +#define MDPR0 PR02H_bit.no5 +#define FLPR0 PR02H_bit.no7 +#define DMAPR02 PR03_bit.no0 +#define DMAPR03 PR03_bit.no1 +#define TKBPR12 PR12_bit.no0 +#define TMPR104 PR12_bit.no1 +#define TMPR105 PR12_bit.no2 +#define PPR16 PR12_bit.no3 +#define PPR17 PR12_bit.no4 +#define LCDPR10 PR12_bit.no5 +#define CMPPR10 PR12_bit.no6 +#define CMPPR11 PR12_bit.no7 +#define TPR106 PR12H_bit.no0 +#define TPR107 PR12H_bit.no1 +#define SREPR13 PR12H_bit.no4 +#define MDPR1 PR12H_bit.no5 +#define FLPR1 PR12H_bit.no7 +#define DMAPR12 PR13_bit.no0 +#define DMAPR13 PR13_bit.no1 +#define WDTIIF IF0_bit.no0 +#define LVIIF IF0_bit.no1 +#define PIF0 IF0_bit.no2 +#define PIF1 IF0_bit.no3 +#define PIF2 IF0_bit.no4 +#define PIF3 IF0_bit.no5 +#define PIF4 IF0_bit.no6 +#define PIF5 IF0_bit.no7 +#define STIF2 IF0H_bit.no0 +#define SRIF2 IF0H_bit.no1 +#define SREIF2 IF0H_bit.no2 +#define DMAIF0 IF0H_bit.no3 +#define DMAIF1 IF0H_bit.no4 +#define CSIIF00 IF0H_bit.no5 +#define IICIF00 IF0H_bit.no5 +#define STIF0 IF0H_bit.no5 +#define TMIF00 IF0H_bit.no6 +#define SRIF0 IF0H_bit.no7 +#define SREIF0 IF1_bit.no0 +#define TMIF01H IF1_bit.no0 +#define CSIIF10 IF1_bit.no1 +#define IICIF10 IF1_bit.no1 +#define STIF1 IF1_bit.no1 +#define SRIF1 IF1_bit.no2 +#define SREIF1 IF1_bit.no3 +#define TMIF03H IF1_bit.no3 +#define IICAIF0 IF1_bit.no4 +#define RTITIF IF1_bit.no5 +#define TMIF01 IF1_bit.no7 +#define TMIF02 IF1H_bit.no0 +#define TMIF03 IF1H_bit.no1 +#define ADIF IF1H_bit.no2 +#define RTCIF IF1H_bit.no3 +#define TMKAIF IF1H_bit.no4 +#define KRIF IF1H_bit.no5 +#define STIF3 IF1H_bit.no6 +#define SRIF3 IF1H_bit.no7 +#define WDTIMK MK0_bit.no0 +#define LVIMK MK0_bit.no1 +#define PMK0 MK0_bit.no2 +#define PMK1 MK0_bit.no3 +#define PMK2 MK0_bit.no4 +#define PMK3 MK0_bit.no5 +#define PMK4 MK0_bit.no6 +#define PMK5 MK0_bit.no7 +#define STMK2 MK0H_bit.no0 +#define SRMK2 MK0H_bit.no1 +#define SREMK2 MK0H_bit.no2 +#define DMAMK0 MK0H_bit.no3 +#define DMAMK1 MK0H_bit.no4 +#define CSIMK00 MK0H_bit.no5 +#define IICMK00 MK0H_bit.no5 +#define STMK0 MK0H_bit.no5 +#define TMMK00 MK0H_bit.no6 +#define SRMK0 MK0H_bit.no7 +#define SREMK0 MK1_bit.no0 +#define TMMK01H MK1_bit.no0 +#define CSIMK10 MK1_bit.no1 +#define IICMK10 MK1_bit.no1 +#define STMK1 MK1_bit.no1 +#define SRMK1 MK1_bit.no2 +#define SREMK1 MK1_bit.no3 +#define TMMK03H MK1_bit.no3 +#define IICAMK0 MK1_bit.no4 +#define RTITMK MK1_bit.no5 +#define TMMK01 MK1_bit.no7 +#define TMMK02 MK1H_bit.no0 +#define TMMK03 MK1H_bit.no1 +#define ADMK MK1H_bit.no2 +#define RTCMK MK1H_bit.no3 +#define TMKAMK MK1H_bit.no4 +#define KRMK MK1H_bit.no5 +#define STMK3 MK1H_bit.no6 +#define SRMK3 MK1H_bit.no7 +#define WDTIPR0 PR00_bit.no0 +#define LVIPR0 PR00_bit.no1 +#define PPR00 PR00_bit.no2 +#define PPR01 PR00_bit.no3 +#define PPR02 PR00_bit.no4 +#define PPR03 PR00_bit.no5 +#define PPR04 PR00_bit.no6 +#define PPR05 PR00_bit.no7 +#define STPR02 PR00H_bit.no0 +#define SRPR02 PR00H_bit.no1 +#define SREPR02 PR00H_bit.no2 +#define DMAPR00 PR00H_bit.no3 +#define DMAPR01 PR00H_bit.no4 +#define CSIPR000 PR00H_bit.no5 +#define IICPR000 PR00H_bit.no5 +#define STPR00 PR00H_bit.no5 +#define TMPR000 PR00H_bit.no6 +#define SRPR00 PR00H_bit.no7 +#define SREPR00 PR01_bit.no0 +#define TMPR001H PR01_bit.no0 +#define CSIPR010 PR01_bit.no1 +#define IICPR010 PR01_bit.no1 +#define STPR01 PR01_bit.no1 +#define SRPR01 PR01_bit.no2 +#define SREPR01 PR01_bit.no3 +#define TMPR003H PR01_bit.no3 +#define IICAPR00 PR01_bit.no4 +#define RTITPR0 PR01_bit.no5 +#define TMPR001 PR01_bit.no7 +#define TMPR002 PR01H_bit.no0 +#define TMPR003 PR01H_bit.no1 +#define ADPR0 PR01H_bit.no2 +#define RTCPR0 PR01H_bit.no3 +#define TMKAPR0 PR01H_bit.no4 +#define KRPR0 PR01H_bit.no5 +#define STPR03 PR01H_bit.no6 +#define SRPR03 PR01H_bit.no7 +#define WDTIPR1 PR10_bit.no0 +#define LVIPR1 PR10_bit.no1 +#define PPR10 PR10_bit.no2 +#define PPR11 PR10_bit.no3 +#define PPR12 PR10_bit.no4 +#define PPR13 PR10_bit.no5 +#define PPR14 PR10_bit.no6 +#define PPR15 PR10_bit.no7 +#define STPR12 PR10H_bit.no0 +#define SRPR12 PR10H_bit.no1 +#define SREPR12 PR10H_bit.no2 +#define DMAPR10 PR10H_bit.no3 +#define DMAPR11 PR10H_bit.no4 +#define CSIPR100 PR10H_bit.no5 +#define IICPR100 PR10H_bit.no5 +#define STPR10 PR10H_bit.no5 +#define TMPR100 PR10H_bit.no6 +#define SRPR10 PR10H_bit.no7 +#define SREPR10 PR11_bit.no0 +#define TMPR101H PR11_bit.no0 +#define CSIPR110 PR11_bit.no1 +#define IICPR110 PR11_bit.no1 +#define STPR11 PR11_bit.no1 +#define SRPR11 PR11_bit.no2 +#define SREPR11 PR11_bit.no3 +#define TMPR103H PR11_bit.no3 +#define IICAPR10 PR11_bit.no4 +#define RTITPR1 PR11_bit.no5 +#define TMPR101 PR11_bit.no7 +#define TMPR102 PR11H_bit.no0 +#define TMPR103 PR11H_bit.no1 +#define ADPR1 PR11H_bit.no2 +#define RTCPR1 PR11H_bit.no3 +#define TMKAPR1 PR11H_bit.no4 +#define KRPR1 PR11H_bit.no5 +#define STPR13 PR11H_bit.no6 +#define SRPR13 PR11H_bit.no7 +#define MAA PMC_bit.no0 + +/* + Interrupt vector addresses + */ +#define RST_vect (0x0) +#define INTDBG_vect (0x2) +#define INTWDTI_vect (0x4) +#define INTLVI_vect (0x6) +#define INTP0_vect (0x8) +#define INTP1_vect (0xA) +#define INTP2_vect (0xC) +#define INTP3_vect (0xE) +#define INTP4_vect (0x10) +#define INTP5_vect (0x12) +#define INTST2_vect (0x14) +#define INTSR2_vect (0x16) +#define INTSRE2_vect (0x18) +#define INTDMA0_vect (0x1A) +#define INTDMA1_vect (0x1C) +#define INTCSI00_vect (0x1E) +#define INTIIC00_vect (0x1E) +#define INTST0_vect (0x1E) +#define INTTM00_vect (0x20) +#define INTSR0_vect (0x22) +#define INTSRE0_vect (0x24) +#define INTTM01H_vect (0x24) +#define INTCSI10_vect (0x26) +#define INTIIC10_vect (0x26) +#define INTST1_vect (0x26) +#define INTSR1_vect (0x28) +#define INTSRE1_vect (0x2A) +#define INTTM03H_vect (0x2A) +#define INTIICA0_vect (0x2C) +#define INTRTIT_vect (0x2E) +#define INTTM01_vect (0x32) +#define INTTM02_vect (0x34) +#define INTTM03_vect (0x36) +#define INTAD_vect (0x38) +#define INTRTC_vect (0x3A) +#define INTIT_vect (0x3C) +#define INTKR_vect (0x3E) +#define INTST3_vect (0x40) +#define INTSR3_vect (0x42) +#define INTTKB20_vect (0x44) +#define INTTM04_vect (0x46) +#define INTTM05_vect (0x48) +#define INTP6_vect (0x4A) +#define INTP7_vect (0x4C) +#define INTLCD0_vect (0x4E) +#define INTCMP0_vect (0x50) +#define INTCMP1_vect (0x52) +#define INTTM06_vect (0x54) +#define INTTM07_vect (0x56) +#define INTSRE3_vect (0x5C) +#define INTMD_vect (0x5E) +#define INTFL_vect (0x62) +#define INTDMA2_vect (0x64) +#define INTDMA3_vect (0x66) +#define BRK_I_vect (0x7E) +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L13_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L13_ext.h new file mode 100644 index 000000000..dca40d06e --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L13_ext.h @@ -0,0 +1,946 @@ +/***********************************************************************/ +/* */ +/* PROJECT NAME : RL78L13 */ +/* FILE : iodefine_ext.h */ +/* DESCRIPTION : Definition of Extended SFRs */ +/* CPU SERIES : RL78 - L13 */ +/* CPU TYPE : R5F10WMG */ +/* */ +/* This file is generated by e2studio. */ +/* */ +/***********************************************************************/ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F10WMG.DVF */ +/* Copyright(C) 2012 Renesas */ +/* Version E1.00d */ +/************************************************************************/ + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_EXT_H +#define IODEFINE_EXT_H + +/* + IO Registers + */ +union un_adm2 { + unsigned char adm2; + __BITS8 BIT; +}; +union un_pu0 { + unsigned char pu0; + __BITS8 BIT; +}; +union un_pu1 { + unsigned char pu1; + __BITS8 BIT; +}; +union un_pu2 { + unsigned char pu2; + __BITS8 BIT; +}; +union un_pu3 { + unsigned char pu3; + __BITS8 BIT; +}; +union un_pu4 { + unsigned char pu4; + __BITS8 BIT; +}; +union un_pu5 { + unsigned char pu5; + __BITS8 BIT; +}; +union un_pu7 { + unsigned char pu7; + __BITS8 BIT; +}; +union un_pu12 { + unsigned char pu12; + __BITS8 BIT; +}; +union un_pu13 { + unsigned char pu13; + __BITS8 BIT; +}; +union un_pim0 { + unsigned char pim0; + __BITS8 BIT; +}; +union un_pim1 { + unsigned char pim1; + __BITS8 BIT; +}; +union un_pim3 { + unsigned char pim3; + __BITS8 BIT; +}; +union un_pim4 { + unsigned char pim4; + __BITS8 BIT; +}; +union un_pim5 { + unsigned char pim5; + __BITS8 BIT; +}; +union un_pom0 { + unsigned char pom0; + __BITS8 BIT; +}; +union un_pom1 { + unsigned char pom1; + __BITS8 BIT; +}; +union un_pom3 { + unsigned char pom3; + __BITS8 BIT; +}; +union un_pom4 { + unsigned char pom4; + __BITS8 BIT; +}; +union un_pom5 { + unsigned char pom5; + __BITS8 BIT; +}; +union un_pom13 { + unsigned char pom13; + __BITS8 BIT; +}; +union un_pmc1 { + unsigned char pmc1; + __BITS8 BIT; +}; +union un_pmc2 { + unsigned char pmc2; + __BITS8 BIT; +}; +union un_pmc4 { + unsigned char pmc4; + __BITS8 BIT; +}; +union un_nfen0 { + unsigned char nfen0; + __BITS8 BIT; +}; +union un_nfen1 { + unsigned char nfen1; + __BITS8 BIT; +}; +union un_isc { + unsigned char isc; + __BITS8 BIT; +}; +union un_tos { + unsigned char tos; + __BITS8 BIT; +}; +union un_per1 { + unsigned char per1; + __BITS8 BIT; +}; +union un_pms { + unsigned char pms; + __BITS8 BIT; +}; +union un_dflctl { + unsigned char dflctl; + __BITS8 BIT; +}; +union un_perz { + unsigned char perz; + __BITS8 BIT; +}; +union un_bectl { + unsigned char bectl; + __BITS8 BIT; +}; +union un_fsse { + unsigned char fsse; + __BITS8 BIT; +}; +union un_pfs { + unsigned char pfs; + __BITS8 BIT; +}; +union un_mduc { + unsigned char mduc; + __BITS8 BIT; +}; +union un_per0 { + unsigned char per0; + __BITS8 BIT; +}; +union un_rmc { + unsigned char rmc; + __BITS8 BIT; +}; +union un_rpectl { + unsigned char rpectl; + __BITS8 BIT; +}; +union un_porsr { + unsigned char porsr; + __BITS8 BIT; +}; +union un_se0l { + unsigned char se0l; + __BITS8 BIT; +}; +union un_ss0l { + unsigned char ss0l; + __BITS8 BIT; +}; +union un_st0l { + unsigned char st0l; + __BITS8 BIT; +}; +union un_soe0l { + unsigned char soe0l; + __BITS8 BIT; +}; +union un_se1l { + unsigned char se1l; + __BITS8 BIT; +}; +union un_ss1l { + unsigned char ss1l; + __BITS8 BIT; +}; +union un_st1l { + unsigned char st1l; + __BITS8 BIT; +}; +union un_soe1l { + unsigned char soe1l; + __BITS8 BIT; +}; +union un_te0l { + unsigned char te0l; + __BITS8 BIT; +}; +union un_ts0l { + unsigned char ts0l; + __BITS8 BIT; +}; +union un_tt0l { + unsigned char tt0l; + __BITS8 BIT; +}; +union un_toe0l { + unsigned char toe0l; + __BITS8 BIT; +}; +union un_dmc2 { + unsigned char dmc2; + __BITS8 BIT; +}; +union un_dmc3 { + unsigned char dmc3; + __BITS8 BIT; +}; +union un_drc2 { + unsigned char drc2; + __BITS8 BIT; +}; +union un_drc3 { + unsigned char drc3; + __BITS8 BIT; +}; +union un_dwaitall { + unsigned char dwaitall; + __BITS8 BIT; +}; +union un_iicctl00 { + unsigned char iicctl00; + __BITS8 BIT; +}; +union un_iicctl01 { + unsigned char iicctl01; + __BITS8 BIT; +}; +union un_crc0ctl { + unsigned char crc0ctl; + __BITS8 BIT; +}; +union un_pfseg0 { + unsigned char pfseg0; + __BITS8 BIT; +}; +union un_pfseg1 { + unsigned char pfseg1; + __BITS8 BIT; +}; +union un_pfseg2 { + unsigned char pfseg2; + __BITS8 BIT; +}; +union un_pfseg3 { + unsigned char pfseg3; + __BITS8 BIT; +}; +union un_pfseg4 { + unsigned char pfseg4; + __BITS8 BIT; +}; +union un_pfseg5 { + unsigned char pfseg5; + __BITS8 BIT; +}; +union un_pfseg6 { + unsigned char pfseg6; + __BITS8 BIT; +}; +union un_isclcd { + unsigned char isclcd; + __BITS8 BIT; +}; +union un_compmdr { + unsigned char compmdr; + __BITS8 BIT; +}; +union un_compfir { + unsigned char compfir; + __BITS8 BIT; +}; +union un_compocr { + unsigned char compocr; + __BITS8 BIT; +}; +union un_comptcr { + unsigned char comptcr; + __BITS8 BIT; +}; +union un_tkbtrg0 { + unsigned char tkbtrg0; + __BITS8 BIT; +}; +union un_tkbflg0 { + unsigned char tkbflg0; + __BITS8 BIT; +}; +union un_tkbioc00 { + unsigned char tkbioc00; + __BITS8 BIT; +}; +union un_tkbclr0 { + unsigned char tkbclr0; + __BITS8 BIT; +}; +union un_tkbioc01 { + unsigned char tkbioc01; + __BITS8 BIT; +}; +union un_tkbctl01 { + unsigned char tkbctl01; + __BITS8 BIT; +}; +union un_tkbpahfs0 { + unsigned char tkbpahfs0; + __BITS8 BIT; +}; +union un_tkbpahft0 { + unsigned char tkbpahft0; + __BITS8 BIT; +}; +union un_tkbpaflg0 { + unsigned char tkbpaflg0; + __BITS8 BIT; +}; +union un_tkbpactl02 { + unsigned char tkbpactl02; + __BITS8 BIT; +}; + +#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 +#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT +#define ADUL (*(volatile unsigned char *)0xF0011) +#define ADLL (*(volatile unsigned char *)0xF0012) +#define ADTES (*(volatile unsigned char *)0xF0013) +#define LCDI (*(volatile unsigned char *)0xF001F) +#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 +#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT +#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 +#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT +#define PU2 (*(volatile union un_pu2 *)0xF0032).pu2 +#define PU2_bit (*(volatile union un_pu2 *)0xF0032).BIT +#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 +#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT +#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 +#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT +#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 +#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT +#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 +#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT +#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 +#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT +#define PU13 (*(volatile union un_pu13 *)0xF003D).pu13 +#define PU13_bit (*(volatile union un_pu13 *)0xF003D).BIT +#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 +#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT +#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 +#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT +#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 +#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT +#define PIM4 (*(volatile union un_pim4 *)0xF0044).pim4 +#define PIM4_bit (*(volatile union un_pim4 *)0xF0044).BIT +#define PIM5 (*(volatile union un_pim5 *)0xF0045).pim5 +#define PIM5_bit (*(volatile union un_pim5 *)0xF0045).BIT +#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 +#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT +#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 +#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT +#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 +#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT +#define POM4 (*(volatile union un_pom4 *)0xF0054).pom4 +#define POM4_bit (*(volatile union un_pom4 *)0xF0054).BIT +#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 +#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT +#define POM13 (*(volatile union un_pom13 *)0xF005D).pom13 +#define POM13_bit (*(volatile union un_pom13 *)0xF005D).BIT +#define PMC1 (*(volatile union un_pmc1 *)0xF0061).pmc1 +#define PMC1_bit (*(volatile union un_pmc1 *)0xF0061).BIT +#define PMC2 (*(volatile union un_pmc2 *)0xF0062).pmc2 +#define PMC2_bit (*(volatile union un_pmc2 *)0xF0062).BIT +#define PMC4 (*(volatile union un_pmc4 *)0xF0064).pmc4 +#define PMC4_bit (*(volatile union un_pmc4 *)0xF0064).BIT +#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 +#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT +#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 +#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT +#define ISC (*(volatile union un_isc *)0xF0073).isc +#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT +#define TIS0 (*(volatile unsigned char *)0xF0074) +#define ADPC (*(volatile unsigned char *)0xF0076) +#define PIOR (*(volatile unsigned char *)0xF0077) +#define IAWCTL (*(volatile unsigned char *)0xF0078) +#define TOS (*(volatile union un_tos *)0xF0079).tos +#define TOS_bit (*(volatile union un_tos *)0xF0079).BIT +#define PER1 (*(volatile union un_per1 *)0xF007A).per1 +#define PER1_bit (*(volatile union un_per1 *)0xF007A).BIT +#define PMS (*(volatile union un_pms *)0xF007B).pms +#define PMS_bit (*(volatile union un_pms *)0xF007B).BIT +#define PWCTKB (*(volatile unsigned char *)0xF007C) +#define PRDSEL (*(volatile unsigned short *)0xF007E) +#define TOOLEN (*(volatile unsigned char *)0xF0080) +#define BPAL0 (*(volatile unsigned char *)0xF0081) +#define BPAH0 (*(volatile unsigned char *)0xF0082) +#define BPAS0 (*(volatile unsigned char *)0xF0083) +#define BACDVL0 (*(volatile unsigned char *)0xF0084) +#define BACDVH0 (*(volatile unsigned char *)0xF0085) +#define BACDML0 (*(volatile unsigned char *)0xF0086) +#define BACDMH0 (*(volatile unsigned char *)0xF0087) +#define MONMOD (*(volatile unsigned char *)0xF0088) +#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl +#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT +#define PERZ (*(volatile union un_perz *)0xF009F).perz +#define PERZ_bit (*(volatile union un_perz *)0xF009F).BIT +#define HIOTRM (*(volatile unsigned char *)0xF00A0) +#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl +#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT +#define HOCODIV (*(volatile unsigned char *)0xF00A8) +#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) +#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) +#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) +#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) +#define FLSEC (*(volatile unsigned short *)0xF00B0) +#define FLFSWS (*(volatile unsigned short *)0xF00B2) +#define FLFSWE (*(volatile unsigned short *)0xF00B4) +#define FSSET (*(volatile unsigned char *)0xF00B6) +#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse +#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT +#define FLFADL (*(volatile unsigned short *)0xF00B8) +#define FLFADH (*(volatile unsigned char *)0xF00BA) +#define PFCMD (*(volatile unsigned char *)0xF00C0) +#define PFS (*(volatile union un_pfs *)0xF00C1).pfs +#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT +#define FLRL (*(volatile unsigned short *)0xF00C2) +#define FLRH (*(volatile unsigned short *)0xF00C4) +#define FLWE (*(volatile unsigned char *)0xF00C6) +#define FLRE (*(volatile unsigned char *)0xF00C7) +#define FLTMS (*(volatile unsigned short *)0xF00C8) +#define DFLMC (*(volatile unsigned short *)0xF00CA) +#define FLMCL (*(volatile unsigned short *)0xF00CC) +#define FLMCH (*(volatile unsigned char *)0xF00CE) +#define FSCTL (*(volatile unsigned char *)0xF00CF) +#define ICEADR (*(volatile unsigned short *)0xF00D0) +#define ICEDAT (*(volatile unsigned short *)0xF00D2) +#define MDCL (*(volatile unsigned short *)0xF00E0) +#define MDCH (*(volatile unsigned short *)0xF00E2) +#define MDUC (*(volatile union un_mduc *)0xF00E8).mduc +#define MDUC_bit (*(volatile union un_mduc *)0xF00E8).BIT +#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 +#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT +#define OSMC (*(volatile unsigned char *)0xF00F3) +#define RMC (*(volatile union un_rmc *)0xF00F4).rmc +#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT +#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl +#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT +#define PORSR (*(volatile union un_porsr *)0xF00F9).porsr +#define PORSR_bit (*(volatile union un_porsr *)0xF00F9).BIT +#define BCDADJ (*(volatile unsigned char *)0xF00FE) +#define VECTCTRL (*(volatile unsigned char *)0xF00FF) +#define SSR00 (*(volatile unsigned short *)0xF0100) +#define SSR00L (*(volatile unsigned char *)0xF0100) +#define SSR01 (*(volatile unsigned short *)0xF0102) +#define SSR01L (*(volatile unsigned char *)0xF0102) +#define SSR02 (*(volatile unsigned short *)0xF0104) +#define SSR02L (*(volatile unsigned char *)0xF0104) +#define SSR03 (*(volatile unsigned short *)0xF0106) +#define SSR03L (*(volatile unsigned char *)0xF0106) +#define SIR00 (*(volatile unsigned short *)0xF0108) +#define SIR00L (*(volatile unsigned char *)0xF0108) +#define SIR01 (*(volatile unsigned short *)0xF010A) +#define SIR01L (*(volatile unsigned char *)0xF010A) +#define SIR02 (*(volatile unsigned short *)0xF010C) +#define SIR02L (*(volatile unsigned char *)0xF010C) +#define SIR03 (*(volatile unsigned short *)0xF010E) +#define SIR03L (*(volatile unsigned char *)0xF010E) +#define SMR00 (*(volatile unsigned short *)0xF0110) +#define SMR01 (*(volatile unsigned short *)0xF0112) +#define SMR02 (*(volatile unsigned short *)0xF0114) +#define SMR03 (*(volatile unsigned short *)0xF0116) +#define SCR00 (*(volatile unsigned short *)0xF0118) +#define SCR01 (*(volatile unsigned short *)0xF011A) +#define SCR02 (*(volatile unsigned short *)0xF011C) +#define SCR03 (*(volatile unsigned short *)0xF011E) +#define SE0 (*(volatile unsigned short *)0xF0120) +#define SE0L (*(volatile union un_se0l *)0xF0120).se0l +#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT +#define SS0 (*(volatile unsigned short *)0xF0122) +#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l +#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT +#define ST0 (*(volatile unsigned short *)0xF0124) +#define ST0L (*(volatile union un_st0l *)0xF0124).st0l +#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT +#define SPS0 (*(volatile unsigned short *)0xF0126) +#define SPS0L (*(volatile unsigned char *)0xF0126) +#define SO0 (*(volatile unsigned short *)0xF0128) +#define SOE0 (*(volatile unsigned short *)0xF012A) +#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l +#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT +#define EDR00 (*(volatile unsigned short *)0xF012C) +#define EDR00L (*(volatile unsigned char *)0xF012C) +#define EDR01 (*(volatile unsigned short *)0xF012E) +#define EDR01L (*(volatile unsigned char *)0xF012E) +#define EDR02 (*(volatile unsigned short *)0xF0130) +#define EDR02L (*(volatile unsigned char *)0xF0130) +#define EDR03 (*(volatile unsigned short *)0xF0132) +#define EDR03L (*(volatile unsigned char *)0xF0132) +#define SOL0 (*(volatile unsigned short *)0xF0134) +#define SOL0L (*(volatile unsigned char *)0xF0134) +#define SSC0 (*(volatile unsigned short *)0xF0138) +#define SSC0L (*(volatile unsigned char *)0xF0138) +#define SSR10 (*(volatile unsigned short *)0xF0140) +#define SSR10L (*(volatile unsigned char *)0xF0140) +#define SSR11 (*(volatile unsigned short *)0xF0142) +#define SSR11L (*(volatile unsigned char *)0xF0142) +#define SSR12 (*(volatile unsigned short *)0xF0144) +#define SSR12L (*(volatile unsigned char *)0xF0144) +#define SSR13 (*(volatile unsigned short *)0xF0146) +#define SSR13L (*(volatile unsigned char *)0xF0146) +#define SIR10 (*(volatile unsigned short *)0xF0148) +#define SIR10L (*(volatile unsigned char *)0xF0148) +#define SIR11 (*(volatile unsigned short *)0xF014A) +#define SIR11L (*(volatile unsigned char *)0xF014A) +#define SIR12 (*(volatile unsigned short *)0xF014C) +#define SIR12L (*(volatile unsigned char *)0xF014C) +#define SIR13 (*(volatile unsigned short *)0xF014E) +#define SIR13L (*(volatile unsigned char *)0xF014E) +#define SMR10 (*(volatile unsigned short *)0xF0150) +#define SMR11 (*(volatile unsigned short *)0xF0152) +#define SMR12 (*(volatile unsigned short *)0xF0154) +#define SMR13 (*(volatile unsigned short *)0xF0156) +#define SCR10 (*(volatile unsigned short *)0xF0158) +#define SCR11 (*(volatile unsigned short *)0xF015A) +#define SCR12 (*(volatile unsigned short *)0xF015C) +#define SCR13 (*(volatile unsigned short *)0xF015E) +#define SE1 (*(volatile unsigned short *)0xF0160) +#define SE1L (*(volatile union un_se1l *)0xF0160).se1l +#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT +#define SS1 (*(volatile unsigned short *)0xF0162) +#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l +#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT +#define ST1 (*(volatile unsigned short *)0xF0164) +#define ST1L (*(volatile union un_st1l *)0xF0164).st1l +#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT +#define SPS1 (*(volatile unsigned short *)0xF0166) +#define SPS1L (*(volatile unsigned char *)0xF0166) +#define SO1 (*(volatile unsigned short *)0xF0168) +#define SOE1 (*(volatile unsigned short *)0xF016A) +#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l +#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT +#define EDR10 (*(volatile unsigned short *)0xF016C) +#define EDR10L (*(volatile unsigned char *)0xF016C) +#define EDR11 (*(volatile unsigned short *)0xF016E) +#define EDR11L (*(volatile unsigned char *)0xF016E) +#define EDR12 (*(volatile unsigned short *)0xF0170) +#define EDR12L (*(volatile unsigned char *)0xF0170) +#define EDR13 (*(volatile unsigned short *)0xF0172) +#define EDR13L (*(volatile unsigned char *)0xF0172) +#define SOL1 (*(volatile unsigned short *)0xF0174) +#define SOL1L (*(volatile unsigned char *)0xF0174) +#define SSC1 (*(volatile unsigned short *)0xF0178) +#define SSC1L (*(volatile unsigned char *)0xF0178) +#define TCR00 (*(volatile unsigned short *)0xF0180) +#define TCR01 (*(volatile unsigned short *)0xF0182) +#define TCR02 (*(volatile unsigned short *)0xF0184) +#define TCR03 (*(volatile unsigned short *)0xF0186) +#define TCR04 (*(volatile unsigned short *)0xF0188) +#define TCR05 (*(volatile unsigned short *)0xF018A) +#define TCR06 (*(volatile unsigned short *)0xF018C) +#define TCR07 (*(volatile unsigned short *)0xF018E) +#define TMR00 (*(volatile unsigned short *)0xF0190) +#define TMR01 (*(volatile unsigned short *)0xF0192) +#define TMR02 (*(volatile unsigned short *)0xF0194) +#define TMR03 (*(volatile unsigned short *)0xF0196) +#define TMR04 (*(volatile unsigned short *)0xF0198) +#define TMR05 (*(volatile unsigned short *)0xF019A) +#define TMR06 (*(volatile unsigned short *)0xF019C) +#define TMR07 (*(volatile unsigned short *)0xF019E) +#define TSR00 (*(volatile unsigned short *)0xF01A0) +#define TSR00L (*(volatile unsigned char *)0xF01A0) +#define TSR01 (*(volatile unsigned short *)0xF01A2) +#define TSR01L (*(volatile unsigned char *)0xF01A2) +#define TSR02 (*(volatile unsigned short *)0xF01A4) +#define TSR02L (*(volatile unsigned char *)0xF01A4) +#define TSR03 (*(volatile unsigned short *)0xF01A6) +#define TSR03L (*(volatile unsigned char *)0xF01A6) +#define TSR04 (*(volatile unsigned short *)0xF01A8) +#define TSR04L (*(volatile unsigned char *)0xF01A8) +#define TSR05 (*(volatile unsigned short *)0xF01AA) +#define TSR05L (*(volatile unsigned char *)0xF01AA) +#define TSR06 (*(volatile unsigned short *)0xF01AC) +#define TSR06L (*(volatile unsigned char *)0xF01AC) +#define TSR07 (*(volatile unsigned short *)0xF01AE) +#define TSR07L (*(volatile unsigned char *)0xF01AE) +#define TE0 (*(volatile unsigned short *)0xF01B0) +#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l +#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT +#define TS0 (*(volatile unsigned short *)0xF01B2) +#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l +#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT +#define TT0 (*(volatile unsigned short *)0xF01B4) +#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l +#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT +#define TPS0 (*(volatile unsigned short *)0xF01B6) +#define TO0 (*(volatile unsigned short *)0xF01B8) +#define TO0L (*(volatile unsigned char *)0xF01B8) +#define TOE0 (*(volatile unsigned short *)0xF01BA) +#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l +#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT +#define TOL0 (*(volatile unsigned short *)0xF01BC) +#define TOL0L (*(volatile unsigned char *)0xF01BC) +#define TOM0 (*(volatile unsigned short *)0xF01BE) +#define TOM0L (*(volatile unsigned char *)0xF01BE) +#define DSA2 (*(volatile unsigned char *)0xF0200) +#define DSA3 (*(volatile unsigned char *)0xF0201) +#define DRA2 (*(volatile unsigned short *)0xF0202) +#define DRA2L (*(volatile unsigned char *)0xF0202) +#define DRA2H (*(volatile unsigned char *)0xF0203) +#define DRA3 (*(volatile unsigned short *)0xF0204) +#define DRA3L (*(volatile unsigned char *)0xF0204) +#define DRA3H (*(volatile unsigned char *)0xF0205) +#define DBC2 (*(volatile unsigned short *)0xF0206) +#define DBC2L (*(volatile unsigned char *)0xF0206) +#define DBC2H (*(volatile unsigned char *)0xF0207) +#define DBC3 (*(volatile unsigned short *)0xF0208) +#define DBC3L (*(volatile unsigned char *)0xF0208) +#define DBC3H (*(volatile unsigned char *)0xF0209) +#define DMC2 (*(volatile union un_dmc2 *)0xF020A).dmc2 +#define DMC2_bit (*(volatile union un_dmc2 *)0xF020A).BIT +#define DMC3 (*(volatile union un_dmc3 *)0xF020B).dmc3 +#define DMC3_bit (*(volatile union un_dmc3 *)0xF020B).BIT +#define DRC2 (*(volatile union un_drc2 *)0xF020C).drc2 +#define DRC2_bit (*(volatile union un_drc2 *)0xF020C).BIT +#define DRC3 (*(volatile union un_drc3 *)0xF020D).drc3 +#define DRC3_bit (*(volatile union un_drc3 *)0xF020D).BIT +#define DWAITALL (*(volatile union un_dwaitall *)0xF020F).dwaitall +#define DWAITALL_bit (*(volatile union un_dwaitall *)0xF020F).BIT +#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 +#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT +#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 +#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT +#define IICWL0 (*(volatile unsigned char *)0xF0232) +#define IICWH0 (*(volatile unsigned char *)0xF0233) +#define SVA0 (*(volatile unsigned char *)0xF0234) +#define IICSE0 (*(volatile unsigned char *)0xF0235) +#define ELSELR00 (*(volatile unsigned char *)0xF0240) +#define ELSELR01 (*(volatile unsigned char *)0xF0241) +#define ELSELR02 (*(volatile unsigned char *)0xF0242) +#define ELSELR03 (*(volatile unsigned char *)0xF0243) +#define ELSELR04 (*(volatile unsigned char *)0xF0244) +#define ELSELR05 (*(volatile unsigned char *)0xF0245) +#define ELSELR06 (*(volatile unsigned char *)0xF0246) +#define ELSELR07 (*(volatile unsigned char *)0xF0247) +#define ELSELR08 (*(volatile unsigned char *)0xF0248) +#define ELSELR09 (*(volatile unsigned char *)0xF0249) +#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl +#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT +#define PGCRCL (*(volatile unsigned short *)0xF02F2) +#define CRCD (*(volatile unsigned short *)0xF02FA) +#define PFSEG0 (*(volatile union un_pfseg0 *)0xF0300).pfseg0 +#define PFSEG0_bit (*(volatile union un_pfseg0 *)0xF0300).BIT +#define PFSEG1 (*(volatile union un_pfseg1 *)0xF0301).pfseg1 +#define PFSEG1_bit (*(volatile union un_pfseg1 *)0xF0301).BIT +#define PFSEG2 (*(volatile union un_pfseg2 *)0xF0302).pfseg2 +#define PFSEG2_bit (*(volatile union un_pfseg2 *)0xF0302).BIT +#define PFSEG3 (*(volatile union un_pfseg3 *)0xF0303).pfseg3 +#define PFSEG3_bit (*(volatile union un_pfseg3 *)0xF0303).BIT +#define PFSEG4 (*(volatile union un_pfseg4 *)0xF0304).pfseg4 +#define PFSEG4_bit (*(volatile union un_pfseg4 *)0xF0304).BIT +#define PFSEG5 (*(volatile union un_pfseg5 *)0xF0305).pfseg5 +#define PFSEG5_bit (*(volatile union un_pfseg5 *)0xF0305).BIT +#define PFSEG6 (*(volatile union un_pfseg6 *)0xF0306).pfseg6 +#define PFSEG6_bit (*(volatile union un_pfseg6 *)0xF0306).BIT +#define ISCLCD (*(volatile union un_isclcd *)0xF0308).isclcd +#define ISCLCD_bit (*(volatile union un_isclcd *)0xF0308).BIT +#define SUBCUD (*(volatile unsigned short *)0xF0310) +#define COMPMDR (*(volatile union un_compmdr *)0xF0340).compmdr +#define COMPMDR_bit (*(volatile union un_compmdr *)0xF0340).BIT +#define COMPFIR (*(volatile union un_compfir *)0xF0341).compfir +#define COMPFIR_bit (*(volatile union un_compfir *)0xF0341).BIT +#define COMPOCR (*(volatile union un_compocr *)0xF0342).compocr +#define COMPOCR_bit (*(volatile union un_compocr *)0xF0342).BIT +#define COMPTCR (*(volatile union un_comptcr *)0xF0343).comptcr +#define COMPTCR_bit (*(volatile union un_comptcr *)0xF0343).BIT +#define SEG0 (*(volatile unsigned char *)0xF0400) +#define SEG1 (*(volatile unsigned char *)0xF0401) +#define SEG2 (*(volatile unsigned char *)0xF0402) +#define SEG3 (*(volatile unsigned char *)0xF0403) +#define SEG4 (*(volatile unsigned char *)0xF0404) +#define SEG5 (*(volatile unsigned char *)0xF0405) +#define SEG6 (*(volatile unsigned char *)0xF0406) +#define SEG7 (*(volatile unsigned char *)0xF0407) +#define SEG8 (*(volatile unsigned char *)0xF0408) +#define SEG9 (*(volatile unsigned char *)0xF0409) +#define SEG10 (*(volatile unsigned char *)0xF040A) +#define SEG11 (*(volatile unsigned char *)0xF040B) +#define SEG12 (*(volatile unsigned char *)0xF040C) +#define SEG13 (*(volatile unsigned char *)0xF040D) +#define SEG14 (*(volatile unsigned char *)0xF040E) +#define SEG15 (*(volatile unsigned char *)0xF040F) +#define SEG16 (*(volatile unsigned char *)0xF0410) +#define SEG17 (*(volatile unsigned char *)0xF0411) +#define SEG18 (*(volatile unsigned char *)0xF0412) +#define SEG19 (*(volatile unsigned char *)0xF0413) +#define SEG20 (*(volatile unsigned char *)0xF0414) +#define SEG21 (*(volatile unsigned char *)0xF0415) +#define SEG22 (*(volatile unsigned char *)0xF0416) +#define SEG23 (*(volatile unsigned char *)0xF0417) +#define SEG24 (*(volatile unsigned char *)0xF0418) +#define SEG25 (*(volatile unsigned char *)0xF0419) +#define SEG26 (*(volatile unsigned char *)0xF041A) +#define SEG27 (*(volatile unsigned char *)0xF041B) +#define SEG28 (*(volatile unsigned char *)0xF041C) +#define SEG29 (*(volatile unsigned char *)0xF041D) +#define SEG30 (*(volatile unsigned char *)0xF041E) +#define SEG31 (*(volatile unsigned char *)0xF041F) +#define SEG32 (*(volatile unsigned char *)0xF0420) +#define SEG33 (*(volatile unsigned char *)0xF0421) +#define SEG34 (*(volatile unsigned char *)0xF0422) +#define SEG35 (*(volatile unsigned char *)0xF0423) +#define SEG36 (*(volatile unsigned char *)0xF0424) +#define SEG37 (*(volatile unsigned char *)0xF0425) +#define SEG38 (*(volatile unsigned char *)0xF0426) +#define SEG39 (*(volatile unsigned char *)0xF0427) +#define SEG40 (*(volatile unsigned char *)0xF0428) +#define SEG41 (*(volatile unsigned char *)0xF0429) +#define SEG42 (*(volatile unsigned char *)0xF042A) +#define SEG43 (*(volatile unsigned char *)0xF042B) +#define SEG44 (*(volatile unsigned char *)0xF042C) +#define SEG45 (*(volatile unsigned char *)0xF042D) +#define SEG46 (*(volatile unsigned char *)0xF042E) +#define SEG47 (*(volatile unsigned char *)0xF042F) +#define SEG48 (*(volatile unsigned char *)0xF0430) +#define SEG49 (*(volatile unsigned char *)0xF0431) +#define SEG50 (*(volatile unsigned char *)0xF0432) +#define SEG51 (*(volatile unsigned char *)0xF0433) +#define SEG52 (*(volatile unsigned char *)0xF0434) +#define SEG53 (*(volatile unsigned char *)0xF0435) +#define SEG54 (*(volatile unsigned char *)0xF0436) +#define SEG55 (*(volatile unsigned char *)0xF0437) +#define TKBCR00 (*(volatile unsigned short *)0xF0500) +#define TKBCR01 (*(volatile unsigned short *)0xF0502) +#define TKBCR02 (*(volatile unsigned short *)0xF0504) +#define TKBCR03 (*(volatile unsigned short *)0xF0506) +#define TKBTGCR0 (*(volatile unsigned short *)0xF0508) +#define TKBSIR00 (*(volatile unsigned short *)0xF050A) +#define TKBSIR01 (*(volatile unsigned short *)0xF050C) +#define TKBDNR00 (*(volatile unsigned char *)0xF050E) +#define TKBSSR00 (*(volatile unsigned char *)0xF050F) +#define TKBDNR01 (*(volatile unsigned char *)0xF0510) +#define TKBSSR01 (*(volatile unsigned char *)0xF0511) +#define TKBTRG0 (*(volatile union un_tkbtrg0 *)0xF0512).tkbtrg0 +#define TKBTRG0_bit (*(volatile union un_tkbtrg0 *)0xF0512).BIT +#define TKBFLG0 (*(volatile union un_tkbflg0 *)0xF0513).tkbflg0 +#define TKBFLG0_bit (*(volatile union un_tkbflg0 *)0xF0513).BIT +#define TKBCRLD00 (*(volatile unsigned short *)0xF0514) +#define TKBCRLD01 (*(volatile unsigned short *)0xF0516) +#define TKBCNT0 (*(volatile unsigned short *)0xF0520) +#define TKBCTL00 (*(volatile unsigned short *)0xF0522) +#define TKBMFR0 (*(volatile unsigned short *)0xF0524) +#define TKBIOC00 (*(volatile union un_tkbioc00 *)0xF0526).tkbioc00 +#define TKBIOC00_bit (*(volatile union un_tkbioc00 *)0xF0526).BIT +#define TKBCLR0 (*(volatile union un_tkbclr0 *)0xF0527).tkbclr0 +#define TKBCLR0_bit (*(volatile union un_tkbclr0 *)0xF0527).BIT +#define TKBIOC01 (*(volatile union un_tkbioc01 *)0xF0528).tkbioc01 +#define TKBIOC01_bit (*(volatile union un_tkbioc01 *)0xF0528).BIT +#define TKBCTL01 (*(volatile union un_tkbctl01 *)0xF0529).tkbctl01 +#define TKBCTL01_bit (*(volatile union un_tkbctl01 *)0xF0529).BIT +#define TKBPSCS0 (*(volatile unsigned char *)0xF052A) +#define TKBPACTL00 (*(volatile unsigned short *)0xF0530) +#define TKBPACTL01 (*(volatile unsigned short *)0xF0532) +#define TKBPAHFS0 (*(volatile union un_tkbpahfs0 *)0xF0534).tkbpahfs0 +#define TKBPAHFS0_bit (*(volatile union un_tkbpahfs0 *)0xF0534).BIT +#define TKBPAHFT0 (*(volatile union un_tkbpahft0 *)0xF0535).tkbpahft0 +#define TKBPAHFT0_bit (*(volatile union un_tkbpahft0 *)0xF0535).BIT +#define TKBPAFLG0 (*(volatile union un_tkbpaflg0 *)0xF0536).tkbpaflg0 +#define TKBPAFLG0_bit (*(volatile union un_tkbpaflg0 *)0xF0536).BIT +#define TKBPACTL02 (*(volatile union un_tkbpactl02 *)0xF0537).tkbpactl02 +#define TKBPACTL02_bit (*(volatile union un_tkbpactl02 *)0xF0537).BIT + +/* + Sfr bits + */ +#define ADTYP ADM2_bit.no0 +#define AWC ADM2_bit.no2 +#define ADRCK ADM2_bit.no3 +#define TOS0 TOS_bit.no0 +#define TKB2EN PER1_bit.no4 +#define CMPEN PER1_bit.no5 +#define TMKAEN PER1_bit.no7 +#define DFLEN DFLCTL_bit.no0 +#define FSUBEN PERZ_bit.no7 +#define BRSAM BECTL_bit.no0 +#define ESQST FSSE_bit.no7 +#define DIVST MDUC_bit.no0 +#define MACSF MDUC_bit.no1 +#define MACOF MDUC_bit.no2 +#define MDSM MDUC_bit.no3 +#define MACMODE MDUC_bit.no6 +#define DIVMODE MDUC_bit.no7 +#define TAU0EN PER0_bit.no0 +#define SAU0EN PER0_bit.no2 +#define SAU1EN PER0_bit.no3 +#define IICA0EN PER0_bit.no4 +#define ADCEN PER0_bit.no5 +#define RTCWEN PER0_bit.no7 +#define PAENB RMC_bit.no0 +#define WDVOL RMC_bit.no7 +#define RPEF RPECTL_bit.no0 +#define RPERDIS RPECTL_bit.no7 +#define DWAIT2 DMC2_bit.no4 +#define DS2 DMC2_bit.no5 +#define DRS2 DMC2_bit.no6 +#define STG2 DMC2_bit.no7 +#define DWAIT3 DMC3_bit.no4 +#define DS3 DMC3_bit.no5 +#define DRS3 DMC3_bit.no6 +#define STG3 DMC3_bit.no7 +#define DST2 DRC2_bit.no0 +#define DEN2 DRC2_bit.no7 +#define DST3 DRC3_bit.no0 +#define DEN3 DRC3_bit.no7 +#define DWAITALL0 DWAITALL_bit.no0 +#define PRVARI DWAITALL_bit.no7 +#define SPT0 IICCTL00_bit.no0 +#define STT0 IICCTL00_bit.no1 +#define ACKE0 IICCTL00_bit.no2 +#define WTIM0 IICCTL00_bit.no3 +#define SPIE0 IICCTL00_bit.no4 +#define WREL0 IICCTL00_bit.no5 +#define LREL0 IICCTL00_bit.no6 +#define IICE0 IICCTL00_bit.no7 +#define PRS0 IICCTL01_bit.no0 +#define DFC0 IICCTL01_bit.no2 +#define SMC0 IICCTL01_bit.no3 +#define DAD0 IICCTL01_bit.no4 +#define CLD0 IICCTL01_bit.no5 +#define WUP0 IICCTL01_bit.no7 +#define CRC0EN CRC0CTL_bit.no7 +#define C0ENB COMPMDR_bit.no0 +#define C0MON COMPMDR_bit.no3 +#define C1ENB COMPMDR_bit.no4 +#define C1MON COMPMDR_bit.no7 +#define C0IE COMPOCR_bit.no0 +#define C0OE COMPOCR_bit.no1 +#define C0OP COMPOCR_bit.no2 +#define C1IE COMPOCR_bit.no4 +#define C1OE COMPOCR_bit.no5 +#define C1OP COMPOCR_bit.no6 +#define SPDMD COMPOCR_bit.no7 +#define TKBRDT0 TKBTRG0_bit.no0 +#define TKBRSF0 TKBFLG0_bit.no0 +#define TKBMFF0 TKBFLG0_bit.no1 +#define TKBIEF0 TKBFLG0_bit.no2 +#define TKBIRF0 TKBFLG0_bit.no3 +#define TKBSEF00 TKBFLG0_bit.no4 +#define TKBSEF01 TKBFLG0_bit.no5 +#define TKBSSF00 TKBFLG0_bit.no6 +#define TKBSSF01 TKBFLG0_bit.no7 +#define TKBTOD00 TKBIOC00_bit.no0 +#define TKBTOD01 TKBIOC00_bit.no1 +#define TKBTOL00 TKBIOC00_bit.no2 +#define TKBTOL01 TKBIOC00_bit.no3 +#define TKBCLMF0 TKBCLR0_bit.no1 +#define TKBCLIE0 TKBCLR0_bit.no2 +#define TKBCLIR0 TKBCLR0_bit.no3 +#define TKBCLSE00 TKBCLR0_bit.no4 +#define TKBCLSE01 TKBCLR0_bit.no5 +#define TKBTOE00 TKBIOC01_bit.no0 +#define TKBTOE01 TKBIOC01_bit.no1 +#define TKBCE0 TKBCTL01_bit.no7 +#define TKBPAHTS00 TKBPAHFS0_bit.no0 +#define TKBPAHTS01 TKBPAHFS0_bit.no1 +#define TKBPAHTT00 TKBPAHFT0_bit.no0 +#define TKBPAHTT01 TKBPAHFT0_bit.no1 +#define TKBPAHIF00 TKBPAFLG0_bit.no0 +#define TKBPAFIF00 TKBPAFLG0_bit.no1 +#define TKBPAHIF01 TKBPAFLG0_bit.no2 +#define TKBPAFIF01 TKBPAFLG0_bit.no3 +#define TKBPAHSF00 TKBPAFLG0_bit.no4 +#define TKBPAFSF00 TKBPAFLG0_bit.no5 +#define TKBPAHSF01 TKBPAFLG0_bit.no6 +#define TKBPAFSF01 TKBPAFLG0_bit.no7 +#define TKBPACE00 TKBPACTL02_bit.no0 +#define TKBPACE01 TKBPACTL02_bit.no1 + +/* + Interrupt vector addresses + */ +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L1C.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L1C.h new file mode 100644 index 000000000..b20855615 --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L1C.h @@ -0,0 +1,1002 @@ + +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F110PJ.DVF */ +/* Copyright(C) 2013 Renesas */ +/* File Version E1.00h */ +/* Tool Version 2.5.211 */ +/* Date Generated 07/05/2013 */ +/************************************************************************/ + +#ifndef __INTRINSIC_FUNCTIONS +#define __INTRINSIC_FUNCTIONS + +#define DI() asm("di") +#define EI() asm("ei") +#define HALT() asm("halt") +#define NOP() asm("nop") +#define STOP() asm("stop") + +#endif + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_H +#define IODEFINE_H + +/* + IO Registers + */ +union un_p0 { + unsigned char p0; + __BITS8 BIT; +}; +union un_p1 { + unsigned char p1; + __BITS8 BIT; +}; +union un_p2 { + unsigned char p2; + __BITS8 BIT; +}; +union un_p3 { + unsigned char p3; + __BITS8 BIT; +}; +union un_p4 { + unsigned char p4; + __BITS8 BIT; +}; +union un_p5 { + unsigned char p5; + __BITS8 BIT; +}; +union un_p6 { + unsigned char p6; + __BITS8 BIT; +}; +union un_p7 { + unsigned char p7; + __BITS8 BIT; +}; +union un_p12 { + unsigned char p12; + __BITS8 BIT; +}; +union un_p13 { + unsigned char p13; + __BITS8 BIT; +}; +union un_p14 { + unsigned char p14; + __BITS8 BIT; +}; +union un_p15 { + unsigned char p15; + __BITS8 BIT; +}; +union un_pm0 { + unsigned char pm0; + __BITS8 BIT; +}; +union un_pm1 { + unsigned char pm1; + __BITS8 BIT; +}; +union un_pm2 { + unsigned char pm2; + __BITS8 BIT; +}; +union un_pm3 { + unsigned char pm3; + __BITS8 BIT; +}; +union un_pm4 { + unsigned char pm4; + __BITS8 BIT; +}; +union un_pm5 { + unsigned char pm5; + __BITS8 BIT; +}; +union un_pm6 { + unsigned char pm6; + __BITS8 BIT; +}; +union un_pm7 { + unsigned char pm7; + __BITS8 BIT; +}; +union un_pm12 { + unsigned char pm12; + __BITS8 BIT; +}; +union un_pm14 { + unsigned char pm14; + __BITS8 BIT; +}; +union un_pm15 { + unsigned char pm15; + __BITS8 BIT; +}; +union un_adm0 { + unsigned char adm0; + __BITS8 BIT; +}; +union un_ads { + unsigned char ads; + __BITS8 BIT; +}; +union un_adm1 { + unsigned char adm1; + __BITS8 BIT; +}; +union un_krctl { + unsigned char krctl; + __BITS8 BIT; +}; +union un_krm0 { + unsigned char krm0; + __BITS8 BIT; +}; +union un_egp0 { + unsigned char egp0; + __BITS8 BIT; +}; +union un_egn0 { + unsigned char egn0; + __BITS8 BIT; +}; +union un_lcdm1 { + unsigned char lcdm1; + __BITS8 BIT; +}; +union un_mlcd { + unsigned char mlcd; + __BITS8 BIT; +}; +union un_iics0 { + unsigned char iics0; + __BITS8 BIT; +}; +union un_iicf0 { + unsigned char iicf0; + __BITS8 BIT; +}; +union un_dam { + unsigned char dam; + __BITS8 BIT; +}; +union un_rtcc0 { + unsigned char rtcc0; + __BITS8 BIT; +}; +union un_rtcc1 { + unsigned char rtcc1; + __BITS8 BIT; +}; +union un_csc { + unsigned char csc; + __BITS8 BIT; +}; +union un_ostc { + unsigned char ostc; + __BITS8 BIT; +}; +union un_ckc { + unsigned char ckc; + __BITS8 BIT; +}; +union un_cks0 { + unsigned char cks0; + __BITS8 BIT; +}; +union un_cks1 { + unsigned char cks1; + __BITS8 BIT; +}; +union un_lvim { + unsigned char lvim; + __BITS8 BIT; +}; +union un_lvis { + unsigned char lvis; + __BITS8 BIT; +}; +union un_if2 { + unsigned short if2; + __BITS16 BIT; +}; +union un_if2l { + unsigned char if2l; + __BITS8 BIT; +}; +union un_if2h { + unsigned char if2h; + __BITS8 BIT; +}; +union un_if3 { + unsigned short if3; + __BITS16 BIT; +}; +union un_if3l { + unsigned char if3l; + __BITS8 BIT; +}; +union un_mk2 { + unsigned short mk2; + __BITS16 BIT; +}; +union un_mk2l { + unsigned char mk2l; + __BITS8 BIT; +}; +union un_mk2h { + unsigned char mk2h; + __BITS8 BIT; +}; +union un_mk3 { + unsigned short mk3; + __BITS16 BIT; +}; +union un_mk3l { + unsigned char mk3l; + __BITS8 BIT; +}; +union un_pr02 { + unsigned short pr02; + __BITS16 BIT; +}; +union un_pr02l { + unsigned char pr02l; + __BITS8 BIT; +}; +union un_pr02h { + unsigned char pr02h; + __BITS8 BIT; +}; +union un_pr03 { + unsigned short pr03; + __BITS16 BIT; +}; +union un_pr03l { + unsigned char pr03l; + __BITS8 BIT; +}; +union un_pr12 { + unsigned short pr12; + __BITS16 BIT; +}; +union un_pr12l { + unsigned char pr12l; + __BITS8 BIT; +}; +union un_pr12h { + unsigned char pr12h; + __BITS8 BIT; +}; +union un_pr13 { + unsigned short pr13; + __BITS16 BIT; +}; +union un_pr13l { + unsigned char pr13l; + __BITS8 BIT; +}; +union un_if0 { + unsigned short if0; + __BITS16 BIT; +}; +union un_if0l { + unsigned char if0l; + __BITS8 BIT; +}; +union un_if0h { + unsigned char if0h; + __BITS8 BIT; +}; +union un_if1 { + unsigned short if1; + __BITS16 BIT; +}; +union un_if1l { + unsigned char if1l; + __BITS8 BIT; +}; +union un_if1h { + unsigned char if1h; + __BITS8 BIT; +}; +union un_mk0 { + unsigned short mk0; + __BITS16 BIT; +}; +union un_mk0l { + unsigned char mk0l; + __BITS8 BIT; +}; +union un_mk0h { + unsigned char mk0h; + __BITS8 BIT; +}; +union un_mk1 { + unsigned short mk1; + __BITS16 BIT; +}; +union un_mk1l { + unsigned char mk1l; + __BITS8 BIT; +}; +union un_mk1h { + unsigned char mk1h; + __BITS8 BIT; +}; +union un_pr00 { + unsigned short pr00; + __BITS16 BIT; +}; +union un_pr00l { + unsigned char pr00l; + __BITS8 BIT; +}; +union un_pr00h { + unsigned char pr00h; + __BITS8 BIT; +}; +union un_pr01 { + unsigned short pr01; + __BITS16 BIT; +}; +union un_pr01l { + unsigned char pr01l; + __BITS8 BIT; +}; +union un_pr01h { + unsigned char pr01h; + __BITS8 BIT; +}; +union un_pr10 { + unsigned short pr10; + __BITS16 BIT; +}; +union un_pr10l { + unsigned char pr10l; + __BITS8 BIT; +}; +union un_pr10h { + unsigned char pr10h; + __BITS8 BIT; +}; +union un_pr11 { + unsigned short pr11; + __BITS16 BIT; +}; +union un_pr11l { + unsigned char pr11l; + __BITS8 BIT; +}; +union un_pr11h { + unsigned char pr11h; + __BITS8 BIT; +}; +union un_pmc { + unsigned char pmc; + __BITS8 BIT; +}; + +#define P0 (*(volatile union un_p0 *)0xFFF00).p0 +#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT +#define P1 (*(volatile union un_p1 *)0xFFF01).p1 +#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT +#define P2 (*(volatile union un_p2 *)0xFFF02).p2 +#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT +#define P3 (*(volatile union un_p3 *)0xFFF03).p3 +#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT +#define P4 (*(volatile union un_p4 *)0xFFF04).p4 +#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT +#define P5 (*(volatile union un_p5 *)0xFFF05).p5 +#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT +#define P6 (*(volatile union un_p6 *)0xFFF06).p6 +#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT +#define P7 (*(volatile union un_p7 *)0xFFF07).p7 +#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT +#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 +#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT +#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 +#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT +#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 +#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT +#define P15 (*(volatile union un_p15 *)0xFFF0F).p15 +#define P15_bit (*(volatile union un_p15 *)0xFFF0F).BIT +#define SDR00 (*(volatile unsigned short *)0xFFF10) +#define SIO00 (*(volatile unsigned char *)0xFFF10) +#define TXD0 (*(volatile unsigned char *)0xFFF10) +#define SDR01 (*(volatile unsigned short *)0xFFF12) +#define RXD0 (*(volatile unsigned char *)0xFFF12) +#define SDR12 (*(volatile unsigned short *)0xFFF14) +#define SIO30 (*(volatile unsigned char *)0xFFF14) +#define TXD3 (*(volatile unsigned char *)0xFFF14) +#define SDR13 (*(volatile unsigned short *)0xFFF16) +#define RXD3 (*(volatile unsigned char *)0xFFF16) +#define TDR00 (*(volatile unsigned short *)0xFFF18) +#define TDR01 (*(volatile unsigned short *)0xFFF1A) +#define TDR01L (*(volatile unsigned char *)0xFFF1A) +#define TDR01H (*(volatile unsigned char *)0xFFF1B) +#define ADCR (*(volatile unsigned short *)0xFFF1E) +#define ADCRH (*(volatile unsigned char *)0xFFF1F) +#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 +#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT +#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 +#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT +#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 +#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT +#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 +#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT +#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 +#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT +#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 +#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT +#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 +#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT +#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 +#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT +#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 +#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT +#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 +#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT +#define PM15 (*(volatile union un_pm15 *)0xFFF2F).pm15 +#define PM15_bit (*(volatile union un_pm15 *)0xFFF2F).BIT +#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 +#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT +#define ADS (*(volatile union un_ads *)0xFFF31).ads +#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT +#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 +#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT +#define KRCTL (*(volatile union un_krctl *)0xFFF34).krctl +#define KRCTL_bit (*(volatile union un_krctl *)0xFFF34).BIT +#define KRF (*(volatile unsigned char *)0xFFF35) +#define KRM0 (*(volatile union un_krm0 *)0xFFF37).krm0 +#define KRM0_bit (*(volatile union un_krm0 *)0xFFF37).BIT +#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 +#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT +#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 +#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT +#define LCDM0 (*(volatile unsigned char *)0xFFF40) +#define LCDM1 (*(volatile union un_lcdm1 *)0xFFF41).lcdm1 +#define LCDM1_bit (*(volatile union un_lcdm1 *)0xFFF41).BIT +#define LCDC0 (*(volatile unsigned char *)0xFFF42) +#define VLCD (*(volatile unsigned char *)0xFFF43) +#define SDR02 (*(volatile unsigned short *)0xFFF44) +#define SIO10 (*(volatile unsigned char *)0xFFF44) +#define TXD1 (*(volatile unsigned char *)0xFFF44) +#define SDR03 (*(volatile unsigned short *)0xFFF46) +#define RXD1 (*(volatile unsigned char *)0xFFF46) +#define SDR10 (*(volatile unsigned short *)0xFFF48) +#define SIO20 (*(volatile unsigned char *)0xFFF48) +#define TXD2 (*(volatile unsigned char *)0xFFF48) +#define SDR11 (*(volatile unsigned short *)0xFFF4A) +#define RXD2 (*(volatile unsigned char *)0xFFF4A) +#define MLCD (*(volatile union un_mlcd *)0xFFF4C).mlcd +#define MLCD_bit (*(volatile union un_mlcd *)0xFFF4C).BIT +#define IICA0 (*(volatile unsigned char *)0xFFF50) +#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 +#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT +#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 +#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT +#define TDR02 (*(volatile unsigned short *)0xFFF64) +#define TDR03 (*(volatile unsigned short *)0xFFF66) +#define TDR03L (*(volatile unsigned char *)0xFFF66) +#define TDR03H (*(volatile unsigned char *)0xFFF67) +#define TDR04 (*(volatile unsigned short *)0xFFF68) +#define TDR05 (*(volatile unsigned short *)0xFFF6A) +#define TDR06 (*(volatile unsigned short *)0xFFF6C) +#define TDR07 (*(volatile unsigned short *)0xFFF6E) +#define DACS0 (*(volatile unsigned char *)0xFFF74) +#define DACS1 (*(volatile unsigned char *)0xFFF75) +#define DAM (*(volatile union un_dam *)0xFFF76).dam +#define DAM_bit (*(volatile union un_dam *)0xFFF76).BIT +#define ITMC (*(volatile unsigned short *)0xFFF90) +#define SEC (*(volatile unsigned char *)0xFFF92) +#define MIN (*(volatile unsigned char *)0xFFF93) +#define HOUR (*(volatile unsigned char *)0xFFF94) +#define WEEK (*(volatile unsigned char *)0xFFF95) +#define DAY (*(volatile unsigned char *)0xFFF96) +#define MONTH (*(volatile unsigned char *)0xFFF97) +#define YEAR (*(volatile unsigned char *)0xFFF98) +#define ALARMWM (*(volatile unsigned char *)0xFFF9A) +#define ALARMWH (*(volatile unsigned char *)0xFFF9B) +#define ALARMWW (*(volatile unsigned char *)0xFFF9C) +#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 +#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT +#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 +#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT +#define CMC (*(volatile unsigned char *)0xFFFA0) +#define CSC (*(volatile union un_csc *)0xFFFA1).csc +#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT +#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc +#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT +#define OSTS (*(volatile unsigned char *)0xFFFA3) +#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc +#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT +#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 +#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT +#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 +#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT +#define RESF (*(volatile unsigned char *)0xFFFA8) +#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim +#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT +#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis +#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT +#define WDTE (*(volatile unsigned char *)0xFFFAB) +#define CRCIN (*(volatile unsigned char *)0xFFFAC) +#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 +#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT +#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l +#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT +#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h +#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT +#define IF3 (*(volatile union un_if3 *)0xFFFD2).if3 +#define IF3_bit (*(volatile union un_if3 *)0xFFFD2).BIT +#define IF3L (*(volatile union un_if3l *)0xFFFD2).if3l +#define IF3L_bit (*(volatile union un_if3l *)0xFFFD2).BIT +#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 +#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT +#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l +#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT +#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h +#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT +#define MK3 (*(volatile union un_mk3 *)0xFFFD6).mk3 +#define MK3_bit (*(volatile union un_mk3 *)0xFFFD6).BIT +#define MK3L (*(volatile union un_mk3l *)0xFFFD6).mk3l +#define MK3L_bit (*(volatile union un_mk3l *)0xFFFD6).BIT +#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 +#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT +#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l +#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT +#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h +#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT +#define PR03 (*(volatile union un_pr03 *)0xFFFDA).pr03 +#define PR03_bit (*(volatile union un_pr03 *)0xFFFDA).BIT +#define PR03L (*(volatile union un_pr03l *)0xFFFDA).pr03l +#define PR03L_bit (*(volatile union un_pr03l *)0xFFFDA).BIT +#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 +#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT +#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l +#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT +#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h +#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT +#define PR13 (*(volatile union un_pr13 *)0xFFFDE).pr13 +#define PR13_bit (*(volatile union un_pr13 *)0xFFFDE).BIT +#define PR13L (*(volatile union un_pr13l *)0xFFFDE).pr13l +#define PR13L_bit (*(volatile union un_pr13l *)0xFFFDE).BIT +#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 +#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT +#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l +#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT +#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h +#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT +#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 +#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT +#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l +#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT +#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h +#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT +#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 +#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT +#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l +#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT +#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h +#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT +#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 +#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT +#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l +#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT +#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h +#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT +#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 +#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT +#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l +#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT +#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h +#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT +#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 +#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT +#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l +#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT +#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h +#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT +#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 +#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT +#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l +#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT +#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h +#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT +#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 +#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT +#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l +#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT +#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h +#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT +#define MACRL (*(volatile unsigned short *)0xFFFF0) +#define MACRH (*(volatile unsigned short *)0xFFFF2) +#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc +#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT + +/* + Sfr bits + */ +#define ADCE ADM0_bit.no0 +#define ADCS ADM0_bit.no7 +#define LCDVLM LCDM1_bit.no0 +#define LCDSEL LCDM1_bit.no3 +#define BLON LCDM1_bit.no4 +#define VLCON LCDM1_bit.no5 +#define SCOC LCDM1_bit.no6 +#define LCDON LCDM1_bit.no7 +#define OPTCKE MLCD_bit.no4 +#define COMEXP MLCD_bit.no6 +#define LCTZS MLCD_bit.no7 +#define SPD0 IICS0_bit.no0 +#define STD0 IICS0_bit.no1 +#define ACKD0 IICS0_bit.no2 +#define TRC0 IICS0_bit.no3 +#define COI0 IICS0_bit.no4 +#define EXC0 IICS0_bit.no5 +#define ALD0 IICS0_bit.no6 +#define MSTS0 IICS0_bit.no7 +#define IICRSV0 IICF0_bit.no0 +#define STCEN0 IICF0_bit.no1 +#define IICBSY0 IICF0_bit.no6 +#define STCF0 IICF0_bit.no7 +#define DACE0 DAM_bit.no4 +#define DACE1 DAM_bit.no5 +#define CLOE1 RTCC0_bit.no5 +#define RTCE RTCC0_bit.no7 +#define RWAIT RTCC1_bit.no0 +#define RWST RTCC1_bit.no1 +#define RIFG RTCC1_bit.no3 +#define WAFG RTCC1_bit.no4 +#define RITE RTCC1_bit.no5 +#define WALIE RTCC1_bit.no6 +#define WALE RTCC1_bit.no7 +#define HIOSTOP CSC_bit.no0 +#define XTSTOP CSC_bit.no6 +#define MSTOP CSC_bit.no7 +#define SDIV CKC_bit.no3 +#define MCM0 CKC_bit.no4 +#define MCS CKC_bit.no5 +#define CSS CKC_bit.no6 +#define CLS CKC_bit.no7 +#define PCLOE0 CKS0_bit.no7 +#define PCLOE1 CKS1_bit.no7 +#define LVIF LVIM_bit.no0 +#define LVIOMSK LVIM_bit.no1 +#define LVISEN LVIM_bit.no7 +#define LVILV LVIS_bit.no0 +#define LVIMD LVIS_bit.no7 +#define TMIF04 IF2_bit.no1 +#define TMIF05 IF2_bit.no2 +#define PIF6 IF2_bit.no3 +#define PIF7 IF2_bit.no4 +#define LCDIF0 IF2_bit.no5 +#define CMPIF0 IF2_bit.no6 +#define CMPIF1 IF2_bit.no7 +#define TMIF06 IF2H_bit.no0 +#define TMIF07 IF2H_bit.no1 +#define USBIF IF2H_bit.no2 +#define RSUIF IF2H_bit.no3 +#define SREIF3 IF2H_bit.no4 +#define TKB2IF0 IF2H_bit.no5 +#define TKB2IF1 IF2H_bit.no6 +#define FLIF IF2H_bit.no7 +#define TKB2IF2 IF3_bit.no0 +#define FIFOIF0 IF3_bit.no1 +#define FIFOIF1 IF3_bit.no2 +#define TMMK04 MK2_bit.no1 +#define TMMK05 MK2_bit.no2 +#define PMK6 MK2_bit.no3 +#define PMK7 MK2_bit.no4 +#define LCDMK0 MK2_bit.no5 +#define CMPMK0 MK2_bit.no6 +#define CMPMK1 MK2_bit.no7 +#define TMMK06 MK2H_bit.no0 +#define TMMK07 MK2H_bit.no1 +#define USBMK MK2H_bit.no2 +#define RSUMK MK2H_bit.no3 +#define SREMK3 MK2H_bit.no4 +#define TKB2MK0 MK2H_bit.no5 +#define TKB2MK1 MK2H_bit.no6 +#define FLMK MK2H_bit.no7 +#define TKB2MK2 MK3_bit.no0 +#define FIFOMK0 MK3_bit.no1 +#define FIFOMK1 MK3_bit.no2 +#define TMPR004 PR02_bit.no1 +#define TMPR005 PR02_bit.no2 +#define PPR06 PR02_bit.no3 +#define PPR07 PR02_bit.no4 +#define LCDPR00 PR02_bit.no5 +#define CMPPR00 PR02_bit.no6 +#define CMPPR01 PR02_bit.no7 +#define TMPR006 PR02H_bit.no0 +#define TMPR007 PR02H_bit.no1 +#define USBPR0 PR02H_bit.no2 +#define RSUPR0 PR02H_bit.no3 +#define SREPR03 PR02H_bit.no4 +#define TKB2PR00 PR02H_bit.no5 +#define TKB2PR01 PR02H_bit.no6 +#define FLPR0 PR02H_bit.no7 +#define TKB2PR02 PR03_bit.no0 +#define FIFOPR00 PR03_bit.no1 +#define FIFOPR01 PR03_bit.no2 +#define TMPR104 PR12_bit.no1 +#define TMPR105 PR12_bit.no2 +#define PPR16 PR12_bit.no3 +#define PPR17 PR12_bit.no4 +#define LCDPR10 PR12_bit.no5 +#define CMPPR10 PR12_bit.no6 +#define CMPPR11 PR12_bit.no7 +#define TMPR106 PR12H_bit.no0 +#define TMPR107 PR12H_bit.no1 +#define USBPR1 PR12H_bit.no2 +#define RSUPR1 PR12H_bit.no3 +#define SREPR13 PR12H_bit.no4 +#define TKB2PR10 PR12H_bit.no5 +#define TKB2PR11 PR12H_bit.no6 +#define FLPR1 PR12H_bit.no7 +#define TKB2PR12 PR13_bit.no0 +#define FIFOPR10 PR13_bit.no1 +#define FIFOPR11 PR13_bit.no2 +#define WDTIIF IF0_bit.no0 +#define LVIIF IF0_bit.no1 +#define PIF0 IF0_bit.no2 +#define PIF1 IF0_bit.no3 +#define PIF2 IF0_bit.no4 +#define PIF3 IF0_bit.no5 +#define PIF4 IF0_bit.no6 +#define PIF5 IF0_bit.no7 +#define CSIIF20 IF0H_bit.no0 +#define IICIF20 IF0H_bit.no0 +#define STIF2 IF0H_bit.no0 +#define SRIF2 IF0H_bit.no1 +#define SREIF2 IF0H_bit.no2 +#define CSIIF00 IF0H_bit.no5 +#define IICIF00 IF0H_bit.no5 +#define STIF0 IF0H_bit.no5 +#define TMIF00 IF0H_bit.no6 +#define SRIF0 IF0H_bit.no7 +#define SREIF0 IF1_bit.no0 +#define TMIF01H IF1_bit.no0 +#define CSIIF10 IF1_bit.no1 +#define IICIF10 IF1_bit.no1 +#define STIF1 IF1_bit.no1 +#define SRIF1 IF1_bit.no2 +#define SREIF1 IF1_bit.no3 +#define TMIF03H IF1_bit.no3 +#define IICAIF0 IF1_bit.no4 +#define RTITIF IF1_bit.no5 +#define TMIF01 IF1_bit.no7 +#define TMIF02 IF1H_bit.no0 +#define TMIF03 IF1H_bit.no1 +#define ADIF IF1H_bit.no2 +#define RTCIF IF1H_bit.no3 +#define TMKAIF IF1H_bit.no4 +#define KRIF IF1H_bit.no5 +#define CSIIF30 IF1H_bit.no6 +#define IICIF30 IF1H_bit.no6 +#define STIF3 IF1H_bit.no6 +#define SRIF3 IF1H_bit.no7 +#define WDTIMK MK0_bit.no0 +#define LVIMK MK0_bit.no1 +#define PMK0 MK0_bit.no2 +#define PMK1 MK0_bit.no3 +#define PMK2 MK0_bit.no4 +#define PMK3 MK0_bit.no5 +#define PMK4 MK0_bit.no6 +#define PMK5 MK0_bit.no7 +#define CSIMK20 MK0H_bit.no0 +#define IICMK20 MK0H_bit.no0 +#define STMK2 MK0H_bit.no0 +#define SRMK2 MK0H_bit.no1 +#define SREMK2 MK0H_bit.no2 +#define CSIMK00 MK0H_bit.no5 +#define IICMK00 MK0H_bit.no5 +#define STMK0 MK0H_bit.no5 +#define TMMK00 MK0H_bit.no6 +#define SRMK0 MK0H_bit.no7 +#define SREMK0 MK1_bit.no0 +#define TMMK01H MK1_bit.no0 +#define CSIMK10 MK1_bit.no1 +#define IICMK10 MK1_bit.no1 +#define STMK1 MK1_bit.no1 +#define SRMK1 MK1_bit.no2 +#define SREMK1 MK1_bit.no3 +#define TMMK03H MK1_bit.no3 +#define IICAMK0 MK1_bit.no4 +#define RTITMK MK1_bit.no5 +#define TMMK01 MK1_bit.no7 +#define TMMK02 MK1H_bit.no0 +#define TMMK03 MK1H_bit.no1 +#define ADMK MK1H_bit.no2 +#define RTCMK MK1H_bit.no3 +#define TMKAMK MK1H_bit.no4 +#define KRMK MK1H_bit.no5 +#define CSIMK30 MK1H_bit.no6 +#define IICMK30 MK1H_bit.no6 +#define STMK3 MK1H_bit.no6 +#define SRMK3 MK1H_bit.no7 +#define WDTIPR0 PR00_bit.no0 +#define LVIPR0 PR00_bit.no1 +#define PPR00 PR00_bit.no2 +#define PPR01 PR00_bit.no3 +#define PPR02 PR00_bit.no4 +#define PPR03 PR00_bit.no5 +#define PPR04 PR00_bit.no6 +#define PPR05 PR00_bit.no7 +#define CSIPR020 PR00H_bit.no0 +#define IICPR020 PR00H_bit.no0 +#define STPR02 PR00H_bit.no0 +#define SRPR02 PR00H_bit.no1 +#define SREPR02 PR00H_bit.no2 +#define CSIPR000 PR00H_bit.no5 +#define IICPR000 PR00H_bit.no5 +#define STPR00 PR00H_bit.no5 +#define TMPR000 PR00H_bit.no6 +#define SRPR00 PR00H_bit.no7 +#define SREPR00 PR01_bit.no0 +#define TMPR001H PR01_bit.no0 +#define CSIPR010 PR01_bit.no1 +#define IICPR010 PR01_bit.no1 +#define STPR01 PR01_bit.no1 +#define SRPR01 PR01_bit.no2 +#define SREPR01 PR01_bit.no3 +#define TMPR003H PR01_bit.no3 +#define IICAPR00 PR01_bit.no4 +#define RTITPR0 PR01_bit.no5 +#define TMPR001 PR01_bit.no7 +#define TMPR002 PR01H_bit.no0 +#define TMPR003 PR01H_bit.no1 +#define ADPR0 PR01H_bit.no2 +#define RTCPR0 PR01H_bit.no3 +#define TMKAPR0 PR01H_bit.no4 +#define KRPR0 PR01H_bit.no5 +#define CSIPR030 PR01H_bit.no6 +#define IICPR030 PR01H_bit.no6 +#define STPR03 PR01H_bit.no6 +#define SRPR03 PR01H_bit.no7 +#define WDTIPR1 PR10_bit.no0 +#define LVIPR1 PR10_bit.no1 +#define PPR10 PR10_bit.no2 +#define PPR11 PR10_bit.no3 +#define PPR12 PR10_bit.no4 +#define PPR13 PR10_bit.no5 +#define PPR14 PR10_bit.no6 +#define PPR15 PR10_bit.no7 +#define CSIPR120 PR10H_bit.no0 +#define IICPR120 PR10H_bit.no0 +#define STPR12 PR10H_bit.no0 +#define SRPR12 PR10H_bit.no1 +#define SREPR12 PR10H_bit.no2 +#define CSIPR100 PR10H_bit.no5 +#define IICPR100 PR10H_bit.no5 +#define STPR10 PR10H_bit.no5 +#define TMPR100 PR10H_bit.no6 +#define SRPR10 PR10H_bit.no7 +#define SREPR10 PR11_bit.no0 +#define TMPR101H PR11_bit.no0 +#define CSIPR110 PR11_bit.no1 +#define IICPR110 PR11_bit.no1 +#define STPR11 PR11_bit.no1 +#define SRPR11 PR11_bit.no2 +#define SREPR11 PR11_bit.no3 +#define TMPR103H PR11_bit.no3 +#define IICAPR10 PR11_bit.no4 +#define RTITPR1 PR11_bit.no5 +#define TMPR101 PR11_bit.no7 +#define TMPR102 PR11H_bit.no0 +#define TMPR103 PR11H_bit.no1 +#define ADPR1 PR11H_bit.no2 +#define RTCPR1 PR11H_bit.no3 +#define TMKAPR1 PR11H_bit.no4 +#define KRPR1 PR11H_bit.no5 +#define CSIPR130 PR11H_bit.no6 +#define IICPR130 PR11H_bit.no6 +#define STPR13 PR11H_bit.no6 +#define SRPR13 PR11H_bit.no7 +#define MAA PMC_bit.no0 + +/* + Interrupt vector addresses + */ +#define RST_vect (0x0) +#define INTDBG_vect (0x2) +#define INTWDTI_vect (0x4) +#define INTLVI_vect (0x6) +#define INTP0_vect (0x8) +#define INTP1_vect (0xA) +#define INTP2_vect (0xC) +#define INTP3_vect (0xE) +#define INTP4_vect (0x10) +#define INTP5_vect (0x12) +#define INTCSI20_vect (0x14) +#define INTIIC20_vect (0x14) +#define INTST2_vect (0x14) +#define INTSR2_vect (0x16) +#define INTSRE2_vect (0x18) +#define INTCSI00_vect (0x1E) +#define INTIIC00_vect (0x1E) +#define INTST0_vect (0x1E) +#define INTTM00_vect (0x20) +#define INTSR0_vect (0x22) +#define INTSRE0_vect (0x24) +#define INTTM01H_vect (0x24) +#define INTCSI10_vect (0x26) +#define INTIIC10_vect (0x26) +#define INTST1_vect (0x26) +#define INTSR1_vect (0x28) +#define INTSRE1_vect (0x2A) +#define INTTM03H_vect (0x2A) +#define INTIICA0_vect (0x2C) +#define INTRTIT_vect (0x2E) +#define INTTM01_vect (0x32) +#define INTTM02_vect (0x34) +#define INTTM03_vect (0x36) +#define INTAD_vect (0x38) +#define INTRTC_vect (0x3A) +#define INTIT_vect (0x3C) +#define INTKR_vect (0x3E) +#define INTCSI30_vect (0x40) +#define INTIIC30_vect (0x40) +#define INTST3_vect (0x40) +#define INTSR3_vect (0x42) +#define INTTM04_vect (0x46) +#define INTTM05_vect (0x48) +#define INTP6_vect (0x4A) +#define INTP7_vect (0x4C) +#define INTLCD0_vect (0x4E) +#define INTCMP0_vect (0x50) +#define INTCMP1_vect (0x52) +#define INTTM06_vect (0x54) +#define INTTM07_vect (0x56) +#define INTUSB_vect (0x58) +#define INTRSUM_vect (0x5A) +#define INTSRE3_vect (0x5C) +#define INTTKB20_vect (0x5E) +#define INTTKB21_vect (0x60) +#define INTFL_vect (0x62) +#define INTTKB22_vect (0x64) +#define DTC0FIFO_vect (0x66) +#define DTC1FIFO_vect (0x68) +#define BRK_I_vect (0x7E) +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L1C_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L1C_ext.h new file mode 100644 index 000000000..9460259b2 --- /dev/null +++ b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine/iodefine_RL78L1C_ext.h @@ -0,0 +1,1178 @@ +/************************************************************************/ +/* Header file generated from device file: */ +/* DR5F110PJ.DVF */ +/* Copyright(C) 2013 Renesas */ +/* File Version E1.00h */ +/* Tool Version 2.5.211 */ +/* Date Generated 07/05/2013 */ +/************************************************************************/ + +#ifndef __INTRINSIC_FUNCTIONS +#define __INTRINSIC_FUNCTIONS + +#define DI() asm("di") +#define EI() asm("ei") +#define HALT() asm("halt") +#define NOP() asm("nop") +#define STOP() asm("stop") + +#endif + +#ifndef __IOREG_BIT_STRUCTURES +#define __IOREG_BIT_STRUCTURES +typedef struct { + unsigned char no0 :1; + unsigned char no1 :1; + unsigned char no2 :1; + unsigned char no3 :1; + unsigned char no4 :1; + unsigned char no5 :1; + unsigned char no6 :1; + unsigned char no7 :1; +} __BITS8; + +typedef struct { + unsigned short no0 :1; + unsigned short no1 :1; + unsigned short no2 :1; + unsigned short no3 :1; + unsigned short no4 :1; + unsigned short no5 :1; + unsigned short no6 :1; + unsigned short no7 :1; + unsigned short no8 :1; + unsigned short no9 :1; + unsigned short no10 :1; + unsigned short no11 :1; + unsigned short no12 :1; + unsigned short no13 :1; + unsigned short no14 :1; + unsigned short no15 :1; +} __BITS16; + +#endif + +#ifndef IODEFINE_EXT_H +#define IODEFINE_EXT_H + +/* + IO Registers + */ +union un_adm2 { + unsigned char adm2; + __BITS8 BIT; +}; +union un_pu0 { + unsigned char pu0; + __BITS8 BIT; +}; +union un_pu1 { + unsigned char pu1; + __BITS8 BIT; +}; +union un_pu2 { + unsigned char pu2; + __BITS8 BIT; +}; +union un_pu3 { + unsigned char pu3; + __BITS8 BIT; +}; +union un_pu4 { + unsigned char pu4; + __BITS8 BIT; +}; +union un_pu5 { + unsigned char pu5; + __BITS8 BIT; +}; +union un_pu7 { + unsigned char pu7; + __BITS8 BIT; +}; +union un_pu12 { + unsigned char pu12; + __BITS8 BIT; +}; +union un_pu14 { + unsigned char pu14; + __BITS8 BIT; +}; +union un_pim0 { + unsigned char pim0; + __BITS8 BIT; +}; +union un_pim1 { + unsigned char pim1; + __BITS8 BIT; +}; +union un_pim2 { + unsigned char pim2; + __BITS8 BIT; +}; +union un_pim3 { + unsigned char pim3; + __BITS8 BIT; +}; +union un_pim4 { + unsigned char pim4; + __BITS8 BIT; +}; +union un_pom0 { + unsigned char pom0; + __BITS8 BIT; +}; +union un_pom1 { + unsigned char pom1; + __BITS8 BIT; +}; +union un_pom2 { + unsigned char pom2; + __BITS8 BIT; +}; +union un_pom3 { + unsigned char pom3; + __BITS8 BIT; +}; +union un_pom4 { + unsigned char pom4; + __BITS8 BIT; +}; +union un_pmc2 { + unsigned char pmc2; + __BITS8 BIT; +}; +union un_pmc4 { + unsigned char pmc4; + __BITS8 BIT; +}; +union un_pmc14 { + unsigned char pmc14; + __BITS8 BIT; +}; +union un_nfen0 { + unsigned char nfen0; + __BITS8 BIT; +}; +union un_nfen1 { + unsigned char nfen1; + __BITS8 BIT; +}; +union un_isc { + unsigned char isc; + __BITS8 BIT; +}; +union un_tos { + unsigned char tos; + __BITS8 BIT; +}; +union un_per1 { + unsigned char per1; + __BITS8 BIT; +}; +union un_pms { + unsigned char pms; + __BITS8 BIT; +}; +union un_dflctl { + unsigned char dflctl; + __BITS8 BIT; +}; +union un_per0 { + unsigned char per0; + __BITS8 BIT; +}; +union un_rpectl { + unsigned char rpectl; + __BITS8 BIT; +}; +union un_per2 { + unsigned char per2; + __BITS8 BIT; +}; +union un_se0l { + unsigned char se0l; + __BITS8 BIT; +}; +union un_ss0l { + unsigned char ss0l; + __BITS8 BIT; +}; +union un_st0l { + unsigned char st0l; + __BITS8 BIT; +}; +union un_soe0l { + unsigned char soe0l; + __BITS8 BIT; +}; +union un_se1l { + unsigned char se1l; + __BITS8 BIT; +}; +union un_ss1l { + unsigned char ss1l; + __BITS8 BIT; +}; +union un_st1l { + unsigned char st1l; + __BITS8 BIT; +}; +union un_soe1l { + unsigned char soe1l; + __BITS8 BIT; +}; +union un_te0l { + unsigned char te0l; + __BITS8 BIT; +}; +union un_ts0l { + unsigned char ts0l; + __BITS8 BIT; +}; +union un_tt0l { + unsigned char tt0l; + __BITS8 BIT; +}; +union un_toe0l { + unsigned char toe0l; + __BITS8 BIT; +}; +union un_iicctl00 { + unsigned char iicctl00; + __BITS8 BIT; +}; +union un_iicctl01 { + unsigned char iicctl01; + __BITS8 BIT; +}; +union un_tkbtrg1 { + unsigned char tkbtrg1; + __BITS8 BIT; +}; +union un_tkbflg1 { + unsigned char tkbflg1; + __BITS8 BIT; +}; +union un_tkbioc10 { + unsigned char tkbioc10; + __BITS8 BIT; +}; +union un_tkbclr1 { + unsigned char tkbclr1; + __BITS8 BIT; +}; +union un_tkbioc11 { + unsigned char tkbioc11; + __BITS8 BIT; +}; +union un_tkbctl11 { + unsigned char tkbctl11; + __BITS8 BIT; +}; +union un_tkbpahfs1 { + unsigned char tkbpahfs1; + __BITS8 BIT; +}; +union un_tkbpahft1 { + unsigned char tkbpahft1; + __BITS8 BIT; +}; +union un_tkbpaflg1 { + unsigned char tkbpaflg1; + __BITS8 BIT; +}; +union un_tkbpactl12 { + unsigned char tkbpactl12; + __BITS8 BIT; +}; +union un_tkbtrg2 { + unsigned char tkbtrg2; + __BITS8 BIT; +}; +union un_tkbflg2 { + unsigned char tkbflg2; + __BITS8 BIT; +}; +union un_tkbioc20 { + unsigned char tkbioc20; + __BITS8 BIT; +}; +union un_tkbclr2 { + unsigned char tkbclr2; + __BITS8 BIT; +}; +union un_tkbioc21 { + unsigned char tkbioc21; + __BITS8 BIT; +}; +union un_tkbctl21 { + unsigned char tkbctl21; + __BITS8 BIT; +}; +union un_tkbpahfs2 { + unsigned char tkbpahfs2; + __BITS8 BIT; +}; +union un_tkbpahft2 { + unsigned char tkbpahft2; + __BITS8 BIT; +}; +union un_tkbpaflg2 { + unsigned char tkbpaflg2; + __BITS8 BIT; +}; +union un_tkbpactl22 { + unsigned char tkbpactl22; + __BITS8 BIT; +}; +union un_dscctl { + unsigned char dscctl; + __BITS8 BIT; +}; +union un_mckc { + unsigned char mckc; + __BITS8 BIT; +}; +union un_dtcen0 { + unsigned char dtcen0; + __BITS8 BIT; +}; +union un_dtcen1 { + unsigned char dtcen1; + __BITS8 BIT; +}; +union un_dtcen2 { + unsigned char dtcen2; + __BITS8 BIT; +}; +union un_dtcen3 { + unsigned char dtcen3; + __BITS8 BIT; +}; +union un_dtcen4 { + unsigned char dtcen4; + __BITS8 BIT; +}; +union un_crc0ctl { + unsigned char crc0ctl; + __BITS8 BIT; +}; +union un_pfseg0 { + unsigned char pfseg0; + __BITS8 BIT; +}; +union un_pfseg1 { + unsigned char pfseg1; + __BITS8 BIT; +}; +union un_pfseg2 { + unsigned char pfseg2; + __BITS8 BIT; +}; +union un_pfseg3 { + unsigned char pfseg3; + __BITS8 BIT; +}; +union un_pfseg4 { + unsigned char pfseg4; + __BITS8 BIT; +}; +union un_pfseg5 { + unsigned char pfseg5; + __BITS8 BIT; +}; +union un_pfseg6 { + unsigned char pfseg6; + __BITS8 BIT; +}; +union un_isclcd { + unsigned char isclcd; + __BITS8 BIT; +}; +union un_compmdr { + unsigned char compmdr; + __BITS8 BIT; +}; +union un_compfir { + unsigned char compfir; + __BITS8 BIT; +}; +union un_compocr { + unsigned char compocr; + __BITS8 BIT; +}; +union un_tkbtrg0 { + unsigned char tkbtrg0; + __BITS8 BIT; +}; +union un_tkbflg0 { + unsigned char tkbflg0; + __BITS8 BIT; +}; +union un_tkbioc00 { + unsigned char tkbioc00; + __BITS8 BIT; +}; +union un_tkbclr0 { + unsigned char tkbclr0; + __BITS8 BIT; +}; +union un_tkbioc01 { + unsigned char tkbioc01; + __BITS8 BIT; +}; +union un_tkbctl01 { + unsigned char tkbctl01; + __BITS8 BIT; +}; +union un_tkbpahfs0 { + unsigned char tkbpahfs0; + __BITS8 BIT; +}; +union un_tkbpahft0 { + unsigned char tkbpahft0; + __BITS8 BIT; +}; +union un_tkbpaflg0 { + unsigned char tkbpaflg0; + __BITS8 BIT; +}; +union un_tkbpactl02 { + unsigned char tkbpactl02; + __BITS8 BIT; +}; + +#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 +#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT +#define ADUL (*(volatile unsigned char *)0xF0011) +#define ADLL (*(volatile unsigned char *)0xF0012) +#define ADTES (*(volatile unsigned char *)0xF0013) +#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 +#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT +#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 +#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT +#define PU2 (*(volatile union un_pu2 *)0xF0032).pu2 +#define PU2_bit (*(volatile union un_pu2 *)0xF0032).BIT +#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 +#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT +#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 +#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT +#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 +#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT +#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 +#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT +#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 +#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT +#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 +#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT +#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 +#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT +#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 +#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT +#define PIM2 (*(volatile union un_pim2 *)0xF0042).pim2 +#define PIM2_bit (*(volatile union un_pim2 *)0xF0042).BIT +#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 +#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT +#define PIM4 (*(volatile union un_pim4 *)0xF0044).pim4 +#define PIM4_bit (*(volatile union un_pim4 *)0xF0044).BIT +#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 +#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT +#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 +#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT +#define POM2 (*(volatile union un_pom2 *)0xF0052).pom2 +#define POM2_bit (*(volatile union un_pom2 *)0xF0052).BIT +#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 +#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT +#define POM4 (*(volatile union un_pom4 *)0xF0054).pom4 +#define POM4_bit (*(volatile union un_pom4 *)0xF0054).BIT +#define PMC2 (*(volatile union un_pmc2 *)0xF0062).pmc2 +#define PMC2_bit (*(volatile union un_pmc2 *)0xF0062).BIT +#define PMC4 (*(volatile union un_pmc4 *)0xF0064).pmc4 +#define PMC4_bit (*(volatile union un_pmc4 *)0xF0064).BIT +#define PMC14 (*(volatile union un_pmc14 *)0xF006E).pmc14 +#define PMC14_bit (*(volatile union un_pmc14 *)0xF006E).BIT +#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 +#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT +#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 +#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT +#define ISC (*(volatile union un_isc *)0xF0073).isc +#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT +#define TIS0 (*(volatile unsigned char *)0xF0074) +#define ADPC (*(volatile unsigned char *)0xF0076) +#define PIOR (*(volatile unsigned char *)0xF0077) +#define IAWCTL (*(volatile unsigned char *)0xF0078) +#define TOS (*(volatile union un_tos *)0xF0079).tos +#define TOS_bit (*(volatile union un_tos *)0xF0079).BIT +#define PER1 (*(volatile union un_per1 *)0xF007A).per1 +#define PER1_bit (*(volatile union un_per1 *)0xF007A).BIT +#define PMS (*(volatile union un_pms *)0xF007B).pms +#define PMS_bit (*(volatile union un_pms *)0xF007B).BIT +#define GAIDIS (*(volatile unsigned char *)0xF007C) +#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl +#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT +#define HOCODIV (*(volatile unsigned char *)0xF00A8) +#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 +#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT +#define OSMC (*(volatile unsigned char *)0xF00F3) +#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl +#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT +#define PORSR (*(volatile unsigned char *)0xF00F9) +#define PER2 (*(volatile union un_per2 *)0xF00FD).per2 +#define PER2_bit (*(volatile union un_per2 *)0xF00FD).BIT +#define BCDADJ (*(volatile unsigned char *)0xF00FE) +#define SSR00 (*(volatile unsigned short *)0xF0100) +#define SSR00L (*(volatile unsigned char *)0xF0100) +#define SSR01 (*(volatile unsigned short *)0xF0102) +#define SSR01L (*(volatile unsigned char *)0xF0102) +#define SSR02 (*(volatile unsigned short *)0xF0104) +#define SSR02L (*(volatile unsigned char *)0xF0104) +#define SSR03 (*(volatile unsigned short *)0xF0106) +#define SSR03L (*(volatile unsigned char *)0xF0106) +#define SIR00 (*(volatile unsigned short *)0xF0108) +#define SIR00L (*(volatile unsigned char *)0xF0108) +#define SIR01 (*(volatile unsigned short *)0xF010A) +#define SIR01L (*(volatile unsigned char *)0xF010A) +#define SIR02 (*(volatile unsigned short *)0xF010C) +#define SIR02L (*(volatile unsigned char *)0xF010C) +#define SIR03 (*(volatile unsigned short *)0xF010E) +#define SIR03L (*(volatile unsigned char *)0xF010E) +#define SMR00 (*(volatile unsigned short *)0xF0110) +#define SMR01 (*(volatile unsigned short *)0xF0112) +#define SMR02 (*(volatile unsigned short *)0xF0114) +#define SMR03 (*(volatile unsigned short *)0xF0116) +#define SCR00 (*(volatile unsigned short *)0xF0118) +#define SCR01 (*(volatile unsigned short *)0xF011A) +#define SCR02 (*(volatile unsigned short *)0xF011C) +#define SCR03 (*(volatile unsigned short *)0xF011E) +#define SE0 (*(volatile unsigned short *)0xF0120) +#define SE0L (*(volatile union un_se0l *)0xF0120).se0l +#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT +#define SS0 (*(volatile unsigned short *)0xF0122) +#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l +#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT +#define ST0 (*(volatile unsigned short *)0xF0124) +#define ST0L (*(volatile union un_st0l *)0xF0124).st0l +#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT +#define SPS0 (*(volatile unsigned short *)0xF0126) +#define SPS0L (*(volatile unsigned char *)0xF0126) +#define SO0 (*(volatile unsigned short *)0xF0128) +#define SOE0 (*(volatile unsigned short *)0xF012A) +#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l +#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT +#define SOL0 (*(volatile unsigned short *)0xF0134) +#define SOL0L (*(volatile unsigned char *)0xF0134) +#define SSC0 (*(volatile unsigned short *)0xF0138) +#define SSC0L (*(volatile unsigned char *)0xF0138) +#define SSR10 (*(volatile unsigned short *)0xF0140) +#define SSR10L (*(volatile unsigned char *)0xF0140) +#define SSR11 (*(volatile unsigned short *)0xF0142) +#define SSR11L (*(volatile unsigned char *)0xF0142) +#define SSR12 (*(volatile unsigned short *)0xF0144) +#define SSR12L (*(volatile unsigned char *)0xF0144) +#define SSR13 (*(volatile unsigned short *)0xF0146) +#define SSR13L (*(volatile unsigned char *)0xF0146) +#define SIR10 (*(volatile unsigned short *)0xF0148) +#define SIR10L (*(volatile unsigned char *)0xF0148) +#define SIR11 (*(volatile unsigned short *)0xF014A) +#define SIR11L (*(volatile unsigned char *)0xF014A) +#define SIR12 (*(volatile unsigned short *)0xF014C) +#define SIR12L (*(volatile unsigned char *)0xF014C) +#define SIR13 (*(volatile unsigned short *)0xF014E) +#define SIR13L (*(volatile unsigned char *)0xF014E) +#define SMR10 (*(volatile unsigned short *)0xF0150) +#define SMR11 (*(volatile unsigned short *)0xF0152) +#define SMR12 (*(volatile unsigned short *)0xF0154) +#define SMR13 (*(volatile unsigned short *)0xF0156) +#define SCR10 (*(volatile unsigned short *)0xF0158) +#define SCR11 (*(volatile unsigned short *)0xF015A) +#define SCR12 (*(volatile unsigned short *)0xF015C) +#define SCR13 (*(volatile unsigned short *)0xF015E) +#define SE1 (*(volatile unsigned short *)0xF0160) +#define SE1L (*(volatile union un_se1l *)0xF0160).se1l +#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT +#define SS1 (*(volatile unsigned short *)0xF0162) +#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l +#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT +#define ST1 (*(volatile unsigned short *)0xF0164) +#define ST1L (*(volatile union un_st1l *)0xF0164).st1l +#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT +#define SPS1 (*(volatile unsigned short *)0xF0166) +#define SPS1L (*(volatile unsigned char *)0xF0166) +#define SO1 (*(volatile unsigned short *)0xF0168) +#define SOE1 (*(volatile unsigned short *)0xF016A) +#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l +#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT +#define SOL1 (*(volatile unsigned short *)0xF0174) +#define SOL1L (*(volatile unsigned char *)0xF0174) +#define SSC1 (*(volatile unsigned short *)0xF0178) +#define SSC1L (*(volatile unsigned char *)0xF0178) +#define TCR00 (*(volatile unsigned short *)0xF0180) +#define TCR01 (*(volatile unsigned short *)0xF0182) +#define TCR02 (*(volatile unsigned short *)0xF0184) +#define TCR03 (*(volatile unsigned short *)0xF0186) +#define TCR04 (*(volatile unsigned short *)0xF0188) +#define TCR05 (*(volatile unsigned short *)0xF018A) +#define TCR06 (*(volatile unsigned short *)0xF018C) +#define TCR07 (*(volatile unsigned short *)0xF018E) +#define TMR00 (*(volatile unsigned short *)0xF0190) +#define TMR01 (*(volatile unsigned short *)0xF0192) +#define TMR02 (*(volatile unsigned short *)0xF0194) +#define TMR03 (*(volatile unsigned short *)0xF0196) +#define TMR04 (*(volatile unsigned short *)0xF0198) +#define TMR05 (*(volatile unsigned short *)0xF019A) +#define TMR06 (*(volatile unsigned short *)0xF019C) +#define TMR07 (*(volatile unsigned short *)0xF019E) +#define TSR00 (*(volatile unsigned short *)0xF01A0) +#define TSR00L (*(volatile unsigned char *)0xF01A0) +#define TSR01 (*(volatile unsigned short *)0xF01A2) +#define TSR01L (*(volatile unsigned char *)0xF01A2) +#define TSR02 (*(volatile unsigned short *)0xF01A4) +#define TSR02L (*(volatile unsigned char *)0xF01A4) +#define TSR03 (*(volatile unsigned short *)0xF01A6) +#define TSR03L (*(volatile unsigned char *)0xF01A6) +#define TSR04 (*(volatile unsigned short *)0xF01A8) +#define TSR04L (*(volatile unsigned char *)0xF01A8) +#define TSR05 (*(volatile unsigned short *)0xF01AA) +#define TSR05L (*(volatile unsigned char *)0xF01AA) +#define TSR06 (*(volatile unsigned short *)0xF01AC) +#define TSR06L (*(volatile unsigned char *)0xF01AC) +#define TSR07 (*(volatile unsigned short *)0xF01AE) +#define TSR07L (*(volatile unsigned char *)0xF01AE) +#define TE0 (*(volatile unsigned short *)0xF01B0) +#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l +#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT +#define TS0 (*(volatile unsigned short *)0xF01B2) +#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l +#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT +#define TT0 (*(volatile unsigned short *)0xF01B4) +#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l +#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT +#define TPS0 (*(volatile unsigned short *)0xF01B6) +#define TO0 (*(volatile unsigned short *)0xF01B8) +#define TO0L (*(volatile unsigned char *)0xF01B8) +#define TOE0 (*(volatile unsigned short *)0xF01BA) +#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l +#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT +#define TOL0 (*(volatile unsigned short *)0xF01BC) +#define TOL0L (*(volatile unsigned char *)0xF01BC) +#define TOM0 (*(volatile unsigned short *)0xF01BE) +#define TOM0L (*(volatile unsigned char *)0xF01BE) +#define ELSELR00 (*(volatile unsigned char *)0xF01C0) +#define ELSELR01 (*(volatile unsigned char *)0xF01C1) +#define ELSELR02 (*(volatile unsigned char *)0xF01C2) +#define ELSELR03 (*(volatile unsigned char *)0xF01C3) +#define ELSELR04 (*(volatile unsigned char *)0xF01C4) +#define ELSELR05 (*(volatile unsigned char *)0xF01C5) +#define ELSELR06 (*(volatile unsigned char *)0xF01C6) +#define ELSELR07 (*(volatile unsigned char *)0xF01C7) +#define ELSELR08 (*(volatile unsigned char *)0xF01C8) +#define ELSELR09 (*(volatile unsigned char *)0xF01C9) +#define ELSELR10 (*(volatile unsigned char *)0xF01CA) +#define ELSELR11 (*(volatile unsigned char *)0xF01CB) +#define ELSELR12 (*(volatile unsigned char *)0xF01CC) +#define ELSELR13 (*(volatile unsigned char *)0xF01CD) +#define ELSELR14 (*(volatile unsigned char *)0xF01CE) +#define ELSELR15 (*(volatile unsigned char *)0xF01CF) +#define ELSELR16 (*(volatile unsigned char *)0xF01D0) +#define ELSELR17 (*(volatile unsigned char *)0xF01D1) +#define ELSELR18 (*(volatile unsigned char *)0xF01D2) +#define ELSELR19 (*(volatile unsigned char *)0xF01D3) +#define ELSELR20 (*(volatile unsigned char *)0xF01D4) +#define ELSELR21 (*(volatile unsigned char *)0xF01D5) +#define ELSELR22 (*(volatile unsigned char *)0xF01D6) +#define ELSELR23 (*(volatile unsigned char *)0xF01D7) +#define ELSELR24 (*(volatile unsigned char *)0xF01D8) +#define ELSELR25 (*(volatile unsigned char *)0xF01D9) +#define ELSELR26 (*(volatile unsigned char *)0xF01DA) +#define ELSELR27 (*(volatile unsigned char *)0xF01DB) +#define ELSELR28 (*(volatile unsigned char *)0xF01DC) +#define ELSELR29 (*(volatile unsigned char *)0xF01DD) +#define ELSELR30 (*(volatile unsigned char *)0xF01DE) +#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 +#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT +#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 +#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT +#define IICWL0 (*(volatile unsigned char *)0xF0232) +#define IICWH0 (*(volatile unsigned char *)0xF0233) +#define SVA0 (*(volatile unsigned char *)0xF0234) +#define TKBCR10 (*(volatile unsigned short *)0xF0240) +#define TKBCR11 (*(volatile unsigned short *)0xF0242) +#define TKBCR12 (*(volatile unsigned short *)0xF0244) +#define TKBCR13 (*(volatile unsigned short *)0xF0246) +#define TKBTGCR1 (*(volatile unsigned short *)0xF0248) +#define TKBSIR10 (*(volatile unsigned short *)0xF024A) +#define TKBSIR11 (*(volatile unsigned short *)0xF024C) +#define TKBDNR10 (*(volatile unsigned char *)0xF024E) +#define TKBSSR10 (*(volatile unsigned char *)0xF024F) +#define TKBDNR11 (*(volatile unsigned char *)0xF0250) +#define TKBSSR11 (*(volatile unsigned char *)0xF0251) +#define TKBTRG1 (*(volatile union un_tkbtrg1 *)0xF0252).tkbtrg1 +#define TKBTRG1_bit (*(volatile union un_tkbtrg1 *)0xF0252).BIT +#define TKBFLG1 (*(volatile union un_tkbflg1 *)0xF0253).tkbflg1 +#define TKBFLG1_bit (*(volatile union un_tkbflg1 *)0xF0253).BIT +#define TKBCRLD10 (*(volatile unsigned short *)0xF0254) +#define TKBCRLD11 (*(volatile unsigned short *)0xF0256) +#define TKBCNT1 (*(volatile unsigned short *)0xF0260) +#define TKBCTL10 (*(volatile unsigned short *)0xF0262) +#define TKBMFR1 (*(volatile unsigned short *)0xF0264) +#define TKBIOC10 (*(volatile union un_tkbioc10 *)0xF0266).tkbioc10 +#define TKBIOC10_bit (*(volatile union un_tkbioc10 *)0xF0266).BIT +#define TKBCLR1 (*(volatile union un_tkbclr1 *)0xF0267).tkbclr1 +#define TKBCLR1_bit (*(volatile union un_tkbclr1 *)0xF0267).BIT +#define TKBIOC11 (*(volatile union un_tkbioc11 *)0xF0268).tkbioc11 +#define TKBIOC11_bit (*(volatile union un_tkbioc11 *)0xF0268).BIT +#define TKBCTL11 (*(volatile union un_tkbctl11 *)0xF0269).tkbctl11 +#define TKBCTL11_bit (*(volatile union un_tkbctl11 *)0xF0269).BIT +#define TKBPSCS1 (*(volatile unsigned char *)0xF026A) +#define TKBPACTL10 (*(volatile unsigned short *)0xF0270) +#define TKBPACTL11 (*(volatile unsigned short *)0xF0272) +#define TKBPAHFS1 (*(volatile union un_tkbpahfs1 *)0xF0274).tkbpahfs1 +#define TKBPAHFS1_bit (*(volatile union un_tkbpahfs1 *)0xF0274).BIT +#define TKBPAHFT1 (*(volatile union un_tkbpahft1 *)0xF0275).tkbpahft1 +#define TKBPAHFT1_bit (*(volatile union un_tkbpahft1 *)0xF0275).BIT +#define TKBPAFLG1 (*(volatile union un_tkbpaflg1 *)0xF0276).tkbpaflg1 +#define TKBPAFLG1_bit (*(volatile union un_tkbpaflg1 *)0xF0276).BIT +#define TKBPACTL12 (*(volatile union un_tkbpactl12 *)0xF0277).tkbpactl12 +#define TKBPACTL12_bit (*(volatile union un_tkbpactl12 *)0xF0277).BIT +#define TKBCR20 (*(volatile unsigned short *)0xF0280) +#define TKBCR21 (*(volatile unsigned short *)0xF0282) +#define TKBCR22 (*(volatile unsigned short *)0xF0284) +#define TKBCR23 (*(volatile unsigned short *)0xF0286) +#define TKBTGCR2 (*(volatile unsigned short *)0xF0288) +#define TKBSIR20 (*(volatile unsigned short *)0xF028A) +#define TKBSIR21 (*(volatile unsigned short *)0xF028C) +#define TKBDNR20 (*(volatile unsigned char *)0xF028E) +#define TKBSSR20 (*(volatile unsigned char *)0xF028F) +#define TKBDNR21 (*(volatile unsigned char *)0xF0290) +#define TKBSSR21 (*(volatile unsigned char *)0xF0291) +#define TKBTRG2 (*(volatile union un_tkbtrg2 *)0xF0292).tkbtrg2 +#define TKBTRG2_bit (*(volatile union un_tkbtrg2 *)0xF0292).BIT +#define TKBFLG2 (*(volatile union un_tkbflg2 *)0xF0293).tkbflg2 +#define TKBFLG2_bit (*(volatile union un_tkbflg2 *)0xF0293).BIT +#define TKBCRLD20 (*(volatile unsigned short *)0xF0294) +#define TKBCRLD21 (*(volatile unsigned short *)0xF0296) +#define TKBCNT2 (*(volatile unsigned short *)0xF02A0) +#define TKBCTL20 (*(volatile unsigned short *)0xF02A2) +#define TKBMFR2 (*(volatile unsigned short *)0xF02A4) +#define TKBIOC20 (*(volatile union un_tkbioc20 *)0xF02A6).tkbioc20 +#define TKBIOC20_bit (*(volatile union un_tkbioc20 *)0xF02A6).BIT +#define TKBCLR2 (*(volatile union un_tkbclr2 *)0xF02A7).tkbclr2 +#define TKBCLR2_bit (*(volatile union un_tkbclr2 *)0xF02A7).BIT +#define TKBIOC21 (*(volatile union un_tkbioc21 *)0xF02A8).tkbioc21 +#define TKBIOC21_bit (*(volatile union un_tkbioc21 *)0xF02A8).BIT +#define TKBCTL21 (*(volatile union un_tkbctl21 *)0xF02A9).tkbctl21 +#define TKBCTL21_bit (*(volatile union un_tkbctl21 *)0xF02A9).BIT +#define TKBPSCS2 (*(volatile unsigned char *)0xF02AA) +#define TKBPACTL20 (*(volatile unsigned short *)0xF02B0) +#define TKBPACTL21 (*(volatile unsigned short *)0xF02B2) +#define TKBPAHFS2 (*(volatile union un_tkbpahfs2 *)0xF02B4).tkbpahfs2 +#define TKBPAHFS2_bit (*(volatile union un_tkbpahfs2 *)0xF02B4).BIT +#define TKBPAHFT2 (*(volatile union un_tkbpahft2 *)0xF02B5).tkbpahft2 +#define TKBPAHFT2_bit (*(volatile union un_tkbpahft2 *)0xF02B5).BIT +#define TKBPAFLG2 (*(volatile union un_tkbpaflg2 *)0xF02B6).tkbpaflg2 +#define TKBPAFLG2_bit (*(volatile union un_tkbpaflg2 *)0xF02B6).BIT +#define TKBPACTL22 (*(volatile union un_tkbpactl22 *)0xF02B7).tkbpactl22 +#define TKBPACTL22_bit (*(volatile union un_tkbpactl22 *)0xF02B7).BIT +#define DTCBAR (*(volatile unsigned char *)0xF02E0) +#define DSCCTL (*(volatile union un_dscctl *)0xF02E5).dscctl +#define DSCCTL_bit (*(volatile union un_dscctl *)0xF02E5).BIT +#define MCKC (*(volatile union un_mckc *)0xF02E6).mckc +#define MCKC_bit (*(volatile union un_mckc *)0xF02E6).BIT +#define DTCEN0 (*(volatile union un_dtcen0 *)0xF02E8).dtcen0 +#define DTCEN0_bit (*(volatile union un_dtcen0 *)0xF02E8).BIT +#define DTCEN1 (*(volatile union un_dtcen1 *)0xF02E9).dtcen1 +#define DTCEN1_bit (*(volatile union un_dtcen1 *)0xF02E9).BIT +#define DTCEN2 (*(volatile union un_dtcen2 *)0xF02EA).dtcen2 +#define DTCEN2_bit (*(volatile union un_dtcen2 *)0xF02EA).BIT +#define DTCEN3 (*(volatile union un_dtcen3 *)0xF02EB).dtcen3 +#define DTCEN3_bit (*(volatile union un_dtcen3 *)0xF02EB).BIT +#define DTCEN4 (*(volatile union un_dtcen4 *)0xF02EC).dtcen4 +#define DTCEN4_bit (*(volatile union un_dtcen4 *)0xF02EC).BIT +#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl +#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT +#define PGCRCL (*(volatile unsigned short *)0xF02F2) +#define CRCD (*(volatile unsigned short *)0xF02FA) +#define PFSEG0 (*(volatile union un_pfseg0 *)0xF0300).pfseg0 +#define PFSEG0_bit (*(volatile union un_pfseg0 *)0xF0300).BIT +#define PFSEG1 (*(volatile union un_pfseg1 *)0xF0301).pfseg1 +#define PFSEG1_bit (*(volatile union un_pfseg1 *)0xF0301).BIT +#define PFSEG2 (*(volatile union un_pfseg2 *)0xF0302).pfseg2 +#define PFSEG2_bit (*(volatile union un_pfseg2 *)0xF0302).BIT +#define PFSEG3 (*(volatile union un_pfseg3 *)0xF0303).pfseg3 +#define PFSEG3_bit (*(volatile union un_pfseg3 *)0xF0303).BIT +#define PFSEG4 (*(volatile union un_pfseg4 *)0xF0304).pfseg4 +#define PFSEG4_bit (*(volatile union un_pfseg4 *)0xF0304).BIT +#define PFSEG5 (*(volatile union un_pfseg5 *)0xF0305).pfseg5 +#define PFSEG5_bit (*(volatile union un_pfseg5 *)0xF0305).BIT +#define PFSEG6 (*(volatile union un_pfseg6 *)0xF0306).pfseg6 +#define PFSEG6_bit (*(volatile union un_pfseg6 *)0xF0306).BIT +#define ISCLCD (*(volatile union un_isclcd *)0xF0308).isclcd +#define ISCLCD_bit (*(volatile union un_isclcd *)0xF0308).BIT +#define SUBCUD (*(volatile unsigned short *)0xF0310) +#define COMPMDR (*(volatile union un_compmdr *)0xF0340).compmdr +#define COMPMDR_bit (*(volatile union un_compmdr *)0xF0340).BIT +#define COMPFIR (*(volatile union un_compfir *)0xF0341).compfir +#define COMPFIR_bit (*(volatile union un_compfir *)0xF0341).BIT +#define COMPOCR (*(volatile union un_compocr *)0xF0342).compocr +#define COMPOCR_bit (*(volatile union un_compocr *)0xF0342).BIT +#define SEG0 (*(volatile unsigned char *)0xF0400) +#define SEG1 (*(volatile unsigned char *)0xF0401) +#define SEG2 (*(volatile unsigned char *)0xF0402) +#define SEG3 (*(volatile unsigned char *)0xF0403) +#define SEG4 (*(volatile unsigned char *)0xF0404) +#define SEG5 (*(volatile unsigned char *)0xF0405) +#define SEG6 (*(volatile unsigned char *)0xF0406) +#define SEG7 (*(volatile unsigned char *)0xF0407) +#define SEG8 (*(volatile unsigned char *)0xF0408) +#define SEG9 (*(volatile unsigned char *)0xF0409) +#define SEG10 (*(volatile unsigned char *)0xF040A) +#define SEG11 (*(volatile unsigned char *)0xF040B) +#define SEG12 (*(volatile unsigned char *)0xF040C) +#define SEG13 (*(volatile unsigned char *)0xF040D) +#define SEG14 (*(volatile unsigned char *)0xF040E) +#define SEG15 (*(volatile unsigned char *)0xF040F) +#define SEG16 (*(volatile unsigned char *)0xF0410) +#define SEG17 (*(volatile unsigned char *)0xF0411) +#define SEG18 (*(volatile unsigned char *)0xF0412) +#define SEG19 (*(volatile unsigned char *)0xF0413) +#define SEG20 (*(volatile unsigned char *)0xF0414) +#define SEG21 (*(volatile unsigned char *)0xF0415) +#define SEG22 (*(volatile unsigned char *)0xF0416) +#define SEG23 (*(volatile unsigned char *)0xF0417) +#define SEG24 (*(volatile unsigned char *)0xF0418) +#define SEG25 (*(volatile unsigned char *)0xF0419) +#define SEG26 (*(volatile unsigned char *)0xF041A) +#define SEG27 (*(volatile unsigned char *)0xF041B) +#define SEG28 (*(volatile unsigned char *)0xF041C) +#define SEG29 (*(volatile unsigned char *)0xF041D) +#define SEG30 (*(volatile unsigned char *)0xF041E) +#define SEG31 (*(volatile unsigned char *)0xF041F) +#define SEG32 (*(volatile unsigned char *)0xF0420) +#define SEG33 (*(volatile unsigned char *)0xF0421) +#define SEG34 (*(volatile unsigned char *)0xF0422) +#define SEG35 (*(volatile unsigned char *)0xF0423) +#define SEG36 (*(volatile unsigned char *)0xF0424) +#define SEG37 (*(volatile unsigned char *)0xF0425) +#define SEG38 (*(volatile unsigned char *)0xF0426) +#define SEG39 (*(volatile unsigned char *)0xF0427) +#define SEG40 (*(volatile unsigned char *)0xF0428) +#define SEG41 (*(volatile unsigned char *)0xF0429) +#define SEG42 (*(volatile unsigned char *)0xF042A) +#define SEG43 (*(volatile unsigned char *)0xF042B) +#define SEG44 (*(volatile unsigned char *)0xF042C) +#define SEG45 (*(volatile unsigned char *)0xF042D) +#define SEG46 (*(volatile unsigned char *)0xF042E) +#define SEG47 (*(volatile unsigned char *)0xF042F) +#define SEG48 (*(volatile unsigned char *)0xF0430) +#define SEG49 (*(volatile unsigned char *)0xF0431) +#define SEG50 (*(volatile unsigned char *)0xF0432) +#define SEG51 (*(volatile unsigned char *)0xF0433) +#define SEG52 (*(volatile unsigned char *)0xF0434) +#define SEG53 (*(volatile unsigned char *)0xF0435) +#define SEG54 (*(volatile unsigned char *)0xF0436) +#define SEG55 (*(volatile unsigned char *)0xF0437) +#define TKBCR00 (*(volatile unsigned short *)0xF0500) +#define TKBCR01 (*(volatile unsigned short *)0xF0502) +#define TKBCR02 (*(volatile unsigned short *)0xF0504) +#define TKBCR03 (*(volatile unsigned short *)0xF0506) +#define TKBTGCR0 (*(volatile unsigned short *)0xF0508) +#define TKBSIR00 (*(volatile unsigned short *)0xF050A) +#define TKBSIR01 (*(volatile unsigned short *)0xF050C) +#define TKBDNR00 (*(volatile unsigned char *)0xF050E) +#define TKBSSR00 (*(volatile unsigned char *)0xF050F) +#define TKBDNR01 (*(volatile unsigned char *)0xF0510) +#define TKBSSR01 (*(volatile unsigned char *)0xF0511) +#define TKBTRG0 (*(volatile union un_tkbtrg0 *)0xF0512).tkbtrg0 +#define TKBTRG0_bit (*(volatile union un_tkbtrg0 *)0xF0512).BIT +#define TKBFLG0 (*(volatile union un_tkbflg0 *)0xF0513).tkbflg0 +#define TKBFLG0_bit (*(volatile union un_tkbflg0 *)0xF0513).BIT +#define TKBCRLD00 (*(volatile unsigned short *)0xF0514) +#define TKBCRLD01 (*(volatile unsigned short *)0xF0516) +#define TKBCNT0 (*(volatile unsigned short *)0xF0520) +#define TKBCTL00 (*(volatile unsigned short *)0xF0522) +#define TKBMFR0 (*(volatile unsigned short *)0xF0524) +#define TKBIOC00 (*(volatile union un_tkbioc00 *)0xF0526).tkbioc00 +#define TKBIOC00_bit (*(volatile union un_tkbioc00 *)0xF0526).BIT +#define TKBCLR0 (*(volatile union un_tkbclr0 *)0xF0527).tkbclr0 +#define TKBCLR0_bit (*(volatile union un_tkbclr0 *)0xF0527).BIT +#define TKBIOC01 (*(volatile union un_tkbioc01 *)0xF0528).tkbioc01 +#define TKBIOC01_bit (*(volatile union un_tkbioc01 *)0xF0528).BIT +#define TKBCTL01 (*(volatile union un_tkbctl01 *)0xF0529).tkbctl01 +#define TKBCTL01_bit (*(volatile union un_tkbctl01 *)0xF0529).BIT +#define TKBPSCS0 (*(volatile unsigned char *)0xF052A) +#define TKBPACTL00 (*(volatile unsigned short *)0xF0530) +#define TKBPACTL01 (*(volatile unsigned short *)0xF0532) +#define TKBPAHFS0 (*(volatile union un_tkbpahfs0 *)0xF0534).tkbpahfs0 +#define TKBPAHFS0_bit (*(volatile union un_tkbpahfs0 *)0xF0534).BIT +#define TKBPAHFT0 (*(volatile union un_tkbpahft0 *)0xF0535).tkbpahft0 +#define TKBPAHFT0_bit (*(volatile union un_tkbpahft0 *)0xF0535).BIT +#define TKBPAFLG0 (*(volatile union un_tkbpaflg0 *)0xF0536).tkbpaflg0 +#define TKBPAFLG0_bit (*(volatile union un_tkbpaflg0 *)0xF0536).BIT +#define TKBPACTL02 (*(volatile union un_tkbpactl02 *)0xF0537).tkbpactl02 +#define TKBPACTL02_bit (*(volatile union un_tkbpactl02 *)0xF0537).BIT +#define D0FIFOD00 (*(volatile unsigned short *)0xF0580) +#define D1FIFOD00 (*(volatile unsigned short *)0xF05C0) +#define SYSCFG (*(volatile unsigned short *)0xF0600) +#define SYSSTS0 (*(volatile unsigned short *)0xF0604) +#define DVSTCTR0 (*(volatile unsigned short *)0xF0608) +#define CFIFOM (*(volatile unsigned short *)0xF0614) +#define CFIFOML (*(volatile unsigned char *)0xF0614) +#define D0FIFOM (*(volatile unsigned short *)0xF0618) +#define D0FIFOML (*(volatile unsigned char *)0xF0618) +#define D1FIFOM (*(volatile unsigned short *)0xF061C) +#define D1FIFOML (*(volatile unsigned char *)0xF061C) +#define CFIFOSEL (*(volatile unsigned short *)0xF0620) +#define CFIFOCTR (*(volatile unsigned short *)0xF0622) +#define D0FIFOSEL (*(volatile unsigned short *)0xF0628) +#define D0FIFOCTR (*(volatile unsigned short *)0xF062A) +#define D1FIFOSEL (*(volatile unsigned short *)0xF062C) +#define D1FIFOCTR (*(volatile unsigned short *)0xF062E) +#define INTENB0 (*(volatile unsigned short *)0xF0630) +#define INTENB1 (*(volatile unsigned short *)0xF0632) +#define BRDYENB (*(volatile unsigned short *)0xF0636) +#define NRDYENB (*(volatile unsigned short *)0xF0638) +#define BEMPENB (*(volatile unsigned short *)0xF063A) +#define SOFCFG (*(volatile unsigned short *)0xF063C) +#define INTSTS0 (*(volatile unsigned short *)0xF0640) +#define INTSTS1 (*(volatile unsigned short *)0xF0642) +#define BRDYSTS (*(volatile unsigned short *)0xF0646) +#define NRDYSTS (*(volatile unsigned short *)0xF0648) +#define BEMPSTS (*(volatile unsigned short *)0xF064A) +#define FRMNUM (*(volatile unsigned short *)0xF064C) +#define USBADDR (*(volatile unsigned short *)0xF0650) +#define USBREQ (*(volatile unsigned short *)0xF0654) +#define USBVAL (*(volatile unsigned short *)0xF0656) +#define USBINDX (*(volatile unsigned short *)0xF0658) +#define USBLENG (*(volatile unsigned short *)0xF065A) +#define DCPCFG (*(volatile unsigned short *)0xF065C) +#define DCPMAXP (*(volatile unsigned short *)0xF065E) +#define DCPCTR (*(volatile unsigned short *)0xF0660) +#define PIPESEL (*(volatile unsigned short *)0xF0664) +#define PIPECFG (*(volatile unsigned short *)0xF0668) +#define PIPEMAXP (*(volatile unsigned short *)0xF066C) +#define PIPE4CTR (*(volatile unsigned short *)0xF0676) +#define PIPE5CTR (*(volatile unsigned short *)0xF0678) +#define PIPE6CTR (*(volatile unsigned short *)0xF067A) +#define PIPE7CTR (*(volatile unsigned short *)0xF067C) +#define PIPE4TRE (*(volatile unsigned short *)0xF069C) +#define PIPE4TRN (*(volatile unsigned short *)0xF069E) +#define PIPE5TRE (*(volatile unsigned short *)0xF06A0) +#define PIPE5TRN (*(volatile unsigned short *)0xF06A2) +#define DTC0PCFG (*(volatile unsigned short *)0xF06A8) +#define DTC1PCFG (*(volatile unsigned short *)0xF06AC) +#define USBBCCTRL0 (*(volatile unsigned short *)0xF06B0) +#define USBBCOPT0 (*(volatile unsigned short *)0xF06B8) +#define USBMC (*(volatile unsigned short *)0xF06CC) + +/* + Sfr bits + */ +#define ADTYP ADM2_bit.no0 +#define AWC ADM2_bit.no2 +#define ADRCK ADM2_bit.no3 +#define TOS0 TOS_bit.no0 +#define DACEN PER1_bit.no0 +#define DTCEN PER1_bit.no3 +#define TKB20EN PER1_bit.no4 +#define CMPEN PER1_bit.no5 +#define TMKAEN PER1_bit.no7 +#define DFLEN DFLCTL_bit.no0 +#define TAU0EN PER0_bit.no0 +#define SAU0EN PER0_bit.no2 +#define SAU1EN PER0_bit.no3 +#define IICA0EN PER0_bit.no4 +#define ADCEN PER0_bit.no5 +#define RTCWEN PER0_bit.no7 +#define RPEF RPECTL_bit.no0 +#define RPERDIS RPECTL_bit.no7 +#define TKB21EN PER2_bit.no0 +#define TKB22EN PER2_bit.no1 +#define SPT0 IICCTL00_bit.no0 +#define STT0 IICCTL00_bit.no1 +#define ACKE0 IICCTL00_bit.no2 +#define WTIM0 IICCTL00_bit.no3 +#define SPIE0 IICCTL00_bit.no4 +#define WREL0 IICCTL00_bit.no5 +#define LREL0 IICCTL00_bit.no6 +#define IICE0 IICCTL00_bit.no7 +#define PRS0 IICCTL01_bit.no0 +#define DFC0 IICCTL01_bit.no2 +#define SMC0 IICCTL01_bit.no3 +#define DAD0 IICCTL01_bit.no4 +#define CLD0 IICCTL01_bit.no5 +#define WUP0 IICCTL01_bit.no7 +#define TKBRDT1 TKBTRG1_bit.no0 +#define TKBRSF1 TKBFLG1_bit.no0 +#define TKBMFF1 TKBFLG1_bit.no1 +#define TKBIEF1 TKBFLG1_bit.no2 +#define TKBIRF1 TKBFLG1_bit.no3 +#define TKBSEF10 TKBFLG1_bit.no4 +#define TKBSEF11 TKBFLG1_bit.no5 +#define TKBSSF10 TKBFLG1_bit.no6 +#define TKBSSF11 TKBFLG1_bit.no7 +#define TKBTOD10 TKBIOC10_bit.no0 +#define TKBTOD11 TKBIOC10_bit.no1 +#define TKBTOL10 TKBIOC10_bit.no2 +#define TKBTOL11 TKBIOC10_bit.no3 +#define TKBCLMF1 TKBCLR1_bit.no1 +#define TKBCLIE1 TKBCLR1_bit.no2 +#define TKBCLIR1 TKBCLR1_bit.no3 +#define TKBCLSE10 TKBCLR1_bit.no4 +#define TKBCLSE11 TKBCLR1_bit.no5 +#define TKBTOE10 TKBIOC11_bit.no0 +#define TKBTOE11 TKBIOC11_bit.no1 +#define TKBCE1 TKBCTL11_bit.no7 +#define TKBPAHTS10 TKBPAHFS1_bit.no0 +#define TKBPAHTS11 TKBPAHFS1_bit.no1 +#define TKBPAHTT10 TKBPAHFT1_bit.no0 +#define TKBPAHTT11 TKBPAHFT1_bit.no1 +#define TKBPAHIF10 TKBPAFLG1_bit.no0 +#define TKBPAFIF10 TKBPAFLG1_bit.no1 +#define TKBPAHIF11 TKBPAFLG1_bit.no2 +#define TKBPAFIF11 TKBPAFLG1_bit.no3 +#define TKBPAHSF10 TKBPAFLG1_bit.no4 +#define TKBPAFSF10 TKBPAFLG1_bit.no5 +#define TKBPAHSF11 TKBPAFLG1_bit.no6 +#define TKBPAFSF11 TKBPAFLG1_bit.no7 +#define TKBPACE10 TKBPACTL12_bit.no0 +#define TKBPACE11 TKBPACTL12_bit.no1 +#define TKBRDT2 TKBTRG2_bit.no0 +#define TKBRSF2 TKBFLG2_bit.no0 +#define TKBMFF2 TKBFLG2_bit.no1 +#define TKBIEF2 TKBFLG2_bit.no2 +#define TKBIRF2 TKBFLG2_bit.no3 +#define TKBSEF20 TKBFLG2_bit.no4 +#define TKBSEF21 TKBFLG2_bit.no5 +#define TKBSSF20 TKBFLG2_bit.no6 +#define TKBSSF21 TKBFLG2_bit.no7 +#define TKBTOD20 TKBIOC20_bit.no0 +#define TKBTOD21 TKBIOC20_bit.no1 +#define TKBTOL20 TKBIOC20_bit.no2 +#define TKBTOL21 TKBIOC20_bit.no3 +#define TKBCLMF2 TKBCLR2_bit.no1 +#define TKBCLIE2 TKBCLR2_bit.no2 +#define TKBCLIR2 TKBCLR2_bit.no3 +#define TKBCLSE20 TKBCLR2_bit.no4 +#define TKBCLSE21 TKBCLR2_bit.no5 +#define TKBTOE20 TKBIOC21_bit.no0 +#define TKBTOE21 TKBIOC21_bit.no1 +#define TKBCE2 TKBCTL21_bit.no7 +#define TKBPAHTS20 TKBPAHFS2_bit.no0 +#define TKBPAHTS21 TKBPAHFS2_bit.no1 +#define TKBPAHTT20 TKBPAHFT2_bit.no0 +#define TKBPAHTT21 TKBPAHFT2_bit.no1 +#define TKBPAHIF20 TKBPAFLG2_bit.no0 +#define TKBPAFIF20 TKBPAFLG2_bit.no1 +#define TKBPAHIF21 TKBPAFLG2_bit.no2 +#define TKBPAFIF21 TKBPAFLG2_bit.no3 +#define TKBPAHSF20 TKBPAFLG2_bit.no4 +#define TKBPAFSF20 TKBPAFLG2_bit.no5 +#define TKBPAHSF21 TKBPAFLG2_bit.no6 +#define TKBPAFSF21 TKBPAFLG2_bit.no7 +#define TKBPACE20 TKBPACTL22_bit.no0 +#define TKBPACE21 TKBPACTL22_bit.no1 +#define CRC0EN CRC0CTL_bit.no7 +#define PFSEG04 PFSEG0_bit.no4 +#define PFSEG05 PFSEG0_bit.no5 +#define PFSEG06 PFSEG0_bit.no6 +#define PFSEG07 PFSEG0_bit.no7 +#define PFSEG08 PFSEG1_bit.no0 +#define PFSEG09 PFSEG1_bit.no1 +#define PFSEG10 PFSEG1_bit.no2 +#define PFSEG11 PFSEG1_bit.no3 +#define PFSEG12 PFSEG1_bit.no4 +#define PFSEG13 PFSEG1_bit.no5 +#define PFSEG14 PFSEG1_bit.no6 +#define PFSEG15 PFSEG1_bit.no7 +#define PFSEG16 PFSEG2_bit.no0 +#define PFSEG17 PFSEG2_bit.no1 +#define PFSEG18 PFSEG2_bit.no2 +#define PFSEG19 PFSEG2_bit.no3 +#define PFSEG20 PFSEG2_bit.no4 +#define PFSEG21 PFSEG2_bit.no5 +#define PFSEG22 PFSEG2_bit.no6 +#define PFSEG23 PFSEG2_bit.no7 +#define PFSEG24 PFSEG3_bit.no0 +#define PFSEG25 PFSEG3_bit.no1 +#define PFSEG26 PFSEG3_bit.no2 +#define PFSEG27 PFSEG3_bit.no3 +#define PFSEG28 PFSEG3_bit.no4 +#define PFSEG29 PFSEG3_bit.no5 +#define PFSEG30 PFSEG3_bit.no6 +#define PFSEG31 PFSEG3_bit.no7 +#define PFSEG32 PFSEG4_bit.no0 +#define PFSEG33 PFSEG4_bit.no1 +#define PFSEG34 PFSEG4_bit.no2 +#define PFSEG35 PFSEG4_bit.no3 +#define PFSEG36 PFSEG4_bit.no4 +#define PFSEG37 PFSEG4_bit.no5 +#define PFSEG38 PFSEG4_bit.no6 +#define PFSEG39 PFSEG4_bit.no7 +#define PFSEG40 PFSEG5_bit.no0 +#define PFSEG41 PFSEG5_bit.no1 +#define PFSEG42 PFSEG5_bit.no2 +#define PFSEG43 PFSEG5_bit.no3 +#define PFSEG44 PFSEG5_bit.no4 +#define PFSEG45 PFSEG5_bit.no5 +#define PFSEG46 PFSEG5_bit.no6 +#define PFSEG47 PFSEG5_bit.no7 +#define PFSEG48 PFSEG6_bit.no0 +#define PFSEG49 PFSEG6_bit.no1 +#define PFSEG50 PFSEG6_bit.no2 +#define PFSEG51 PFSEG6_bit.no3 +#define PFSEG52 PFSEG6_bit.no4 +#define PFSEG53 PFSEG6_bit.no5 +#define PFSEG54 PFSEG6_bit.no6 +#define PFSEG55 PFSEG6_bit.no7 +#define C0ENB COMPMDR_bit.no0 +#define C0MON COMPMDR_bit.no3 +#define C1ENB COMPMDR_bit.no4 +#define C1MON COMPMDR_bit.no7 +#define C0IE COMPOCR_bit.no0 +#define C0OE COMPOCR_bit.no1 +#define C0OP COMPOCR_bit.no2 +#define C1IE COMPOCR_bit.no4 +#define C1OE COMPOCR_bit.no5 +#define C1OP COMPOCR_bit.no6 +#define SPDMD COMPOCR_bit.no7 +#define TKBRDT0 TKBTRG0_bit.no0 +#define TKBRSF0 TKBFLG0_bit.no0 +#define TKBMFF0 TKBFLG0_bit.no1 +#define TKBIEF0 TKBFLG0_bit.no2 +#define TKBIRF0 TKBFLG0_bit.no3 +#define TKBSEF00 TKBFLG0_bit.no4 +#define TKBSEF01 TKBFLG0_bit.no5 +#define TKBSSF00 TKBFLG0_bit.no6 +#define TKBSSF01 TKBFLG0_bit.no7 +#define TKBTOD00 TKBIOC00_bit.no0 +#define TKBTOD01 TKBIOC00_bit.no1 +#define TKBTOL00 TKBIOC00_bit.no2 +#define TKBTOL01 TKBIOC00_bit.no3 +#define TKBCLMF0 TKBCLR0_bit.no1 +#define TKBCLIE0 TKBCLR0_bit.no2 +#define TKBCLIR0 TKBCLR0_bit.no3 +#define TKBCLSE00 TKBCLR0_bit.no4 +#define TKBCLSE01 TKBCLR0_bit.no5 +#define TKBTOE00 TKBIOC01_bit.no0 +#define TKBTOE01 TKBIOC01_bit.no1 +#define TKBCE0 TKBCTL01_bit.no7 +#define TKBPAHTS00 TKBPAHFS0_bit.no0 +#define TKBPAHTS01 TKBPAHFS0_bit.no1 +#define TKBPAHTT00 TKBPAHFT0_bit.no0 +#define TKBPAHTT01 TKBPAHFT0_bit.no1 +#define TKBPAHIF00 TKBPAFLG0_bit.no0 +#define TKBPAFIF00 TKBPAFLG0_bit.no1 +#define TKBPAHIF01 TKBPAFLG0_bit.no2 +#define TKBPAFIF01 TKBPAFLG0_bit.no3 +#define TKBPAHSF00 TKBPAFLG0_bit.no4 +#define TKBPAFSF00 TKBPAFLG0_bit.no5 +#define TKBPAHSF01 TKBPAFLG0_bit.no6 +#define TKBPAFSF01 TKBPAFLG0_bit.no7 +#define TKBPACE00 TKBPACTL02_bit.no0 +#define TKBPACE01 TKBPACTL02_bit.no1 + +/* + Interrupt vector addresses + */ +#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G14.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G14.h deleted file mode 100644 index bfa227a6d..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G14.h +++ /dev/null @@ -1,1121 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78G14 */ -/* FILE : iodefine.h */ -/* DESCRIPTION : Definition of I/O Registers */ -/* CPU SERIES : RL78 - G14 */ -/* CPU TYPE : R5F104PJ */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F104PJ.DVF */ -/* Copyright(C) 2012 Renesas */ -/* File Version V2.00 */ -/* Tool Version 1.9.7121 */ -/* Date Generated 13/11/2012 */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_H -#define IODEFINE_H - -/* - IO Registers - */ -union un_p0 { - unsigned char p0; - __BITS8 BIT; -}; -union un_p1 { - unsigned char p1; - __BITS8 BIT; -}; -union un_p2 { - unsigned char p2; - __BITS8 BIT; -}; -union un_p3 { - unsigned char p3; - __BITS8 BIT; -}; -union un_p4 { - unsigned char p4; - __BITS8 BIT; -}; -union un_p5 { - unsigned char p5; - __BITS8 BIT; -}; -union un_p6 { - unsigned char p6; - __BITS8 BIT; -}; -union un_p7 { - unsigned char p7; - __BITS8 BIT; -}; -union un_p8 { - unsigned char p8; - __BITS8 BIT; -}; -union un_p10 { - unsigned char p10; - __BITS8 BIT; -}; -union un_p11 { - unsigned char p11; - __BITS8 BIT; -}; -union un_p12 { - unsigned char p12; - __BITS8 BIT; -}; -union un_p13 { - unsigned char p13; - __BITS8 BIT; -}; -union un_p14 { - unsigned char p14; - __BITS8 BIT; -}; -union un_p15 { - unsigned char p15; - __BITS8 BIT; -}; -union un_pm0 { - unsigned char pm0; - __BITS8 BIT; -}; -union un_pm1 { - unsigned char pm1; - __BITS8 BIT; -}; -union un_pm2 { - unsigned char pm2; - __BITS8 BIT; -}; -union un_pm3 { - unsigned char pm3; - __BITS8 BIT; -}; -union un_pm4 { - unsigned char pm4; - __BITS8 BIT; -}; -union un_pm5 { - unsigned char pm5; - __BITS8 BIT; -}; -union un_pm6 { - unsigned char pm6; - __BITS8 BIT; -}; -union un_pm7 { - unsigned char pm7; - __BITS8 BIT; -}; -union un_pm8 { - unsigned char pm8; - __BITS8 BIT; -}; -union un_pm10 { - unsigned char pm10; - __BITS8 BIT; -}; -union un_pm11 { - unsigned char pm11; - __BITS8 BIT; -}; -union un_pm12 { - unsigned char pm12; - __BITS8 BIT; -}; -union un_pm14 { - unsigned char pm14; - __BITS8 BIT; -}; -union un_pm15 { - unsigned char pm15; - __BITS8 BIT; -}; -union un_adm0 { - unsigned char adm0; - __BITS8 BIT; -}; -union un_ads { - unsigned char ads; - __BITS8 BIT; -}; -union un_adm1 { - unsigned char adm1; - __BITS8 BIT; -}; -union un_dam { - unsigned char dam; - __BITS8 BIT; -}; -union un_krm { - unsigned char krm; - __BITS8 BIT; -}; -union un_egp0 { - unsigned char egp0; - __BITS8 BIT; -}; -union un_egn0 { - unsigned char egn0; - __BITS8 BIT; -}; -union un_egp1 { - unsigned char egp1; - __BITS8 BIT; -}; -union un_egn1 { - unsigned char egn1; - __BITS8 BIT; -}; -union un_iics0 { - unsigned char iics0; - __BITS8 BIT; -}; -union un_iicf0 { - unsigned char iicf0; - __BITS8 BIT; -}; -union un_iics1 { - unsigned char iics1; - __BITS8 BIT; -}; -union un_iicf1 { - unsigned char iicf1; - __BITS8 BIT; -}; -union un_flars { - unsigned char flars; - __BITS8 BIT; -}; -union un_fssq { - unsigned char fssq; - __BITS8 BIT; -}; -union un_flrst { - unsigned char flrst; - __BITS8 BIT; -}; -union un_fsastl { - unsigned char fsastl; - __BITS8 BIT; -}; -union un_fsasth { - unsigned char fsasth; - __BITS8 BIT; -}; -union un_rtcc0 { - unsigned char rtcc0; - __BITS8 BIT; -}; -union un_rtcc1 { - unsigned char rtcc1; - __BITS8 BIT; -}; -union un_csc { - unsigned char csc; - __BITS8 BIT; -}; -union un_ostc { - unsigned char ostc; - __BITS8 BIT; -}; -union un_ckc { - unsigned char ckc; - __BITS8 BIT; -}; -union un_cks0 { - unsigned char cks0; - __BITS8 BIT; -}; -union un_cks1 { - unsigned char cks1; - __BITS8 BIT; -}; -union un_lvim { - unsigned char lvim; - __BITS8 BIT; -}; -union un_lvis { - unsigned char lvis; - __BITS8 BIT; -}; -union un_monsta0 { - unsigned char monsta0; - __BITS8 BIT; -}; -union un_asim { - unsigned char asim; - __BITS8 BIT; -}; -union un_if2 { - unsigned short if2; - __BITS16 BIT; -}; -union un_if2l { - unsigned char if2l; - __BITS8 BIT; -}; -union un_if2h { - unsigned char if2h; - __BITS8 BIT; -}; -union un_mk2 { - unsigned short mk2; - __BITS16 BIT; -}; -union un_mk2l { - unsigned char mk2l; - __BITS8 BIT; -}; -union un_mk2h { - unsigned char mk2h; - __BITS8 BIT; -}; -union un_pr02 { - unsigned short pr02; - __BITS16 BIT; -}; -union un_pr02l { - unsigned char pr02l; - __BITS8 BIT; -}; -union un_pr02h { - unsigned char pr02h; - __BITS8 BIT; -}; -union un_pr12 { - unsigned short pr12; - __BITS16 BIT; -}; -union un_pr12l { - unsigned char pr12l; - __BITS8 BIT; -}; -union un_pr12h { - unsigned char pr12h; - __BITS8 BIT; -}; -union un_if0 { - unsigned short if0; - __BITS16 BIT; -}; -union un_if0l { - unsigned char if0l; - __BITS8 BIT; -}; -union un_if0h { - unsigned char if0h; - __BITS8 BIT; -}; -union un_if1 { - unsigned short if1; - __BITS16 BIT; -}; -union un_if1l { - unsigned char if1l; - __BITS8 BIT; -}; -union un_if1h { - unsigned char if1h; - __BITS8 BIT; -}; -union un_mk0 { - unsigned short mk0; - __BITS16 BIT; -}; -union un_mk0l { - unsigned char mk0l; - __BITS8 BIT; -}; -union un_mk0h { - unsigned char mk0h; - __BITS8 BIT; -}; -union un_mk1 { - unsigned short mk1; - __BITS16 BIT; -}; -union un_mk1l { - unsigned char mk1l; - __BITS8 BIT; -}; -union un_mk1h { - unsigned char mk1h; - __BITS8 BIT; -}; -union un_pr00 { - unsigned short pr00; - __BITS16 BIT; -}; -union un_pr00l { - unsigned char pr00l; - __BITS8 BIT; -}; -union un_pr00h { - unsigned char pr00h; - __BITS8 BIT; -}; -union un_pr01 { - unsigned short pr01; - __BITS16 BIT; -}; -union un_pr01l { - unsigned char pr01l; - __BITS8 BIT; -}; -union un_pr01h { - unsigned char pr01h; - __BITS8 BIT; -}; -union un_pr10 { - unsigned short pr10; - __BITS16 BIT; -}; -union un_pr10l { - unsigned char pr10l; - __BITS8 BIT; -}; -union un_pr10h { - unsigned char pr10h; - __BITS8 BIT; -}; -union un_pr11 { - unsigned short pr11; - __BITS16 BIT; -}; -union un_pr11l { - unsigned char pr11l; - __BITS8 BIT; -}; -union un_pr11h { - unsigned char pr11h; - __BITS8 BIT; -}; -union un_pmc { - unsigned char pmc; - __BITS8 BIT; -}; - -#define P0 (*(volatile union un_p0 *)0xFFF00).p0 -#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT -#define P1 (*(volatile union un_p1 *)0xFFF01).p1 -#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT -#define P2 (*(volatile union un_p2 *)0xFFF02).p2 -#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT -#define P3 (*(volatile union un_p3 *)0xFFF03).p3 -#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT -#define P4 (*(volatile union un_p4 *)0xFFF04).p4 -#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT -#define P5 (*(volatile union un_p5 *)0xFFF05).p5 -#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT -#define P6 (*(volatile union un_p6 *)0xFFF06).p6 -#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT -#define P7 (*(volatile union un_p7 *)0xFFF07).p7 -#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT -#define P8 (*(volatile union un_p8 *)0xFFF08).p8 -#define P8_bit (*(volatile union un_p8 *)0xFFF08).BIT -#define P10 (*(volatile union un_p10 *)0xFFF0A).p10 -#define P10_bit (*(volatile union un_p10 *)0xFFF0A).BIT -#define P11 (*(volatile union un_p11 *)0xFFF0B).p11 -#define P11_bit (*(volatile union un_p11 *)0xFFF0B).BIT -#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 -#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT -#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 -#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT -#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 -#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT -#define P15 (*(volatile union un_p15 *)0xFFF0F).p15 -#define P15_bit (*(volatile union un_p15 *)0xFFF0F).BIT -#define SDR00 (*(volatile unsigned short *)0xFFF10) -#define SIO00 (*(volatile unsigned char *)0xFFF10) -#define TXD0 (*(volatile unsigned char *)0xFFF10) -#define SDR01 (*(volatile unsigned short *)0xFFF12) -#define RXD0 (*(volatile unsigned char *)0xFFF12) -#define SIO01 (*(volatile unsigned char *)0xFFF12) -#define SDR12 (*(volatile unsigned short *)0xFFF14) -#define SIO30 (*(volatile unsigned char *)0xFFF14) -#define TXD3 (*(volatile unsigned char *)0xFFF14) -#define SDR13 (*(volatile unsigned short *)0xFFF16) -#define RXD3 (*(volatile unsigned char *)0xFFF16) -#define SIO31 (*(volatile unsigned char *)0xFFF16) -#define TDR00 (*(volatile unsigned short *)0xFFF18) -#define TDR01 (*(volatile unsigned short *)0xFFF1A) -#define TDR01L (*(volatile unsigned char *)0xFFF1A) -#define TDR01H (*(volatile unsigned char *)0xFFF1B) -#define ADCR (*(volatile unsigned short *)0xFFF1E) -#define ADCRH (*(volatile unsigned char *)0xFFF1F) -#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 -#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT -#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 -#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT -#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 -#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT -#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 -#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT -#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 -#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT -#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 -#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT -#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 -#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT -#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 -#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT -#define PM8 (*(volatile union un_pm8 *)0xFFF28).pm8 -#define PM8_bit (*(volatile union un_pm8 *)0xFFF28).BIT -#define PM10 (*(volatile union un_pm10 *)0xFFF2A).pm10 -#define PM10_bit (*(volatile union un_pm10 *)0xFFF2A).BIT -#define PM11 (*(volatile union un_pm11 *)0xFFF2B).pm11 -#define PM11_bit (*(volatile union un_pm11 *)0xFFF2B).BIT -#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 -#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT -#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 -#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT -#define PM15 (*(volatile union un_pm15 *)0xFFF2F).pm15 -#define PM15_bit (*(volatile union un_pm15 *)0xFFF2F).BIT -#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 -#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT -#define ADS (*(volatile union un_ads *)0xFFF31).ads -#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT -#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 -#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT -#define DACS0 (*(volatile unsigned char *)0xFFF34) -#define DACS1 (*(volatile unsigned char *)0xFFF35) -#define DAM (*(volatile union un_dam *)0xFFF36).dam -#define DAM_bit (*(volatile union un_dam *)0xFFF36).BIT -#define KRM (*(volatile union un_krm *)0xFFF37).krm -#define KRM_bit (*(volatile union un_krm *)0xFFF37).BIT -#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 -#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT -#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 -#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT -#define EGP1 (*(volatile union un_egp1 *)0xFFF3A).egp1 -#define EGP1_bit (*(volatile union un_egp1 *)0xFFF3A).BIT -#define EGN1 (*(volatile union un_egn1 *)0xFFF3B).egn1 -#define EGN1_bit (*(volatile union un_egn1 *)0xFFF3B).BIT -#define SDR02 (*(volatile unsigned short *)0xFFF44) -#define SIO10 (*(volatile unsigned char *)0xFFF44) -#define TXD1 (*(volatile unsigned char *)0xFFF44) -#define SDR03 (*(volatile unsigned short *)0xFFF46) -#define RXD1 (*(volatile unsigned char *)0xFFF46) -#define SIO11 (*(volatile unsigned char *)0xFFF46) -#define SDR10 (*(volatile unsigned short *)0xFFF48) -#define SIO20 (*(volatile unsigned char *)0xFFF48) -#define TXD2 (*(volatile unsigned char *)0xFFF48) -#define SDR11 (*(volatile unsigned short *)0xFFF4A) -#define RXD2 (*(volatile unsigned char *)0xFFF4A) -#define SIO21 (*(volatile unsigned char *)0xFFF4A) -#define IICA0 (*(volatile unsigned char *)0xFFF50) -#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 -#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT -#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 -#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT -#define IICA1 (*(volatile unsigned char *)0xFFF54) -#define IICS1 (*(volatile union un_iics1 *)0xFFF55).iics1 -#define IICS1_bit (*(volatile union un_iics1 *)0xFFF55).BIT -#define IICF1 (*(volatile union un_iicf1 *)0xFFF56).iicf1 -#define IICF1_bit (*(volatile union un_iicf1 *)0xFFF56).BIT -#define TRDGRC0 (*(volatile unsigned short *)0xFFF58) -#define TRDGRD0 (*(volatile unsigned short *)0xFFF5A) -#define TRDGRC1 (*(volatile unsigned short *)0xFFF5C) -#define TRDGRD1 (*(volatile unsigned short *)0xFFF5E) -#define TRGGRC (*(volatile unsigned short *)0xFFF60) -#define TRGGRD (*(volatile unsigned short *)0xFFF62) -#define TDR02 (*(volatile unsigned short *)0xFFF64) -#define TDR03 (*(volatile unsigned short *)0xFFF66) -#define TDR03L (*(volatile unsigned char *)0xFFF66) -#define TDR03H (*(volatile unsigned char *)0xFFF67) -#define TDR10 (*(volatile unsigned short *)0xFFF70) -#define TDR11 (*(volatile unsigned short *)0xFFF72) -#define TDR11L (*(volatile unsigned char *)0xFFF72) -#define TDR11H (*(volatile unsigned char *)0xFFF73) -#define TDR12 (*(volatile unsigned short *)0xFFF74) -#define TDR13 (*(volatile unsigned short *)0xFFF76) -#define TDR13L (*(volatile unsigned char *)0xFFF76) -#define TDR13H (*(volatile unsigned char *)0xFFF77) -#define FLPMC (*(volatile unsigned char *)0xFFF80) -#define FLARS (*(volatile union un_flars *)0xFFF81).flars -#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT -#define FLAPL (*(volatile unsigned short *)0xFFF82) -#define FLAPH (*(volatile unsigned char *)0xFFF84) -#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq -#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT -#define FLSEDL (*(volatile unsigned short *)0xFFF86) -#define FLSEDH (*(volatile unsigned char *)0xFFF88) -#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst -#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT -#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl -#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT -#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth -#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT -#define FLWL (*(volatile unsigned short *)0xFFF8C) -#define FLWH (*(volatile unsigned short *)0xFFF8E) -#define ITMC (*(volatile unsigned short *)0xFFF90) -#define SEC (*(volatile unsigned char *)0xFFF92) -#define MIN (*(volatile unsigned char *)0xFFF93) -#define HOUR (*(volatile unsigned char *)0xFFF94) -#define WEEK (*(volatile unsigned char *)0xFFF95) -#define DAY (*(volatile unsigned char *)0xFFF96) -#define MONTH (*(volatile unsigned char *)0xFFF97) -#define YEAR (*(volatile unsigned char *)0xFFF98) -#define SUBCUD (*(volatile unsigned char *)0xFFF99) -#define ALARMWM (*(volatile unsigned char *)0xFFF9A) -#define ALARMWH (*(volatile unsigned char *)0xFFF9B) -#define ALARMWW (*(volatile unsigned char *)0xFFF9C) -#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 -#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT -#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 -#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT -#define CMC (*(volatile unsigned char *)0xFFFA0) -#define CSC (*(volatile union un_csc *)0xFFFA1).csc -#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT -#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc -#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT -#define OSTS (*(volatile unsigned char *)0xFFFA3) -#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc -#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT -#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 -#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT -#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 -#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT -#define RESF (*(volatile unsigned char *)0xFFFA8) -#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim -#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT -#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis -#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT -#define WDTE (*(volatile unsigned char *)0xFFFAB) -#define CRCIN (*(volatile unsigned char *)0xFFFAC) -#define RXB (*(volatile unsigned char *)0xFFFAD) -#define TXS (*(volatile unsigned char *)0xFFFAD) -#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 -#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT -#define ASIM (*(volatile union un_asim *)0xFFFAF).asim -#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT -#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 -#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT -#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l -#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT -#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h -#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT -#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 -#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT -#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l -#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT -#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h -#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT -#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 -#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT -#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l -#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT -#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h -#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT -#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 -#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT -#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l -#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT -#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h -#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT -#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 -#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT -#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l -#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT -#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h -#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT -#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 -#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT -#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l -#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT -#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h -#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT -#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 -#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT -#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l -#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT -#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h -#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT -#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 -#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT -#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l -#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT -#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h -#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT -#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 -#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT -#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l -#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT -#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h -#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT -#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 -#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT -#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l -#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT -#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h -#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT -#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 -#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT -#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l -#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT -#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h -#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT -#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 -#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT -#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l -#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT -#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h -#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT -#define MACRL (*(volatile unsigned short *)0xFFFF0) -#define MACRH (*(volatile unsigned short *)0xFFFF2) -#define MDUC (*(volatile unsigned char *)0xFFFFB) -#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc -#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT - -/* - Sfr bits - */ -#define ADCE ADM0_bit.no0 -#define ADCS ADM0_bit.no7 -#define DACE0 DAM_bit.no4 -#define DACE1 DAM_bit.no5 -#define SPD0 IICS0_bit.no0 -#define STD0 IICS0_bit.no1 -#define ACKD0 IICS0_bit.no2 -#define TRC0 IICS0_bit.no3 -#define COI0 IICS0_bit.no4 -#define EXC0 IICS0_bit.no5 -#define ALD0 IICS0_bit.no6 -#define MSTS0 IICS0_bit.no7 -#define IICRSV0 IICF0_bit.no0 -#define STCEN0 IICF0_bit.no1 -#define IICBSY0 IICF0_bit.no6 -#define STCF0 IICF0_bit.no7 -#define SPD1 IICS1_bit.no0 -#define STD1 IICS1_bit.no1 -#define ACKD1 IICS1_bit.no2 -#define TRC1 IICS1_bit.no3 -#define COI1 IICS1_bit.no4 -#define EXC1 IICS1_bit.no5 -#define ALD1 IICS1_bit.no6 -#define MSTS1 IICS1_bit.no7 -#define IICRSV1 IICF1_bit.no0 -#define STCEN1 IICF1_bit.no1 -#define IICBSY1 IICF1_bit.no6 -#define STCF1 IICF1_bit.no7 -#define FSSTP FSSQ_bit.no6 -#define SQST FSSQ_bit.no7 -#define SQEND FSASTH_bit.no6 -#define ESQEND FSASTH_bit.no7 -#define RCLOE1 RTCC0_bit.no5 -#define RTCE RTCC0_bit.no7 -#define RWAIT RTCC1_bit.no0 -#define RWST RTCC1_bit.no1 -#define RIFG RTCC1_bit.no3 -#define WAFG RTCC1_bit.no4 -#define WALIE RTCC1_bit.no6 -#define WALE RTCC1_bit.no7 -#define HIOSTOP CSC_bit.no0 -#define XTSTOP CSC_bit.no6 -#define MSTOP CSC_bit.no7 -#define SDIV CKC_bit.no3 -#define MCM0 CKC_bit.no4 -#define MCS CKC_bit.no5 -#define CSS CKC_bit.no6 -#define CLS CKC_bit.no7 -#define PCLOE0 CKS0_bit.no7 -#define PCLOE1 CKS1_bit.no7 -#define LVIF LVIM_bit.no0 -#define LVIOMSK LVIM_bit.no1 -#define LVISEN LVIM_bit.no7 -#define LVILV LVIS_bit.no0 -#define LVIMD LVIS_bit.no7 -#define TMIF11 IF2_bit.no0 -#define TMIF12 IF2_bit.no1 -#define TMIF13 IF2_bit.no2 -#define PIF6 IF2_bit.no3 -#define PIF7 IF2_bit.no4 -#define PIF8 IF2_bit.no5 -#define PIF9 IF2_bit.no6 -#define CMPIF0 IF2_bit.no7 -#define PIF10 IF2_bit.no7 -#define CMPIF1 IF2H_bit.no0 -#define PIF11 IF2H_bit.no0 -#define TRDIF0 IF2H_bit.no1 -#define TRDIF1 IF2H_bit.no2 -#define TRGIF IF2H_bit.no3 -#define SREIF3 IF2H_bit.no4 -#define TMIF13H IF2H_bit.no4 -#define IICAIF1 IF2H_bit.no6 -#define FLIF IF2H_bit.no7 -#define TMMK11 MK2_bit.no0 -#define TMMK12 MK2_bit.no1 -#define TMMK13 MK2_bit.no2 -#define PMK6 MK2_bit.no3 -#define PMK7 MK2_bit.no4 -#define PMK8 MK2_bit.no5 -#define PMK9 MK2_bit.no6 -#define CMPMK0 MK2_bit.no7 -#define PMK10 MK2_bit.no7 -#define CMPMK1 MK2H_bit.no0 -#define PMK11 MK2H_bit.no0 -#define TRDMK0 MK2H_bit.no1 -#define TRDMK1 MK2H_bit.no2 -#define TRGMK MK2H_bit.no3 -#define SREMK3 MK2H_bit.no4 -#define TMMK13H MK2H_bit.no4 -#define IICAMK1 MK2H_bit.no6 -#define FLMK MK2H_bit.no7 -#define TMPR011 PR02_bit.no0 -#define TMPR012 PR02_bit.no1 -#define TMPR013 PR02_bit.no2 -#define PPR06 PR02_bit.no3 -#define PPR07 PR02_bit.no4 -#define PPR08 PR02_bit.no5 -#define PPR09 PR02_bit.no6 -#define CMPPR00 PR02_bit.no7 -#define PPR010 PR02_bit.no7 -#define CMPPR01 PR02H_bit.no0 -#define PPR011 PR02H_bit.no0 -#define TRDPR00 PR02H_bit.no1 -#define TRDPR01 PR02H_bit.no2 -#define TRGPR0 PR02H_bit.no3 -#define SREPR03 PR02H_bit.no4 -#define TMPR013H PR02H_bit.no4 -#define IICAPR01 PR02H_bit.no6 -#define FLPR0 PR02H_bit.no7 -#define TMPR111 PR12_bit.no0 -#define TMPR112 PR12_bit.no1 -#define TMPR113 PR12_bit.no2 -#define PPR16 PR12_bit.no3 -#define PPR17 PR12_bit.no4 -#define PPR18 PR12_bit.no5 -#define PPR19 PR12_bit.no6 -#define CMPPR10 PR12_bit.no7 -#define PPR110 PR12_bit.no7 -#define CMPPR11 PR12H_bit.no0 -#define PPR111 PR12H_bit.no0 -#define TRDPR10 PR12H_bit.no1 -#define TRDPR11 PR12H_bit.no2 -#define TRGPR1 PR12H_bit.no3 -#define SREPR13 PR12H_bit.no4 -#define TMPR113H PR12H_bit.no4 -#define IICAPR11 PR12H_bit.no6 -#define FLPR1 PR12H_bit.no7 -#define SROIF IF0_bit.no0 -#define WDTIIF IF0_bit.no0 -#define LVIIF IF0_bit.no1 -#define PIF0 IF0_bit.no2 -#define PIF1 IF0_bit.no3 -#define PIF2 IF0_bit.no4 -#define PIF3 IF0_bit.no5 -#define PIF4 IF0_bit.no6 -#define PIF5 IF0_bit.no7 -#define CSIIF20 IF0H_bit.no0 -#define IICIF20 IF0H_bit.no0 -#define STIF2 IF0H_bit.no0 -#define CSIIF21 IF0H_bit.no1 -#define IICIF21 IF0H_bit.no1 -#define SRIF2 IF0H_bit.no1 -#define SREIF2 IF0H_bit.no2 -#define TMIF11H IF0H_bit.no2 -#define CSIIF00 IF0H_bit.no5 -#define IICIF00 IF0H_bit.no5 -#define STIF0 IF0H_bit.no5 -#define CSIIF01 IF0H_bit.no6 -#define IICIF01 IF0H_bit.no6 -#define SRIF0 IF0H_bit.no6 -#define SREIF0 IF0H_bit.no7 -#define TMIF01H IF0H_bit.no7 -#define CSIIF10 IF1_bit.no0 -#define IICIF10 IF1_bit.no0 -#define STIF1 IF1_bit.no0 -#define CSIIF11 IF1_bit.no1 -#define IICIF11 IF1_bit.no1 -#define SRIF1 IF1_bit.no1 -#define SREIF1 IF1_bit.no2 -#define TMIF03H IF1_bit.no2 -#define IICAIF0 IF1_bit.no3 -#define TMIF00 IF1_bit.no4 -#define TMIF01 IF1_bit.no5 -#define TMIF02 IF1_bit.no6 -#define TMIF03 IF1_bit.no7 -#define ADIF IF1H_bit.no0 -#define RTCIF IF1H_bit.no1 -#define ITIF IF1H_bit.no2 -#define KRIF IF1H_bit.no3 -#define CSIIF30 IF1H_bit.no4 -#define IICIF30 IF1H_bit.no4 -#define STIF3 IF1H_bit.no4 -#define CSIIF31 IF1H_bit.no5 -#define IICIF31 IF1H_bit.no5 -#define SRIF3 IF1H_bit.no5 -#define TRJIF0 IF1H_bit.no6 -#define TMIF10 IF1H_bit.no7 -#define SROMK MK0_bit.no0 -#define WDTIMK MK0_bit.no0 -#define LVIMK MK0_bit.no1 -#define PMK0 MK0_bit.no2 -#define PMK1 MK0_bit.no3 -#define PMK2 MK0_bit.no4 -#define PMK3 MK0_bit.no5 -#define PMK4 MK0_bit.no6 -#define PMK5 MK0_bit.no7 -#define CSIMK20 MK0H_bit.no0 -#define IICMK20 MK0H_bit.no0 -#define STMK2 MK0H_bit.no0 -#define CSIMK21 MK0H_bit.no1 -#define IICMK21 MK0H_bit.no1 -#define SRMK2 MK0H_bit.no1 -#define SREMK2 MK0H_bit.no2 -#define TMMK11H MK0H_bit.no2 -#define CSIMK00 MK0H_bit.no5 -#define IICMK00 MK0H_bit.no5 -#define STMK0 MK0H_bit.no5 -#define CSIMK01 MK0H_bit.no6 -#define IICMK01 MK0H_bit.no6 -#define SRMK0 MK0H_bit.no6 -#define SREMK0 MK0H_bit.no7 -#define TMMK01H MK0H_bit.no7 -#define CSIMK10 MK1_bit.no0 -#define IICMK10 MK1_bit.no0 -#define STMK1 MK1_bit.no0 -#define CSIMK11 MK1_bit.no1 -#define IICMK11 MK1_bit.no1 -#define SRMK1 MK1_bit.no1 -#define SREMK1 MK1_bit.no2 -#define TMMK03H MK1_bit.no2 -#define IICAMK0 MK1_bit.no3 -#define TMMK00 MK1_bit.no4 -#define TMMK01 MK1_bit.no5 -#define TMMK02 MK1_bit.no6 -#define TMMK03 MK1_bit.no7 -#define ADMK MK1H_bit.no0 -#define RTCMK MK1H_bit.no1 -#define ITMK MK1H_bit.no2 -#define KRMK MK1H_bit.no3 -#define CSIMK30 MK1H_bit.no4 -#define IICMK30 MK1H_bit.no4 -#define STMK3 MK1H_bit.no4 -#define CSIMK31 MK1H_bit.no5 -#define IICMK31 MK1H_bit.no5 -#define SRMK3 MK1H_bit.no5 -#define TRJMK0 MK1H_bit.no6 -#define TMMK10 MK1H_bit.no7 -#define SROPR0 PR00_bit.no0 -#define WDTIPR0 PR00_bit.no0 -#define LVIPR0 PR00_bit.no1 -#define PPR00 PR00_bit.no2 -#define PPR01 PR00_bit.no3 -#define PPR02 PR00_bit.no4 -#define PPR03 PR00_bit.no5 -#define PPR04 PR00_bit.no6 -#define PPR05 PR00_bit.no7 -#define CSIPR020 PR00H_bit.no0 -#define IICPR020 PR00H_bit.no0 -#define STPR02 PR00H_bit.no0 -#define CSIPR021 PR00H_bit.no1 -#define IICPR021 PR00H_bit.no1 -#define SRPR02 PR00H_bit.no1 -#define SREPR02 PR00H_bit.no2 -#define TMPR011H PR00H_bit.no2 -#define CSIPR000 PR00H_bit.no5 -#define IICPR000 PR00H_bit.no5 -#define STPR00 PR00H_bit.no5 -#define CSIPR001 PR00H_bit.no6 -#define IICPR001 PR00H_bit.no6 -#define SRPR00 PR00H_bit.no6 -#define SREPR00 PR00H_bit.no7 -#define TMPR001H PR00H_bit.no7 -#define CSIPR010 PR01_bit.no0 -#define IICPR010 PR01_bit.no0 -#define STPR01 PR01_bit.no0 -#define CSIPR011 PR01_bit.no1 -#define IICPR011 PR01_bit.no1 -#define SRPR01 PR01_bit.no1 -#define SREPR01 PR01_bit.no2 -#define TMPR003H PR01_bit.no2 -#define IICAPR00 PR01_bit.no3 -#define TMPR000 PR01_bit.no4 -#define TMPR001 PR01_bit.no5 -#define TMPR002 PR01_bit.no6 -#define TMPR003 PR01_bit.no7 -#define ADPR0 PR01H_bit.no0 -#define RTCPR0 PR01H_bit.no1 -#define ITPR0 PR01H_bit.no2 -#define KRPR0 PR01H_bit.no3 -#define CSIPR030 PR01H_bit.no4 -#define IICPR030 PR01H_bit.no4 -#define STPR03 PR01H_bit.no4 -#define CSIPR031 PR01H_bit.no5 -#define IICPR031 PR01H_bit.no5 -#define SRPR03 PR01H_bit.no5 -#define TRJPR00 PR01H_bit.no6 -#define TMPR010 PR01H_bit.no7 -#define SROPR1 PR10_bit.no0 -#define WDTIPR1 PR10_bit.no0 -#define LVIPR1 PR10_bit.no1 -#define PPR10 PR10_bit.no2 -#define PPR11 PR10_bit.no3 -#define PPR12 PR10_bit.no4 -#define PPR13 PR10_bit.no5 -#define PPR14 PR10_bit.no6 -#define PPR15 PR10_bit.no7 -#define CSIPR120 PR10H_bit.no0 -#define IICPR120 PR10H_bit.no0 -#define STPR12 PR10H_bit.no0 -#define CSIPR121 PR10H_bit.no1 -#define IICPR121 PR10H_bit.no1 -#define SRPR12 PR10H_bit.no1 -#define SREPR12 PR10H_bit.no2 -#define TMPR111H PR10H_bit.no2 -#define CSIPR100 PR10H_bit.no5 -#define IICPR100 PR10H_bit.no5 -#define STPR10 PR10H_bit.no5 -#define CSIPR101 PR10H_bit.no6 -#define IICPR101 PR10H_bit.no6 -#define SRPR10 PR10H_bit.no6 -#define SREPR10 PR10H_bit.no7 -#define TMPR101H PR10H_bit.no7 -#define CSIPR110 PR11_bit.no0 -#define IICPR110 PR11_bit.no0 -#define STPR11 PR11_bit.no0 -#define CSIPR111 PR11_bit.no1 -#define IICPR111 PR11_bit.no1 -#define SRPR11 PR11_bit.no1 -#define SREPR11 PR11_bit.no2 -#define TMPR103H PR11_bit.no2 -#define IICAPR10 PR11_bit.no3 -#define TMPR100 PR11_bit.no4 -#define TMPR101 PR11_bit.no5 -#define TMPR102 PR11_bit.no6 -#define TMPR103 PR11_bit.no7 -#define ADPR1 PR11H_bit.no0 -#define RTCPR1 PR11H_bit.no1 -#define ITPR1 PR11H_bit.no2 -#define KRPR1 PR11H_bit.no3 -#define CSIPR130 PR11H_bit.no4 -#define IICPR130 PR11H_bit.no4 -#define STPR13 PR11H_bit.no4 -#define CSIPR131 PR11H_bit.no5 -#define IICPR131 PR11H_bit.no5 -#define SRPR13 PR11H_bit.no5 -#define TRJPR10 PR11H_bit.no6 -#define TMPR110 PR11H_bit.no7 -#define MAA PMC_bit.no0 - -/* - Interrupt vector addresses - */ -#define RST_vect (0x0) -#define INTDBG_vect (0x2) -#define INTSRO_vect (0x4) -#define INTWDTI_vect (0x4) -#define INTLVI_vect (0x6) -#define INTP0_vect (0x8) -#define INTP1_vect (0xA) -#define INTP2_vect (0xC) -#define INTP3_vect (0xE) -#define INTP4_vect (0x10) -#define INTP5_vect (0x12) -#define INTCSI20_vect (0x14) -#define INTIIC20_vect (0x14) -#define INTST2_vect (0x14) -#define INTCSI21_vect (0x16) -#define INTIIC21_vect (0x16) -#define INTSR2_vect (0x16) -#define INTSRE2_vect (0x18) -#define INTTM11H_vect (0x18) -#define INTCSI00_vect (0x1E) -#define INTIIC00_vect (0x1E) -#define INTST0_vect (0x1E) -#define INTCSI01_vect (0x20) -#define INTIIC01_vect (0x20) -#define INTSR0_vect (0x20) -#define INTSRE0_vect (0x22) -#define INTTM01H_vect (0x22) -#define INTCSI10_vect (0x24) -#define INTIIC10_vect (0x24) -#define INTST1_vect (0x24) -#define INTCSI11_vect (0x26) -#define INTIIC11_vect (0x26) -#define INTSR1_vect (0x26) -#define INTSRE1_vect (0x28) -#define INTTM03H_vect (0x28) -#define INTIICA0_vect (0x2A) -#define INTTM00_vect (0x2C) -#define INTTM01_vect (0x2E) -#define INTTM02_vect (0x30) -#define INTTM03_vect (0x32) -#define INTAD_vect (0x34) -#define INTRTC_vect (0x36) -#define INTIT_vect (0x38) -#define INTKR_vect (0x3A) -#define INTCSI30_vect (0x3C) -#define INTIIC30_vect (0x3C) -#define INTST3_vect (0x3C) -#define INTCSI31_vect (0x3E) -#define INTIIC31_vect (0x3E) -#define INTSR3_vect (0x3E) -#define INTTRJ0_vect (0x40) -#define INTTM10_vect (0x42) -#define INTTM11_vect (0x44) -#define INTTM12_vect (0x46) -#define INTTM13_vect (0x48) -#define INTP6_vect (0x4A) -#define INTP7_vect (0x4C) -#define INTP8_vect (0x4E) -#define INTP9_vect (0x50) -#define INTCMP0_vect (0x52) -#define INTP10_vect (0x52) -#define INTCMP1_vect (0x54) -#define INTP11_vect (0x54) -#define INTTRD0_vect (0x56) -#define INTTRD1_vect (0x58) -#define INTTRG_vect (0x5A) -#define INTSRE3_vect (0x5C) -#define INTTM13H_vect (0x5C) -#define INTIICA1_vect (0x60) -#define INTFL_vect (0x62) -#define BRK_I_vect (0x7E) -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G14_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G14_ext.h deleted file mode 100644 index 892692056..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G14_ext.h +++ /dev/null @@ -1,1204 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78G14 */ -/* FILE : iodefine_ext.h */ -/* DESCRIPTION : Definition of Extended SFRs */ -/* CPU SERIES : RL78 - G14 */ -/* CPU TYPE : R5F104PJ */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F104PJ.DVF */ -/* Copyright(C) 2012 Renesas */ -/* File Version V2.00 */ -/* Tool Version 1.9.7121 */ -/* Date Generated 13/11/2012 */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_EXT_H -#define IODEFINE_EXT_H - -/* - IO Registers - */ -union un_adm2 { - unsigned char adm2; - __BITS8 BIT; -}; -union un_pu0 { - unsigned char pu0; - __BITS8 BIT; -}; -union un_pu1 { - unsigned char pu1; - __BITS8 BIT; -}; -union un_pu3 { - unsigned char pu3; - __BITS8 BIT; -}; -union un_pu4 { - unsigned char pu4; - __BITS8 BIT; -}; -union un_pu5 { - unsigned char pu5; - __BITS8 BIT; -}; -union un_pu6 { - unsigned char pu6; - __BITS8 BIT; -}; -union un_pu7 { - unsigned char pu7; - __BITS8 BIT; -}; -union un_pu8 { - unsigned char pu8; - __BITS8 BIT; -}; -union un_pu10 { - unsigned char pu10; - __BITS8 BIT; -}; -union un_pu11 { - unsigned char pu11; - __BITS8 BIT; -}; -union un_pu12 { - unsigned char pu12; - __BITS8 BIT; -}; -union un_pu14 { - unsigned char pu14; - __BITS8 BIT; -}; -union un_pim0 { - unsigned char pim0; - __BITS8 BIT; -}; -union un_pim1 { - unsigned char pim1; - __BITS8 BIT; -}; -union un_pim3 { - unsigned char pim3; - __BITS8 BIT; -}; -union un_pim4 { - unsigned char pim4; - __BITS8 BIT; -}; -union un_pim5 { - unsigned char pim5; - __BITS8 BIT; -}; -union un_pim8 { - unsigned char pim8; - __BITS8 BIT; -}; -union un_pim14 { - unsigned char pim14; - __BITS8 BIT; -}; -union un_pom0 { - unsigned char pom0; - __BITS8 BIT; -}; -union un_pom1 { - unsigned char pom1; - __BITS8 BIT; -}; -union un_pom3 { - unsigned char pom3; - __BITS8 BIT; -}; -union un_pom4 { - unsigned char pom4; - __BITS8 BIT; -}; -union un_pom5 { - unsigned char pom5; - __BITS8 BIT; -}; -union un_pom7 { - unsigned char pom7; - __BITS8 BIT; -}; -union un_pom8 { - unsigned char pom8; - __BITS8 BIT; -}; -union un_pom14 { - unsigned char pom14; - __BITS8 BIT; -}; -union un_pmc0 { - unsigned char pmc0; - __BITS8 BIT; -}; -union un_pmc1 { - unsigned char pmc1; - __BITS8 BIT; -}; -union un_pmc10 { - unsigned char pmc10; - __BITS8 BIT; -}; -union un_pmc12 { - unsigned char pmc12; - __BITS8 BIT; -}; -union un_pmc14 { - unsigned char pmc14; - __BITS8 BIT; -}; -union un_nfen0 { - unsigned char nfen0; - __BITS8 BIT; -}; -union un_nfen1 { - unsigned char nfen1; - __BITS8 BIT; -}; -union un_nfen2 { - unsigned char nfen2; - __BITS8 BIT; -}; -union un_isc { - unsigned char isc; - __BITS8 BIT; -}; -union un_per1 { - unsigned char per1; - __BITS8 BIT; -}; -union un_pms { - unsigned char pms; - __BITS8 BIT; -}; -union un_gdidis { - unsigned char gdidis; - __BITS8 BIT; -}; -union un_dflctl { - unsigned char dflctl; - __BITS8 BIT; -}; -union un_bectl { - unsigned char bectl; - __BITS8 BIT; -}; -union un_fsse { - unsigned char fsse; - __BITS8 BIT; -}; -union un_pfs { - unsigned char pfs; - __BITS8 BIT; -}; -union un_per0 { - unsigned char per0; - __BITS8 BIT; -}; -union un_rmc { - unsigned char rmc; - __BITS8 BIT; -}; -union un_rpectl { - unsigned char rpectl; - __BITS8 BIT; -}; -union un_se0l { - unsigned char se0l; - __BITS8 BIT; -}; -union un_ss0l { - unsigned char ss0l; - __BITS8 BIT; -}; -union un_st0l { - unsigned char st0l; - __BITS8 BIT; -}; -union un_soe0l { - unsigned char soe0l; - __BITS8 BIT; -}; -union un_se1l { - unsigned char se1l; - __BITS8 BIT; -}; -union un_ss1l { - unsigned char ss1l; - __BITS8 BIT; -}; -union un_st1l { - unsigned char st1l; - __BITS8 BIT; -}; -union un_soe1l { - unsigned char soe1l; - __BITS8 BIT; -}; -union un_te0l { - unsigned char te0l; - __BITS8 BIT; -}; -union un_ts0l { - unsigned char ts0l; - __BITS8 BIT; -}; -union un_tt0l { - unsigned char tt0l; - __BITS8 BIT; -}; -union un_toe0l { - unsigned char toe0l; - __BITS8 BIT; -}; -union un_te1l { - unsigned char te1l; - __BITS8 BIT; -}; -union un_ts1l { - unsigned char ts1l; - __BITS8 BIT; -}; -union un_tt1l { - unsigned char tt1l; - __BITS8 BIT; -}; -union un_toe1l { - unsigned char toe1l; - __BITS8 BIT; -}; -union un_iicctl00 { - unsigned char iicctl00; - __BITS8 BIT; -}; -union un_iicctl01 { - unsigned char iicctl01; - __BITS8 BIT; -}; -union un_iicctl10 { - unsigned char iicctl10; - __BITS8 BIT; -}; -union un_iicctl11 { - unsigned char iicctl11; - __BITS8 BIT; -}; -union un_trjioc0 { - unsigned char trjioc0; - __BITS8 BIT; -}; -union un_trjmr0 { - unsigned char trjmr0; - __BITS8 BIT; -}; -union un_trjisr0 { - unsigned char trjisr0; - __BITS8 BIT; -}; -union un_trgmr { - unsigned char trgmr; - __BITS8 BIT; -}; -union un_trgcntc { - unsigned char trgcntc; - __BITS8 BIT; -}; -union un_trgcr { - unsigned char trgcr; - __BITS8 BIT; -}; -union un_trgier { - unsigned char trgier; - __BITS8 BIT; -}; -union un_trgsr { - unsigned char trgsr; - __BITS8 BIT; -}; -union un_trgior { - unsigned char trgior; - __BITS8 BIT; -}; -union un_trdelc { - unsigned char trdelc; - __BITS8 BIT; -}; -union un_trdmr { - unsigned char trdmr; - __BITS8 BIT; -}; -union un_trdpmr { - unsigned char trdpmr; - __BITS8 BIT; -}; -union un_trdfcr { - unsigned char trdfcr; - __BITS8 BIT; -}; -union un_trdoer1 { - unsigned char trdoer1; - __BITS8 BIT; -}; -union un_trdoer2 { - unsigned char trdoer2; - __BITS8 BIT; -}; -union un_trdocr { - unsigned char trdocr; - __BITS8 BIT; -}; -union un_trddf0 { - unsigned char trddf0; - __BITS8 BIT; -}; -union un_trddf1 { - unsigned char trddf1; - __BITS8 BIT; -}; -union un_trdcr0 { - unsigned char trdcr0; - __BITS8 BIT; -}; -union un_trdiora0 { - unsigned char trdiora0; - __BITS8 BIT; -}; -union un_trdiorc0 { - unsigned char trdiorc0; - __BITS8 BIT; -}; -union un_trdsr0 { - unsigned char trdsr0; - __BITS8 BIT; -}; -union un_trdier0 { - unsigned char trdier0; - __BITS8 BIT; -}; -union un_trdpocr0 { - unsigned char trdpocr0; - __BITS8 BIT; -}; -union un_trdcr1 { - unsigned char trdcr1; - __BITS8 BIT; -}; -union un_trdiora1 { - unsigned char trdiora1; - __BITS8 BIT; -}; -union un_trdiorc1 { - unsigned char trdiorc1; - __BITS8 BIT; -}; -union un_trdsr1 { - unsigned char trdsr1; - __BITS8 BIT; -}; -union un_trdier1 { - unsigned char trdier1; - __BITS8 BIT; -}; -union un_trdpocr1 { - unsigned char trdpocr1; - __BITS8 BIT; -}; -union un_dtcen0 { - unsigned char dtcen0; - __BITS8 BIT; -}; -union un_dtcen1 { - unsigned char dtcen1; - __BITS8 BIT; -}; -union un_dtcen2 { - unsigned char dtcen2; - __BITS8 BIT; -}; -union un_dtcen3 { - unsigned char dtcen3; - __BITS8 BIT; -}; -union un_dtcen4 { - unsigned char dtcen4; - __BITS8 BIT; -}; -union un_crc0ctl { - unsigned char crc0ctl; - __BITS8 BIT; -}; -union un_elselr00 { - unsigned char elselr00; - __BITS8 BIT; -}; -union un_elselr01 { - unsigned char elselr01; - __BITS8 BIT; -}; -union un_elselr02 { - unsigned char elselr02; - __BITS8 BIT; -}; -union un_elselr03 { - unsigned char elselr03; - __BITS8 BIT; -}; -union un_elselr04 { - unsigned char elselr04; - __BITS8 BIT; -}; -union un_elselr05 { - unsigned char elselr05; - __BITS8 BIT; -}; -union un_elselr06 { - unsigned char elselr06; - __BITS8 BIT; -}; -union un_elselr07 { - unsigned char elselr07; - __BITS8 BIT; -}; -union un_elselr08 { - unsigned char elselr08; - __BITS8 BIT; -}; -union un_elselr09 { - unsigned char elselr09; - __BITS8 BIT; -}; -union un_elselr10 { - unsigned char elselr10; - __BITS8 BIT; -}; -union un_elselr11 { - unsigned char elselr11; - __BITS8 BIT; -}; -union un_elselr12 { - unsigned char elselr12; - __BITS8 BIT; -}; -union un_elselr13 { - unsigned char elselr13; - __BITS8 BIT; -}; -union un_elselr14 { - unsigned char elselr14; - __BITS8 BIT; -}; -union un_elselr15 { - unsigned char elselr15; - __BITS8 BIT; -}; -union un_elselr16 { - unsigned char elselr16; - __BITS8 BIT; -}; -union un_elselr17 { - unsigned char elselr17; - __BITS8 BIT; -}; -union un_elselr18 { - unsigned char elselr18; - __BITS8 BIT; -}; -union un_elselr19 { - unsigned char elselr19; - __BITS8 BIT; -}; -union un_elselr20 { - unsigned char elselr20; - __BITS8 BIT; -}; -union un_elselr21 { - unsigned char elselr21; - __BITS8 BIT; -}; -union un_elselr22 { - unsigned char elselr22; - __BITS8 BIT; -}; -union un_elselr23 { - unsigned char elselr23; - __BITS8 BIT; -}; -union un_elselr24 { - unsigned char elselr24; - __BITS8 BIT; -}; -union un_elselr25 { - unsigned char elselr25; - __BITS8 BIT; -}; -union un_compmdr { - unsigned char compmdr; - __BITS8 BIT; -}; -union un_compfir { - unsigned char compfir; - __BITS8 BIT; -}; -union un_compocr { - unsigned char compocr; - __BITS8 BIT; -}; -union un_comptcr { - unsigned char comptcr; - __BITS8 BIT; -}; - -#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 -#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT -#define ADUL (*(volatile unsigned char *)0xF0011) -#define ADLL (*(volatile unsigned char *)0xF0012) -#define ADTES (*(volatile unsigned char *)0xF0013) -#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 -#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT -#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 -#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT -#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 -#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT -#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 -#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT -#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 -#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT -#define PU6 (*(volatile union un_pu6 *)0xF0036).pu6 -#define PU6_bit (*(volatile union un_pu6 *)0xF0036).BIT -#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 -#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT -#define PU8 (*(volatile union un_pu8 *)0xF0038).pu8 -#define PU8_bit (*(volatile union un_pu8 *)0xF0038).BIT -#define PU10 (*(volatile union un_pu10 *)0xF003A).pu10 -#define PU10_bit (*(volatile union un_pu10 *)0xF003A).BIT -#define PU11 (*(volatile union un_pu11 *)0xF003B).pu11 -#define PU11_bit (*(volatile union un_pu11 *)0xF003B).BIT -#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 -#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT -#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 -#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT -#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 -#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT -#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 -#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT -#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 -#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT -#define PIM4 (*(volatile union un_pim4 *)0xF0044).pim4 -#define PIM4_bit (*(volatile union un_pim4 *)0xF0044).BIT -#define PIM5 (*(volatile union un_pim5 *)0xF0045).pim5 -#define PIM5_bit (*(volatile union un_pim5 *)0xF0045).BIT -#define PIM8 (*(volatile union un_pim8 *)0xF0048).pim8 -#define PIM8_bit (*(volatile union un_pim8 *)0xF0048).BIT -#define PIM14 (*(volatile union un_pim14 *)0xF004E).pim14 -#define PIM14_bit (*(volatile union un_pim14 *)0xF004E).BIT -#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 -#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT -#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 -#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT -#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 -#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT -#define POM4 (*(volatile union un_pom4 *)0xF0054).pom4 -#define POM4_bit (*(volatile union un_pom4 *)0xF0054).BIT -#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 -#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT -#define POM7 (*(volatile union un_pom7 *)0xF0057).pom7 -#define POM7_bit (*(volatile union un_pom7 *)0xF0057).BIT -#define POM8 (*(volatile union un_pom8 *)0xF0058).pom8 -#define POM8_bit (*(volatile union un_pom8 *)0xF0058).BIT -#define POM14 (*(volatile union un_pom14 *)0xF005E).pom14 -#define POM14_bit (*(volatile union un_pom14 *)0xF005E).BIT -#define PMC0 (*(volatile union un_pmc0 *)0xF0060).pmc0 -#define PMC0_bit (*(volatile union un_pmc0 *)0xF0060).BIT -#define PMC1 (*(volatile union un_pmc1 *)0xF0061).pmc1 -#define PMC1_bit (*(volatile union un_pmc1 *)0xF0061).BIT -#define PMC10 (*(volatile union un_pmc10 *)0xF006A).pmc10 -#define PMC10_bit (*(volatile union un_pmc10 *)0xF006A).BIT -#define PMC12 (*(volatile union un_pmc12 *)0xF006C).pmc12 -#define PMC12_bit (*(volatile union un_pmc12 *)0xF006C).BIT -#define PMC14 (*(volatile union un_pmc14 *)0xF006E).pmc14 -#define PMC14_bit (*(volatile union un_pmc14 *)0xF006E).BIT -#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 -#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT -#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 -#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT -#define NFEN2 (*(volatile union un_nfen2 *)0xF0072).nfen2 -#define NFEN2_bit (*(volatile union un_nfen2 *)0xF0072).BIT -#define ISC (*(volatile union un_isc *)0xF0073).isc -#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT -#define TIS0 (*(volatile unsigned char *)0xF0074) -#define ADPC (*(volatile unsigned char *)0xF0076) -#define PIOR0 (*(volatile unsigned char *)0xF0077) -#define IAWCTL (*(volatile unsigned char *)0xF0078) -#define PIOR1 (*(volatile unsigned char *)0xF0079) -#define PER1 (*(volatile union un_per1 *)0xF007A).per1 -#define PER1_bit (*(volatile union un_per1 *)0xF007A).BIT -#define PMS (*(volatile union un_pms *)0xF007B).pms -#define PMS_bit (*(volatile union un_pms *)0xF007B).BIT -#define GDIDIS (*(volatile union un_gdidis *)0xF007D).gdidis -#define GDIDIS_bit (*(volatile union un_gdidis *)0xF007D).BIT -#define PRDSEL (*(volatile unsigned short *)0xF007E) -#define TOOLEN (*(volatile unsigned char *)0xF0080) -#define BPAL0 (*(volatile unsigned char *)0xF0081) -#define BPAH0 (*(volatile unsigned char *)0xF0082) -#define BPAS0 (*(volatile unsigned char *)0xF0083) -#define BACDVL0 (*(volatile unsigned char *)0xF0084) -#define BACDVH0 (*(volatile unsigned char *)0xF0085) -#define BACDML0 (*(volatile unsigned char *)0xF0086) -#define BACDMH0 (*(volatile unsigned char *)0xF0087) -#define MONMOD (*(volatile unsigned char *)0xF0088) -#define BPAL1 (*(volatile unsigned char *)0xF0089) -#define BPAH1 (*(volatile unsigned char *)0xF008A) -#define BPAS1 (*(volatile unsigned char *)0xF008B) -#define BACDVL1 (*(volatile unsigned char *)0xF008C) -#define BACDVH1 (*(volatile unsigned char *)0xF008D) -#define BACDML1 (*(volatile unsigned char *)0xF008E) -#define BACDMH1 (*(volatile unsigned char *)0xF008F) -#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl -#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT -#define HIOTRM (*(volatile unsigned char *)0xF00A0) -#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl -#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT -#define HOCODIV (*(volatile unsigned char *)0xF00A8) -#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) -#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) -#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) -#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) -#define FLSEC (*(volatile unsigned short *)0xF00B0) -#define FLFSWS (*(volatile unsigned short *)0xF00B2) -#define FLFSWE (*(volatile unsigned short *)0xF00B4) -#define FSSET (*(volatile unsigned char *)0xF00B6) -#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse -#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT -#define FLFADL (*(volatile unsigned short *)0xF00B8) -#define FLFADH (*(volatile unsigned char *)0xF00BA) -#define PFCMD (*(volatile unsigned char *)0xF00C0) -#define PFS (*(volatile union un_pfs *)0xF00C1).pfs -#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT -#define FLRL (*(volatile unsigned short *)0xF00C2) -#define FLRH (*(volatile unsigned short *)0xF00C4) -#define FLWE (*(volatile unsigned char *)0xF00C6) -#define FLRE (*(volatile unsigned char *)0xF00C7) -#define FLTMS (*(volatile unsigned short *)0xF00C8) -#define DFLMC (*(volatile unsigned short *)0xF00CA) -#define FLMCL (*(volatile unsigned short *)0xF00CC) -#define FLMCH (*(volatile unsigned char *)0xF00CE) -#define FSCTL (*(volatile unsigned char *)0xF00CF) -#define ICEADR (*(volatile unsigned short *)0xF00D0) -#define ICEDAT (*(volatile unsigned short *)0xF00D2) -#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 -#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT -#define OSMC (*(volatile unsigned char *)0xF00F3) -#define RMC (*(volatile union un_rmc *)0xF00F4).rmc -#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT -#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl -#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT -#define BCDADJ (*(volatile unsigned char *)0xF00FE) -#define VECTCTRL (*(volatile unsigned char *)0xF00FF) -#define SSR00 (*(volatile unsigned short *)0xF0100) -#define SSR00L (*(volatile unsigned char *)0xF0100) -#define SSR01 (*(volatile unsigned short *)0xF0102) -#define SSR01L (*(volatile unsigned char *)0xF0102) -#define SSR02 (*(volatile unsigned short *)0xF0104) -#define SSR02L (*(volatile unsigned char *)0xF0104) -#define SSR03 (*(volatile unsigned short *)0xF0106) -#define SSR03L (*(volatile unsigned char *)0xF0106) -#define SIR00 (*(volatile unsigned short *)0xF0108) -#define SIR00L (*(volatile unsigned char *)0xF0108) -#define SIR01 (*(volatile unsigned short *)0xF010A) -#define SIR01L (*(volatile unsigned char *)0xF010A) -#define SIR02 (*(volatile unsigned short *)0xF010C) -#define SIR02L (*(volatile unsigned char *)0xF010C) -#define SIR03 (*(volatile unsigned short *)0xF010E) -#define SIR03L (*(volatile unsigned char *)0xF010E) -#define SMR00 (*(volatile unsigned short *)0xF0110) -#define SMR01 (*(volatile unsigned short *)0xF0112) -#define SMR02 (*(volatile unsigned short *)0xF0114) -#define SMR03 (*(volatile unsigned short *)0xF0116) -#define SCR00 (*(volatile unsigned short *)0xF0118) -#define SCR01 (*(volatile unsigned short *)0xF011A) -#define SCR02 (*(volatile unsigned short *)0xF011C) -#define SCR03 (*(volatile unsigned short *)0xF011E) -#define SE0 (*(volatile unsigned short *)0xF0120) -#define SE0L (*(volatile union un_se0l *)0xF0120).se0l -#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT -#define SS0 (*(volatile unsigned short *)0xF0122) -#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l -#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT -#define ST0 (*(volatile unsigned short *)0xF0124) -#define ST0L (*(volatile union un_st0l *)0xF0124).st0l -#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT -#define SPS0 (*(volatile unsigned short *)0xF0126) -#define SPS0L (*(volatile unsigned char *)0xF0126) -#define SO0 (*(volatile unsigned short *)0xF0128) -#define SOE0 (*(volatile unsigned short *)0xF012A) -#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l -#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT -#define EDR00 (*(volatile unsigned short *)0xF012C) -#define EDR00L (*(volatile unsigned char *)0xF012C) -#define EDR01 (*(volatile unsigned short *)0xF012E) -#define EDR01L (*(volatile unsigned char *)0xF012E) -#define EDR02 (*(volatile unsigned short *)0xF0130) -#define EDR02L (*(volatile unsigned char *)0xF0130) -#define EDR03 (*(volatile unsigned short *)0xF0132) -#define EDR03L (*(volatile unsigned char *)0xF0132) -#define SOL0 (*(volatile unsigned short *)0xF0134) -#define SOL0L (*(volatile unsigned char *)0xF0134) -#define SSC0 (*(volatile unsigned short *)0xF0138) -#define SSC0L (*(volatile unsigned char *)0xF0138) -#define SSR10 (*(volatile unsigned short *)0xF0140) -#define SSR10L (*(volatile unsigned char *)0xF0140) -#define SSR11 (*(volatile unsigned short *)0xF0142) -#define SSR11L (*(volatile unsigned char *)0xF0142) -#define SSR12 (*(volatile unsigned short *)0xF0144) -#define SSR12L (*(volatile unsigned char *)0xF0144) -#define SSR13 (*(volatile unsigned short *)0xF0146) -#define SSR13L (*(volatile unsigned char *)0xF0146) -#define SIR10 (*(volatile unsigned short *)0xF0148) -#define SIR10L (*(volatile unsigned char *)0xF0148) -#define SIR11 (*(volatile unsigned short *)0xF014A) -#define SIR11L (*(volatile unsigned char *)0xF014A) -#define SIR12 (*(volatile unsigned short *)0xF014C) -#define SIR12L (*(volatile unsigned char *)0xF014C) -#define SIR13 (*(volatile unsigned short *)0xF014E) -#define SIR13L (*(volatile unsigned char *)0xF014E) -#define SMR10 (*(volatile unsigned short *)0xF0150) -#define SMR11 (*(volatile unsigned short *)0xF0152) -#define SMR12 (*(volatile unsigned short *)0xF0154) -#define SMR13 (*(volatile unsigned short *)0xF0156) -#define SCR10 (*(volatile unsigned short *)0xF0158) -#define SCR11 (*(volatile unsigned short *)0xF015A) -#define SCR12 (*(volatile unsigned short *)0xF015C) -#define SCR13 (*(volatile unsigned short *)0xF015E) -#define SE1 (*(volatile unsigned short *)0xF0160) -#define SE1L (*(volatile union un_se1l *)0xF0160).se1l -#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT -#define SS1 (*(volatile unsigned short *)0xF0162) -#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l -#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT -#define ST1 (*(volatile unsigned short *)0xF0164) -#define ST1L (*(volatile union un_st1l *)0xF0164).st1l -#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT -#define SPS1 (*(volatile unsigned short *)0xF0166) -#define SPS1L (*(volatile unsigned char *)0xF0166) -#define SO1 (*(volatile unsigned short *)0xF0168) -#define SOE1 (*(volatile unsigned short *)0xF016A) -#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l -#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT -#define EDR10 (*(volatile unsigned short *)0xF016C) -#define EDR10L (*(volatile unsigned char *)0xF016C) -#define EDR11 (*(volatile unsigned short *)0xF016E) -#define EDR11L (*(volatile unsigned char *)0xF016E) -#define EDR12 (*(volatile unsigned short *)0xF0170) -#define EDR12L (*(volatile unsigned char *)0xF0170) -#define EDR13 (*(volatile unsigned short *)0xF0172) -#define EDR13L (*(volatile unsigned char *)0xF0172) -#define SOL1 (*(volatile unsigned short *)0xF0174) -#define SOL1L (*(volatile unsigned char *)0xF0174) -#define SSC1 (*(volatile unsigned short *)0xF0178) -#define SSC1L (*(volatile unsigned char *)0xF0178) -#define TCR00 (*(volatile unsigned short *)0xF0180) -#define TCR01 (*(volatile unsigned short *)0xF0182) -#define TCR02 (*(volatile unsigned short *)0xF0184) -#define TCR03 (*(volatile unsigned short *)0xF0186) -#define TMR00 (*(volatile unsigned short *)0xF0190) -#define TMR01 (*(volatile unsigned short *)0xF0192) -#define TMR02 (*(volatile unsigned short *)0xF0194) -#define TMR03 (*(volatile unsigned short *)0xF0196) -#define TSR00 (*(volatile unsigned short *)0xF01A0) -#define TSR00L (*(volatile unsigned char *)0xF01A0) -#define TSR01 (*(volatile unsigned short *)0xF01A2) -#define TSR01L (*(volatile unsigned char *)0xF01A2) -#define TSR02 (*(volatile unsigned short *)0xF01A4) -#define TSR02L (*(volatile unsigned char *)0xF01A4) -#define TSR03 (*(volatile unsigned short *)0xF01A6) -#define TSR03L (*(volatile unsigned char *)0xF01A6) -#define TE0 (*(volatile unsigned short *)0xF01B0) -#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l -#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT -#define TS0 (*(volatile unsigned short *)0xF01B2) -#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l -#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT -#define TT0 (*(volatile unsigned short *)0xF01B4) -#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l -#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT -#define TPS0 (*(volatile unsigned short *)0xF01B6) -#define TO0 (*(volatile unsigned short *)0xF01B8) -#define TO0L (*(volatile unsigned char *)0xF01B8) -#define TOE0 (*(volatile unsigned short *)0xF01BA) -#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l -#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT -#define TOL0 (*(volatile unsigned short *)0xF01BC) -#define TOL0L (*(volatile unsigned char *)0xF01BC) -#define TOM0 (*(volatile unsigned short *)0xF01BE) -#define TOM0L (*(volatile unsigned char *)0xF01BE) -#define TCR10 (*(volatile unsigned short *)0xF01C0) -#define TCR11 (*(volatile unsigned short *)0xF01C2) -#define TCR12 (*(volatile unsigned short *)0xF01C4) -#define TCR13 (*(volatile unsigned short *)0xF01C6) -#define TMR10 (*(volatile unsigned short *)0xF01D0) -#define TMR11 (*(volatile unsigned short *)0xF01D2) -#define TMR12 (*(volatile unsigned short *)0xF01D4) -#define TMR13 (*(volatile unsigned short *)0xF01D6) -#define TSR10 (*(volatile unsigned short *)0xF01E0) -#define TSR10L (*(volatile unsigned char *)0xF01E0) -#define TSR11 (*(volatile unsigned short *)0xF01E2) -#define TSR11L (*(volatile unsigned char *)0xF01E2) -#define TSR12 (*(volatile unsigned short *)0xF01E4) -#define TSR12L (*(volatile unsigned char *)0xF01E4) -#define TSR13 (*(volatile unsigned short *)0xF01E6) -#define TSR13L (*(volatile unsigned char *)0xF01E6) -#define TE1 (*(volatile unsigned short *)0xF01F0) -#define TE1L (*(volatile union un_te1l *)0xF01F0).te1l -#define TE1L_bit (*(volatile union un_te1l *)0xF01F0).BIT -#define TS1 (*(volatile unsigned short *)0xF01F2) -#define TS1L (*(volatile union un_ts1l *)0xF01F2).ts1l -#define TS1L_bit (*(volatile union un_ts1l *)0xF01F2).BIT -#define TT1 (*(volatile unsigned short *)0xF01F4) -#define TT1L (*(volatile union un_tt1l *)0xF01F4).tt1l -#define TT1L_bit (*(volatile union un_tt1l *)0xF01F4).BIT -#define TPS1 (*(volatile unsigned short *)0xF01F6) -#define TO1 (*(volatile unsigned short *)0xF01F8) -#define TO1L (*(volatile unsigned char *)0xF01F8) -#define TOE1 (*(volatile unsigned short *)0xF01FA) -#define TOE1L (*(volatile union un_toe1l *)0xF01FA).toe1l -#define TOE1L_bit (*(volatile union un_toe1l *)0xF01FA).BIT -#define TOL1 (*(volatile unsigned short *)0xF01FC) -#define TOL1L (*(volatile unsigned char *)0xF01FC) -#define TOM1 (*(volatile unsigned short *)0xF01FE) -#define TOM1L (*(volatile unsigned char *)0xF01FE) -#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 -#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT -#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 -#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT -#define IICWL0 (*(volatile unsigned char *)0xF0232) -#define IICWH0 (*(volatile unsigned char *)0xF0233) -#define SVA0 (*(volatile unsigned char *)0xF0234) -#define IICSE0 (*(volatile unsigned char *)0xF0235) -#define IICCTL10 (*(volatile union un_iicctl10 *)0xF0238).iicctl10 -#define IICCTL10_bit (*(volatile union un_iicctl10 *)0xF0238).BIT -#define IICCTL11 (*(volatile union un_iicctl11 *)0xF0239).iicctl11 -#define IICCTL11_bit (*(volatile union un_iicctl11 *)0xF0239).BIT -#define IICWL1 (*(volatile unsigned char *)0xF023A) -#define IICWH1 (*(volatile unsigned char *)0xF023B) -#define SVA1 (*(volatile unsigned char *)0xF023C) -#define IICSE1 (*(volatile unsigned char *)0xF023D) -#define TRJCR0 (*(volatile unsigned char *)0xF0240) -#define TRJIOC0 (*(volatile union un_trjioc0 *)0xF0241).trjioc0 -#define TRJIOC0_bit (*(volatile union un_trjioc0 *)0xF0241).BIT -#define TRJMR0 (*(volatile union un_trjmr0 *)0xF0242).trjmr0 -#define TRJMR0_bit (*(volatile union un_trjmr0 *)0xF0242).BIT -#define TRJISR0 (*(volatile union un_trjisr0 *)0xF0243).trjisr0 -#define TRJISR0_bit (*(volatile union un_trjisr0 *)0xF0243).BIT -#define TRGMR (*(volatile union un_trgmr *)0xF0250).trgmr -#define TRGMR_bit (*(volatile union un_trgmr *)0xF0250).BIT -#define TRGCNTC (*(volatile union un_trgcntc *)0xF0251).trgcntc -#define TRGCNTC_bit (*(volatile union un_trgcntc *)0xF0251).BIT -#define TRGCR (*(volatile union un_trgcr *)0xF0252).trgcr -#define TRGCR_bit (*(volatile union un_trgcr *)0xF0252).BIT -#define TRGIER (*(volatile union un_trgier *)0xF0253).trgier -#define TRGIER_bit (*(volatile union un_trgier *)0xF0253).BIT -#define TRGSR (*(volatile union un_trgsr *)0xF0254).trgsr -#define TRGSR_bit (*(volatile union un_trgsr *)0xF0254).BIT -#define TRGIOR (*(volatile union un_trgior *)0xF0255).trgior -#define TRGIOR_bit (*(volatile union un_trgior *)0xF0255).BIT -#define TRG (*(volatile unsigned short *)0xF0256) -#define TRGGRA (*(volatile unsigned short *)0xF0258) -#define TRGGRB (*(volatile unsigned short *)0xF025A) -#define TRGGRCM (*(volatile unsigned short *)0xF025C) -#define TRGGRDM (*(volatile unsigned short *)0xF025E) -#define TRDELC (*(volatile union un_trdelc *)0xF0260).trdelc -#define TRDELC_bit (*(volatile union un_trdelc *)0xF0260).BIT -#define TRDSTR (*(volatile unsigned char *)0xF0263) -#define TRDMR (*(volatile union un_trdmr *)0xF0264).trdmr -#define TRDMR_bit (*(volatile union un_trdmr *)0xF0264).BIT -#define TRDPMR (*(volatile union un_trdpmr *)0xF0265).trdpmr -#define TRDPMR_bit (*(volatile union un_trdpmr *)0xF0265).BIT -#define TRDFCR (*(volatile union un_trdfcr *)0xF0266).trdfcr -#define TRDFCR_bit (*(volatile union un_trdfcr *)0xF0266).BIT -#define TRDOER1 (*(volatile union un_trdoer1 *)0xF0267).trdoer1 -#define TRDOER1_bit (*(volatile union un_trdoer1 *)0xF0267).BIT -#define TRDOER2 (*(volatile union un_trdoer2 *)0xF0268).trdoer2 -#define TRDOER2_bit (*(volatile union un_trdoer2 *)0xF0268).BIT -#define TRDOCR (*(volatile union un_trdocr *)0xF0269).trdocr -#define TRDOCR_bit (*(volatile union un_trdocr *)0xF0269).BIT -#define TRDDF0 (*(volatile union un_trddf0 *)0xF026A).trddf0 -#define TRDDF0_bit (*(volatile union un_trddf0 *)0xF026A).BIT -#define TRDDF1 (*(volatile union un_trddf1 *)0xF026B).trddf1 -#define TRDDF1_bit (*(volatile union un_trddf1 *)0xF026B).BIT -#define TRDCR0 (*(volatile union un_trdcr0 *)0xF0270).trdcr0 -#define TRDCR0_bit (*(volatile union un_trdcr0 *)0xF0270).BIT -#define TRDIORA0 (*(volatile union un_trdiora0 *)0xF0271).trdiora0 -#define TRDIORA0_bit (*(volatile union un_trdiora0 *)0xF0271).BIT -#define TRDIORC0 (*(volatile union un_trdiorc0 *)0xF0272).trdiorc0 -#define TRDIORC0_bit (*(volatile union un_trdiorc0 *)0xF0272).BIT -#define TRDSR0 (*(volatile union un_trdsr0 *)0xF0273).trdsr0 -#define TRDSR0_bit (*(volatile union un_trdsr0 *)0xF0273).BIT -#define TRDIER0 (*(volatile union un_trdier0 *)0xF0274).trdier0 -#define TRDIER0_bit (*(volatile union un_trdier0 *)0xF0274).BIT -#define TRDPOCR0 (*(volatile union un_trdpocr0 *)0xF0275).trdpocr0 -#define TRDPOCR0_bit (*(volatile union un_trdpocr0 *)0xF0275).BIT -#define TRD0 (*(volatile unsigned short *)0xF0276) -#define TRDGRA0 (*(volatile unsigned short *)0xF0278) -#define TRDGRB0 (*(volatile unsigned short *)0xF027A) -#define TRDGRC0M (*(volatile unsigned short *)0xF027C) -#define TRDGRD0M (*(volatile unsigned short *)0xF027E) -#define TRDCR1 (*(volatile union un_trdcr1 *)0xF0280).trdcr1 -#define TRDCR1_bit (*(volatile union un_trdcr1 *)0xF0280).BIT -#define TRDIORA1 (*(volatile union un_trdiora1 *)0xF0281).trdiora1 -#define TRDIORA1_bit (*(volatile union un_trdiora1 *)0xF0281).BIT -#define TRDIORC1 (*(volatile union un_trdiorc1 *)0xF0282).trdiorc1 -#define TRDIORC1_bit (*(volatile union un_trdiorc1 *)0xF0282).BIT -#define TRDSR1 (*(volatile union un_trdsr1 *)0xF0283).trdsr1 -#define TRDSR1_bit (*(volatile union un_trdsr1 *)0xF0283).BIT -#define TRDIER1 (*(volatile union un_trdier1 *)0xF0284).trdier1 -#define TRDIER1_bit (*(volatile union un_trdier1 *)0xF0284).BIT -#define TRDPOCR1 (*(volatile union un_trdpocr1 *)0xF0285).trdpocr1 -#define TRDPOCR1_bit (*(volatile union un_trdpocr1 *)0xF0285).BIT -#define TRD1 (*(volatile unsigned short *)0xF0286) -#define TRDGRA1 (*(volatile unsigned short *)0xF0288) -#define TRDGRB1 (*(volatile unsigned short *)0xF028A) -#define TRDGRC1M (*(volatile unsigned short *)0xF028C) -#define TRDGRD1M (*(volatile unsigned short *)0xF028E) -#define DTCBAR (*(volatile unsigned char *)0xF02E0) -#define DTCEN0 (*(volatile union un_dtcen0 *)0xF02E8).dtcen0 -#define DTCEN0_bit (*(volatile union un_dtcen0 *)0xF02E8).BIT -#define DTCEN1 (*(volatile union un_dtcen1 *)0xF02E9).dtcen1 -#define DTCEN1_bit (*(volatile union un_dtcen1 *)0xF02E9).BIT -#define DTCEN2 (*(volatile union un_dtcen2 *)0xF02EA).dtcen2 -#define DTCEN2_bit (*(volatile union un_dtcen2 *)0xF02EA).BIT -#define DTCEN3 (*(volatile union un_dtcen3 *)0xF02EB).dtcen3 -#define DTCEN3_bit (*(volatile union un_dtcen3 *)0xF02EB).BIT -#define DTCEN4 (*(volatile union un_dtcen4 *)0xF02EC).dtcen4 -#define DTCEN4_bit (*(volatile union un_dtcen4 *)0xF02EC).BIT -#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl -#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT -#define PGCRCL (*(volatile unsigned short *)0xF02F2) -#define CRCD (*(volatile unsigned short *)0xF02FA) -#define ELSELR00 (*(volatile union un_elselr00 *)0xF0300).elselr00 -#define ELSELR00_bit (*(volatile union un_elselr00 *)0xF0300).BIT -#define ELSELR01 (*(volatile union un_elselr01 *)0xF0301).elselr01 -#define ELSELR01_bit (*(volatile union un_elselr01 *)0xF0301).BIT -#define ELSELR02 (*(volatile union un_elselr02 *)0xF0302).elselr02 -#define ELSELR02_bit (*(volatile union un_elselr02 *)0xF0302).BIT -#define ELSELR03 (*(volatile union un_elselr03 *)0xF0303).elselr03 -#define ELSELR03_bit (*(volatile union un_elselr03 *)0xF0303).BIT -#define ELSELR04 (*(volatile union un_elselr04 *)0xF0304).elselr04 -#define ELSELR04_bit (*(volatile union un_elselr04 *)0xF0304).BIT -#define ELSELR05 (*(volatile union un_elselr05 *)0xF0305).elselr05 -#define ELSELR05_bit (*(volatile union un_elselr05 *)0xF0305).BIT -#define ELSELR06 (*(volatile union un_elselr06 *)0xF0306).elselr06 -#define ELSELR06_bit (*(volatile union un_elselr06 *)0xF0306).BIT -#define ELSELR07 (*(volatile union un_elselr07 *)0xF0307).elselr07 -#define ELSELR07_bit (*(volatile union un_elselr07 *)0xF0307).BIT -#define ELSELR08 (*(volatile union un_elselr08 *)0xF0308).elselr08 -#define ELSELR08_bit (*(volatile union un_elselr08 *)0xF0308).BIT -#define ELSELR09 (*(volatile union un_elselr09 *)0xF0309).elselr09 -#define ELSELR09_bit (*(volatile union un_elselr09 *)0xF0309).BIT -#define ELSELR10 (*(volatile union un_elselr10 *)0xF030A).elselr10 -#define ELSELR10_bit (*(volatile union un_elselr10 *)0xF030A).BIT -#define ELSELR11 (*(volatile union un_elselr11 *)0xF030B).elselr11 -#define ELSELR11_bit (*(volatile union un_elselr11 *)0xF030B).BIT -#define ELSELR12 (*(volatile union un_elselr12 *)0xF030C).elselr12 -#define ELSELR12_bit (*(volatile union un_elselr12 *)0xF030C).BIT -#define ELSELR13 (*(volatile union un_elselr13 *)0xF030D).elselr13 -#define ELSELR13_bit (*(volatile union un_elselr13 *)0xF030D).BIT -#define ELSELR14 (*(volatile union un_elselr14 *)0xF030E).elselr14 -#define ELSELR14_bit (*(volatile union un_elselr14 *)0xF030E).BIT -#define ELSELR15 (*(volatile union un_elselr15 *)0xF030F).elselr15 -#define ELSELR15_bit (*(volatile union un_elselr15 *)0xF030F).BIT -#define ELSELR16 (*(volatile union un_elselr16 *)0xF0310).elselr16 -#define ELSELR16_bit (*(volatile union un_elselr16 *)0xF0310).BIT -#define ELSELR17 (*(volatile union un_elselr17 *)0xF0311).elselr17 -#define ELSELR17_bit (*(volatile union un_elselr17 *)0xF0311).BIT -#define ELSELR18 (*(volatile union un_elselr18 *)0xF0312).elselr18 -#define ELSELR18_bit (*(volatile union un_elselr18 *)0xF0312).BIT -#define ELSELR19 (*(volatile union un_elselr19 *)0xF0313).elselr19 -#define ELSELR19_bit (*(volatile union un_elselr19 *)0xF0313).BIT -#define ELSELR20 (*(volatile union un_elselr20 *)0xF0314).elselr20 -#define ELSELR20_bit (*(volatile union un_elselr20 *)0xF0314).BIT -#define ELSELR21 (*(volatile union un_elselr21 *)0xF0315).elselr21 -#define ELSELR21_bit (*(volatile union un_elselr21 *)0xF0315).BIT -#define ELSELR22 (*(volatile union un_elselr22 *)0xF0316).elselr22 -#define ELSELR22_bit (*(volatile union un_elselr22 *)0xF0316).BIT -#define ELSELR23 (*(volatile union un_elselr23 *)0xF0317).elselr23 -#define ELSELR23_bit (*(volatile union un_elselr23 *)0xF0317).BIT -#define ELSELR24 (*(volatile union un_elselr24 *)0xF0318).elselr24 -#define ELSELR24_bit (*(volatile union un_elselr24 *)0xF0318).BIT -#define ELSELR25 (*(volatile union un_elselr25 *)0xF0319).elselr25 -#define ELSELR25_bit (*(volatile union un_elselr25 *)0xF0319).BIT -#define COMPMDR (*(volatile union un_compmdr *)0xF0340).compmdr -#define COMPMDR_bit (*(volatile union un_compmdr *)0xF0340).BIT -#define COMPFIR (*(volatile union un_compfir *)0xF0341).compfir -#define COMPFIR_bit (*(volatile union un_compfir *)0xF0341).BIT -#define COMPOCR (*(volatile union un_compocr *)0xF0342).compocr -#define COMPOCR_bit (*(volatile union un_compocr *)0xF0342).BIT -#define COMPTCR (*(volatile union un_comptcr *)0xF0343).comptcr -#define COMPTCR_bit (*(volatile union un_comptcr *)0xF0343).BIT -#define TRJ0 (*(volatile unsigned short *)0xF0500) -#define MONMOD1 (*(volatile unsigned char *)0xF0720) -#define TRCMA (*(volatile unsigned char *)0xF0721) - -/* - Sfr bits - */ -#define ADTYP ADM2_bit.no0 -#define AWC ADM2_bit.no2 -#define ADRCK ADM2_bit.no3 -#define SSIE00 ISC_bit.no7 -#define TRJ0EN PER1_bit.no0 -#define DTCEN PER1_bit.no3 -#define TRD0EN PER1_bit.no4 -#define CMPEN PER1_bit.no5 -#define TRGEN PER1_bit.no6 -#define DACEN PER1_bit.no7 -#define DFLEN DFLCTL_bit.no0 -#define BRSAM BECTL_bit.no0 -#define ESQST FSSE_bit.no7 -#define TAU0EN PER0_bit.no0 -#define TAU1EN PER0_bit.no1 -#define SAU0EN PER0_bit.no2 -#define SAU1EN PER0_bit.no3 -#define IICA0EN PER0_bit.no4 -#define ADCEN PER0_bit.no5 -#define IICA1EN PER0_bit.no6 -#define RTCEN PER0_bit.no7 -#define PAENB RMC_bit.no0 -#define WDVOL RMC_bit.no7 -#define RPEF RPECTL_bit.no0 -#define RPERDIS RPECTL_bit.no7 -#define SPT0 IICCTL00_bit.no0 -#define STT0 IICCTL00_bit.no1 -#define ACKE0 IICCTL00_bit.no2 -#define WTIM0 IICCTL00_bit.no3 -#define SPIE0 IICCTL00_bit.no4 -#define WREL0 IICCTL00_bit.no5 -#define LREL0 IICCTL00_bit.no6 -#define IICE0 IICCTL00_bit.no7 -#define PRS0 IICCTL01_bit.no0 -#define DFC0 IICCTL01_bit.no2 -#define SMC0 IICCTL01_bit.no3 -#define DAD0 IICCTL01_bit.no4 -#define CLD0 IICCTL01_bit.no5 -#define WUP0 IICCTL01_bit.no7 -#define SPT1 IICCTL10_bit.no0 -#define STT1 IICCTL10_bit.no1 -#define ACKE1 IICCTL10_bit.no2 -#define WTIM1 IICCTL10_bit.no3 -#define SPIE1 IICCTL10_bit.no4 -#define WREL1 IICCTL10_bit.no5 -#define LREL1 IICCTL10_bit.no6 -#define IICE1 IICCTL10_bit.no7 -#define PRS1 IICCTL11_bit.no0 -#define DFC1 IICCTL11_bit.no2 -#define SMC1 IICCTL11_bit.no3 -#define DAD1 IICCTL11_bit.no4 -#define CLD1 IICCTL11_bit.no5 -#define WUP1 IICCTL11_bit.no7 -#define TRGPWM TRGMR_bit.no0 -#define TRGMDF TRGMR_bit.no1 -#define TRGDFA TRGMR_bit.no2 -#define TRGDFB TRGMR_bit.no3 -#define TRGDFCK0 TRGMR_bit.no4 -#define TRGDFCK1 TRGMR_bit.no5 -#define TRGELCICE TRGMR_bit.no6 -#define TRGSTART TRGMR_bit.no7 -#define TRGTCK0 TRGCR_bit.no0 -#define TRGTCK1 TRGCR_bit.no1 -#define TRGTCK2 TRGCR_bit.no2 -#define TRGCKEG0 TRGCR_bit.no3 -#define TRGCKEG1 TRGCR_bit.no4 -#define TRGCCLR0 TRGCR_bit.no5 -#define TRGCCLR1 TRGCR_bit.no6 -#define TRGIMIEA TRGIER_bit.no0 -#define TRGIMIEB TRGIER_bit.no1 -#define TRGUDIE TRGIER_bit.no2 -#define TRGOVIE TRGIER_bit.no3 -#define TRGIMFA TRGSR_bit.no0 -#define TRGIMFB TRGSR_bit.no1 -#define TRGUDF TRGSR_bit.no2 -#define TRGOVF TRGSR_bit.no3 -#define TRGDIRF TRGSR_bit.no4 -#define TRGIOA0 TRGIOR_bit.no0 -#define TRGIOA1 TRGIOR_bit.no1 -#define TRGIOA2 TRGIOR_bit.no2 -#define TRGBUFA TRGIOR_bit.no3 -#define TRGIOB0 TRGIOR_bit.no4 -#define TRGIOB1 TRGIOR_bit.no5 -#define TRGIOB2 TRGIOR_bit.no6 -#define TRGBUFB TRGIOR_bit.no7 -#define TRDSYNC TRDMR_bit.no0 -#define TRDBFC0 TRDMR_bit.no4 -#define TRDBFD0 TRDMR_bit.no5 -#define TRDBFC1 TRDMR_bit.no6 -#define TRDBFD1 TRDMR_bit.no7 -#define TRDPWMB0 TRDPMR_bit.no0 -#define TRDPWMC0 TRDPMR_bit.no1 -#define TRDPWMD0 TRDPMR_bit.no2 -#define TRDPWMB1 TRDPMR_bit.no4 -#define TRDPWMC1 TRDPMR_bit.no5 -#define TRDPWMD1 TRDPMR_bit.no6 -#define TRDSHUTS TRDOER2_bit.no0 -#define TRDPTO TRDOER2_bit.no7 -#define CRC0EN CRC0CTL_bit.no7 -#define C0ENB COMPMDR_bit.no0 -#define C0MON COMPMDR_bit.no3 -#define C1ENB COMPMDR_bit.no4 -#define C1MON COMPMDR_bit.no7 -#define C0IE COMPOCR_bit.no0 -#define C0OE COMPOCR_bit.no1 -#define C0OP COMPOCR_bit.no2 -#define C1IE COMPOCR_bit.no4 -#define C1OE COMPOCR_bit.no5 -#define C1OP COMPOCR_bit.no6 -#define SPDMD COMPOCR_bit.no7 -#define TSTMD COMPTCR_bit.no0 -#define TMDWE COMPTCR_bit.no7 - -/* - Interrupt vector addresses - */ -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1A.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1A.h deleted file mode 100644 index 341081ea3..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1A.h +++ /dev/null @@ -1,1037 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78G1A */ -/* FILE : iodefine.h */ -/* DESCRIPTION : Definition of I/O Registers */ -/* CPU SERIES : RL78 - G1A */ -/* CPU TYPE : R5F10ELE */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F10ELE.DVF */ -/* Copyright(C) 2012 Renesas */ -/* File Version V1.00 */ -/* Tool Version 1.9.7121 */ -/* Date Generated 13/11/2012 */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_H -#define IODEFINE_H - -/* - IO Registers - */ -union un_p0 { - unsigned char p0; - __BITS8 BIT; -}; -union un_p1 { - unsigned char p1; - __BITS8 BIT; -}; -union un_p2 { - unsigned char p2; - __BITS8 BIT; -}; -union un_p3 { - unsigned char p3; - __BITS8 BIT; -}; -union un_p4 { - unsigned char p4; - __BITS8 BIT; -}; -union un_p5 { - unsigned char p5; - __BITS8 BIT; -}; -union un_p6 { - unsigned char p6; - __BITS8 BIT; -}; -union un_p7 { - unsigned char p7; - __BITS8 BIT; -}; -union un_p12 { - unsigned char p12; - __BITS8 BIT; -}; -union un_p13 { - unsigned char p13; - __BITS8 BIT; -}; -union un_p14 { - unsigned char p14; - __BITS8 BIT; -}; -union un_p15 { - unsigned char p15; - __BITS8 BIT; -}; -union un_pm0 { - unsigned char pm0; - __BITS8 BIT; -}; -union un_pm1 { - unsigned char pm1; - __BITS8 BIT; -}; -union un_pm2 { - unsigned char pm2; - __BITS8 BIT; -}; -union un_pm3 { - unsigned char pm3; - __BITS8 BIT; -}; -union un_pm4 { - unsigned char pm4; - __BITS8 BIT; -}; -union un_pm5 { - unsigned char pm5; - __BITS8 BIT; -}; -union un_pm6 { - unsigned char pm6; - __BITS8 BIT; -}; -union un_pm7 { - unsigned char pm7; - __BITS8 BIT; -}; -union un_pm12 { - unsigned char pm12; - __BITS8 BIT; -}; -union un_pm14 { - unsigned char pm14; - __BITS8 BIT; -}; -union un_pm15 { - unsigned char pm15; - __BITS8 BIT; -}; -union un_adm0 { - unsigned char adm0; - __BITS8 BIT; -}; -union un_ads { - unsigned char ads; - __BITS8 BIT; -}; -union un_adm1 { - unsigned char adm1; - __BITS8 BIT; -}; -union un_krctl { - unsigned char krctl; - __BITS8 BIT; -}; -union un_krf { - unsigned char krf; - __BITS8 BIT; -}; -union un_krm1 { - unsigned char krm1; - __BITS8 BIT; -}; -union un_krm0 { - unsigned char krm0; - __BITS8 BIT; -}; -union un_egp0 { - unsigned char egp0; - __BITS8 BIT; -}; -union un_egn0 { - unsigned char egn0; - __BITS8 BIT; -}; -union un_egp1 { - unsigned char egp1; - __BITS8 BIT; -}; -union un_egn1 { - unsigned char egn1; - __BITS8 BIT; -}; -union un_iics0 { - unsigned char iics0; - __BITS8 BIT; -}; -union un_iicf0 { - unsigned char iicf0; - __BITS8 BIT; -}; -union un_flars { - unsigned char flars; - __BITS8 BIT; -}; -union un_fssq { - unsigned char fssq; - __BITS8 BIT; -}; -union un_flrst { - unsigned char flrst; - __BITS8 BIT; -}; -union un_fsastl { - unsigned char fsastl; - __BITS8 BIT; -}; -union un_fsasth { - unsigned char fsasth; - __BITS8 BIT; -}; -union un_rtcc0 { - unsigned char rtcc0; - __BITS8 BIT; -}; -union un_rtcc1 { - unsigned char rtcc1; - __BITS8 BIT; -}; -union un_csc { - unsigned char csc; - __BITS8 BIT; -}; -union un_ostc { - unsigned char ostc; - __BITS8 BIT; -}; -union un_ckc { - unsigned char ckc; - __BITS8 BIT; -}; -union un_cks0 { - unsigned char cks0; - __BITS8 BIT; -}; -union un_cks1 { - unsigned char cks1; - __BITS8 BIT; -}; -union un_lvim { - unsigned char lvim; - __BITS8 BIT; -}; -union un_lvis { - unsigned char lvis; - __BITS8 BIT; -}; -union un_monsta0 { - unsigned char monsta0; - __BITS8 BIT; -}; -union un_asim { - unsigned char asim; - __BITS8 BIT; -}; -union un_dmc0 { - unsigned char dmc0; - __BITS8 BIT; -}; -union un_dmc1 { - unsigned char dmc1; - __BITS8 BIT; -}; -union un_drc0 { - unsigned char drc0; - __BITS8 BIT; -}; -union un_drc1 { - unsigned char drc1; - __BITS8 BIT; -}; -union un_if2 { - unsigned short if2; - __BITS16 BIT; -}; -union un_if2l { - unsigned char if2l; - __BITS8 BIT; -}; -union un_if2h { - unsigned char if2h; - __BITS8 BIT; -}; -union un_mk2 { - unsigned short mk2; - __BITS16 BIT; -}; -union un_mk2l { - unsigned char mk2l; - __BITS8 BIT; -}; -union un_mk2h { - unsigned char mk2h; - __BITS8 BIT; -}; -union un_pr02 { - unsigned short pr02; - __BITS16 BIT; -}; -union un_pr02l { - unsigned char pr02l; - __BITS8 BIT; -}; -union un_pr02h { - unsigned char pr02h; - __BITS8 BIT; -}; -union un_pr12 { - unsigned short pr12; - __BITS16 BIT; -}; -union un_pr12l { - unsigned char pr12l; - __BITS8 BIT; -}; -union un_pr12h { - unsigned char pr12h; - __BITS8 BIT; -}; -union un_if0 { - unsigned short if0; - __BITS16 BIT; -}; -union un_if0l { - unsigned char if0l; - __BITS8 BIT; -}; -union un_if0h { - unsigned char if0h; - __BITS8 BIT; -}; -union un_if1 { - unsigned short if1; - __BITS16 BIT; -}; -union un_if1l { - unsigned char if1l; - __BITS8 BIT; -}; -union un_if1h { - unsigned char if1h; - __BITS8 BIT; -}; -union un_mk0 { - unsigned short mk0; - __BITS16 BIT; -}; -union un_mk0l { - unsigned char mk0l; - __BITS8 BIT; -}; -union un_mk0h { - unsigned char mk0h; - __BITS8 BIT; -}; -union un_mk1 { - unsigned short mk1; - __BITS16 BIT; -}; -union un_mk1l { - unsigned char mk1l; - __BITS8 BIT; -}; -union un_mk1h { - unsigned char mk1h; - __BITS8 BIT; -}; -union un_pr00 { - unsigned short pr00; - __BITS16 BIT; -}; -union un_pr00l { - unsigned char pr00l; - __BITS8 BIT; -}; -union un_pr00h { - unsigned char pr00h; - __BITS8 BIT; -}; -union un_pr01 { - unsigned short pr01; - __BITS16 BIT; -}; -union un_pr01l { - unsigned char pr01l; - __BITS8 BIT; -}; -union un_pr01h { - unsigned char pr01h; - __BITS8 BIT; -}; -union un_pr10 { - unsigned short pr10; - __BITS16 BIT; -}; -union un_pr10l { - unsigned char pr10l; - __BITS8 BIT; -}; -union un_pr10h { - unsigned char pr10h; - __BITS8 BIT; -}; -union un_pr11 { - unsigned short pr11; - __BITS16 BIT; -}; -union un_pr11l { - unsigned char pr11l; - __BITS8 BIT; -}; -union un_pr11h { - unsigned char pr11h; - __BITS8 BIT; -}; -union un_pmc { - unsigned char pmc; - __BITS8 BIT; -}; - -#define P0 (*(volatile union un_p0 *)0xFFF00).p0 -#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT -#define P1 (*(volatile union un_p1 *)0xFFF01).p1 -#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT -#define P2 (*(volatile union un_p2 *)0xFFF02).p2 -#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT -#define P3 (*(volatile union un_p3 *)0xFFF03).p3 -#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT -#define P4 (*(volatile union un_p4 *)0xFFF04).p4 -#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT -#define P5 (*(volatile union un_p5 *)0xFFF05).p5 -#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT -#define P6 (*(volatile union un_p6 *)0xFFF06).p6 -#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT -#define P7 (*(volatile union un_p7 *)0xFFF07).p7 -#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT -#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 -#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT -#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 -#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT -#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 -#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT -#define P15 (*(volatile union un_p15 *)0xFFF0F).p15 -#define P15_bit (*(volatile union un_p15 *)0xFFF0F).BIT -#define SDR00 (*(volatile unsigned short *)0xFFF10) -#define SIO00 (*(volatile unsigned char *)0xFFF10) -#define TXD0 (*(volatile unsigned char *)0xFFF10) -#define SDR01 (*(volatile unsigned short *)0xFFF12) -#define RXD0 (*(volatile unsigned char *)0xFFF12) -#define SIO01 (*(volatile unsigned char *)0xFFF12) -#define TDR00 (*(volatile unsigned short *)0xFFF18) -#define TDR01 (*(volatile unsigned short *)0xFFF1A) -#define TDR01L (*(volatile unsigned char *)0xFFF1A) -#define TDR01H (*(volatile unsigned char *)0xFFF1B) -#define ADCR (*(volatile unsigned short *)0xFFF1E) -#define ADCRH (*(volatile unsigned char *)0xFFF1F) -#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 -#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT -#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 -#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT -#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 -#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT -#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 -#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT -#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 -#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT -#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 -#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT -#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 -#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT -#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 -#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT -#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 -#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT -#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 -#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT -#define PM15 (*(volatile union un_pm15 *)0xFFF2F).pm15 -#define PM15_bit (*(volatile union un_pm15 *)0xFFF2F).BIT -#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 -#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT -#define ADS (*(volatile union un_ads *)0xFFF31).ads -#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT -#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 -#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT -#define KRCTL (*(volatile union un_krctl *)0xFFF34).krctl -#define KRCTL_bit (*(volatile union un_krctl *)0xFFF34).BIT -#define KRF (*(volatile union un_krf *)0xFFF35).krf -#define KRF_bit (*(volatile union un_krf *)0xFFF35).BIT -#define KRM1 (*(volatile union un_krm1 *)0xFFF36).krm1 -#define KRM1_bit (*(volatile union un_krm1 *)0xFFF36).BIT -#define KRM0 (*(volatile union un_krm0 *)0xFFF37).krm0 -#define KRM0_bit (*(volatile union un_krm0 *)0xFFF37).BIT -#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 -#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT -#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 -#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT -#define EGP1 (*(volatile union un_egp1 *)0xFFF3A).egp1 -#define EGP1_bit (*(volatile union un_egp1 *)0xFFF3A).BIT -#define EGN1 (*(volatile union un_egn1 *)0xFFF3B).egn1 -#define EGN1_bit (*(volatile union un_egn1 *)0xFFF3B).BIT -#define SDR02 (*(volatile unsigned short *)0xFFF44) -#define SIO10 (*(volatile unsigned char *)0xFFF44) -#define TXD1 (*(volatile unsigned char *)0xFFF44) -#define SDR03 (*(volatile unsigned short *)0xFFF46) -#define RXD1 (*(volatile unsigned char *)0xFFF46) -#define SIO11 (*(volatile unsigned char *)0xFFF46) -#define SDR10 (*(volatile unsigned short *)0xFFF48) -#define SIO20 (*(volatile unsigned char *)0xFFF48) -#define TXD2 (*(volatile unsigned char *)0xFFF48) -#define SDR11 (*(volatile unsigned short *)0xFFF4A) -#define RXD2 (*(volatile unsigned char *)0xFFF4A) -#define SIO21 (*(volatile unsigned char *)0xFFF4A) -#define IICA0 (*(volatile unsigned char *)0xFFF50) -#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 -#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT -#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 -#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT -#define TDR02 (*(volatile unsigned short *)0xFFF64) -#define TDR03 (*(volatile unsigned short *)0xFFF66) -#define TDR03L (*(volatile unsigned char *)0xFFF66) -#define TDR03H (*(volatile unsigned char *)0xFFF67) -#define TDR04 (*(volatile unsigned short *)0xFFF68) -#define TDR05 (*(volatile unsigned short *)0xFFF6A) -#define TDR06 (*(volatile unsigned short *)0xFFF6C) -#define TDR07 (*(volatile unsigned short *)0xFFF6E) -#define FLPMC (*(volatile unsigned char *)0xFFF80) -#define FLARS (*(volatile union un_flars *)0xFFF81).flars -#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT -#define FLAPL (*(volatile unsigned short *)0xFFF82) -#define FLAPH (*(volatile unsigned char *)0xFFF84) -#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq -#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT -#define FLSEDL (*(volatile unsigned short *)0xFFF86) -#define FLSEDH (*(volatile unsigned char *)0xFFF88) -#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst -#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT -#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl -#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT -#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth -#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT -#define FLWL (*(volatile unsigned short *)0xFFF8C) -#define FLWH (*(volatile unsigned short *)0xFFF8E) -#define ITMC (*(volatile unsigned short *)0xFFF90) -#define SEC (*(volatile unsigned char *)0xFFF92) -#define MIN (*(volatile unsigned char *)0xFFF93) -#define HOUR (*(volatile unsigned char *)0xFFF94) -#define WEEK (*(volatile unsigned char *)0xFFF95) -#define DAY (*(volatile unsigned char *)0xFFF96) -#define MONTH (*(volatile unsigned char *)0xFFF97) -#define YEAR (*(volatile unsigned char *)0xFFF98) -#define SUBCUD (*(volatile unsigned char *)0xFFF99) -#define ALARMWM (*(volatile unsigned char *)0xFFF9A) -#define ALARMWH (*(volatile unsigned char *)0xFFF9B) -#define ALARMWW (*(volatile unsigned char *)0xFFF9C) -#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 -#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT -#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 -#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT -#define CMC (*(volatile unsigned char *)0xFFFA0) -#define CSC (*(volatile union un_csc *)0xFFFA1).csc -#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT -#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc -#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT -#define OSTS (*(volatile unsigned char *)0xFFFA3) -#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc -#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT -#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 -#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT -#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 -#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT -#define RESF (*(volatile unsigned char *)0xFFFA8) -#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim -#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT -#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis -#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT -#define WDTE (*(volatile unsigned char *)0xFFFAB) -#define CRCIN (*(volatile unsigned char *)0xFFFAC) -#define RXB (*(volatile unsigned char *)0xFFFAD) -#define TXS (*(volatile unsigned char *)0xFFFAD) -#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 -#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT -#define ASIM (*(volatile union un_asim *)0xFFFAF).asim -#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT -#define DSA0 (*(volatile unsigned char *)0xFFFB0) -#define DSA1 (*(volatile unsigned char *)0xFFFB1) -#define DRA0 (*(volatile unsigned short *)0xFFFB2) -#define DRA0L (*(volatile unsigned char *)0xFFFB2) -#define DRA0H (*(volatile unsigned char *)0xFFFB3) -#define DRA1 (*(volatile unsigned short *)0xFFFB4) -#define DRA1L (*(volatile unsigned char *)0xFFFB4) -#define DRA1H (*(volatile unsigned char *)0xFFFB5) -#define DBC0 (*(volatile unsigned short *)0xFFFB6) -#define DBC0L (*(volatile unsigned char *)0xFFFB6) -#define DBC0H (*(volatile unsigned char *)0xFFFB7) -#define DBC1 (*(volatile unsigned short *)0xFFFB8) -#define DBC1L (*(volatile unsigned char *)0xFFFB8) -#define DBC1H (*(volatile unsigned char *)0xFFFB9) -#define DMC0 (*(volatile union un_dmc0 *)0xFFFBA).dmc0 -#define DMC0_bit (*(volatile union un_dmc0 *)0xFFFBA).BIT -#define DMC1 (*(volatile union un_dmc1 *)0xFFFBB).dmc1 -#define DMC1_bit (*(volatile union un_dmc1 *)0xFFFBB).BIT -#define DRC0 (*(volatile union un_drc0 *)0xFFFBC).drc0 -#define DRC0_bit (*(volatile union un_drc0 *)0xFFFBC).BIT -#define DRC1 (*(volatile union un_drc1 *)0xFFFBD).drc1 -#define DRC1_bit (*(volatile union un_drc1 *)0xFFFBD).BIT -#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 -#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT -#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l -#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT -#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h -#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT -#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 -#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT -#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l -#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT -#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h -#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT -#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 -#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT -#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l -#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT -#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h -#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT -#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 -#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT -#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l -#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT -#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h -#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT -#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 -#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT -#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l -#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT -#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h -#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT -#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 -#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT -#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l -#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT -#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h -#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT -#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 -#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT -#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l -#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT -#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h -#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT -#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 -#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT -#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l -#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT -#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h -#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT -#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 -#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT -#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l -#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT -#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h -#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT -#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 -#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT -#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l -#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT -#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h -#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT -#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 -#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT -#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l -#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT -#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h -#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT -#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 -#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT -#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l -#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT -#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h -#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT -#define MDAL (*(volatile unsigned short *)0xFFFF0) -#define MULA (*(volatile unsigned short *)0xFFFF0) -#define MDAH (*(volatile unsigned short *)0xFFFF2) -#define MULB (*(volatile unsigned short *)0xFFFF2) -#define MDBH (*(volatile unsigned short *)0xFFFF4) -#define MULOH (*(volatile unsigned short *)0xFFFF4) -#define MDBL (*(volatile unsigned short *)0xFFFF6) -#define MULOL (*(volatile unsigned short *)0xFFFF6) -#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc -#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT - -/* - Sfr bits - */ -#define ADCE ADM0_bit.no0 -#define ADCS ADM0_bit.no7 -#define SPD0 IICS0_bit.no0 -#define STD0 IICS0_bit.no1 -#define ACKD0 IICS0_bit.no2 -#define TRC0 IICS0_bit.no3 -#define COI0 IICS0_bit.no4 -#define EXC0 IICS0_bit.no5 -#define ALD0 IICS0_bit.no6 -#define MSTS0 IICS0_bit.no7 -#define IICRSV0 IICF0_bit.no0 -#define STCEN0 IICF0_bit.no1 -#define IICBSY0 IICF0_bit.no6 -#define STCF0 IICF0_bit.no7 -#define FSSTP FSSQ_bit.no6 -#define SQST FSSQ_bit.no7 -#define SQEND FSASTH_bit.no6 -#define ESQEND FSASTH_bit.no7 -#define RCLOE1 RTCC0_bit.no5 -#define RTCE RTCC0_bit.no7 -#define RWAIT RTCC1_bit.no0 -#define RWST RTCC1_bit.no1 -#define RIFG RTCC1_bit.no3 -#define WAFG RTCC1_bit.no4 -#define WALIE RTCC1_bit.no6 -#define WALE RTCC1_bit.no7 -#define HIOSTOP CSC_bit.no0 -#define XTSTOP CSC_bit.no6 -#define MSTOP CSC_bit.no7 -#define SDIV CKC_bit.no3 -#define MCM0 CKC_bit.no4 -#define MCS CKC_bit.no5 -#define CSS CKC_bit.no6 -#define CLS CKC_bit.no7 -#define PCLOE0 CKS0_bit.no7 -#define PCLOE1 CKS1_bit.no7 -#define LVIF LVIM_bit.no0 -#define LVIOMSK LVIM_bit.no1 -#define LVISEN LVIM_bit.no7 -#define LVILV LVIS_bit.no0 -#define LVIMD LVIS_bit.no7 -#define DWAIT0 DMC0_bit.no4 -#define DS0 DMC0_bit.no5 -#define DRS0 DMC0_bit.no6 -#define STG0 DMC0_bit.no7 -#define DWAIT1 DMC1_bit.no4 -#define DS1 DMC1_bit.no5 -#define DRS1 DMC1_bit.no6 -#define STG1 DMC1_bit.no7 -#define DST0 DRC0_bit.no0 -#define DEN0 DRC0_bit.no7 -#define DST1 DRC1_bit.no0 -#define DEN1 DRC1_bit.no7 -#define TMIF05 IF2_bit.no0 -#define TMIF06 IF2_bit.no1 -#define TMIF07 IF2_bit.no2 -#define PIF6 IF2_bit.no3 -#define PIF7 IF2_bit.no4 -#define PIF8 IF2_bit.no5 -#define PIF9 IF2_bit.no6 -#define PIF10 IF2_bit.no7 -#define PIF11 IF2H_bit.no0 -#define MDIF IF2H_bit.no5 -#define FLIF IF2H_bit.no7 -#define TMMK05 MK2_bit.no0 -#define TMMK06 MK2_bit.no1 -#define TMMK07 MK2_bit.no2 -#define PMK6 MK2_bit.no3 -#define PMK7 MK2_bit.no4 -#define PMK8 MK2_bit.no5 -#define PMK9 MK2_bit.no6 -#define PMK10 MK2_bit.no7 -#define PMK11 MK2H_bit.no0 -#define MDMK MK2H_bit.no5 -#define FLMK MK2H_bit.no7 -#define TMPR005 PR02_bit.no0 -#define TMPR006 PR02_bit.no1 -#define TMPR007 PR02_bit.no2 -#define PPR06 PR02_bit.no3 -#define PPR07 PR02_bit.no4 -#define PPR08 PR02_bit.no5 -#define PPR09 PR02_bit.no6 -#define PPR010 PR02_bit.no7 -#define PPR011 PR02H_bit.no0 -#define MDPR0 PR02H_bit.no5 -#define FLPR0 PR02H_bit.no7 -#define TMPR105 PR12_bit.no0 -#define TMPR106 PR12_bit.no1 -#define TMPR107 PR12_bit.no2 -#define PPR16 PR12_bit.no3 -#define PPR17 PR12_bit.no4 -#define PPR18 PR12_bit.no5 -#define PPR19 PR12_bit.no6 -#define PPR110 PR12_bit.no7 -#define PPR111 PR12H_bit.no0 -#define MDPR1 PR12H_bit.no5 -#define FLPR1 PR12H_bit.no7 -#define WDTIIF IF0_bit.no0 -#define LVIIF IF0_bit.no1 -#define PIF0 IF0_bit.no2 -#define PIF1 IF0_bit.no3 -#define PIF2 IF0_bit.no4 -#define PIF3 IF0_bit.no5 -#define PIF4 IF0_bit.no6 -#define PIF5 IF0_bit.no7 -#define CSIIF20 IF0H_bit.no0 -#define IICIF20 IF0H_bit.no0 -#define STIF2 IF0H_bit.no0 -#define CSIIF21 IF0H_bit.no1 -#define IICIF21 IF0H_bit.no1 -#define SRIF2 IF0H_bit.no1 -#define SREIF2 IF0H_bit.no2 -#define DMAIF0 IF0H_bit.no3 -#define DMAIF1 IF0H_bit.no4 -#define CSIIF00 IF0H_bit.no5 -#define IICIF00 IF0H_bit.no5 -#define STIF0 IF0H_bit.no5 -#define CSIIF01 IF0H_bit.no6 -#define IICIF01 IF0H_bit.no6 -#define SRIF0 IF0H_bit.no6 -#define SREIF0 IF0H_bit.no7 -#define TMIF01H IF0H_bit.no7 -#define CSIIF10 IF1_bit.no0 -#define IICIF10 IF1_bit.no0 -#define STIF1 IF1_bit.no0 -#define CSIIF11 IF1_bit.no1 -#define IICIF11 IF1_bit.no1 -#define SRIF1 IF1_bit.no1 -#define SREIF1 IF1_bit.no2 -#define TMIF03H IF1_bit.no2 -#define IICAIF0 IF1_bit.no3 -#define TMIF00 IF1_bit.no4 -#define TMIF01 IF1_bit.no5 -#define TMIF02 IF1_bit.no6 -#define TMIF03 IF1_bit.no7 -#define ADIF IF1H_bit.no0 -#define RTCIF IF1H_bit.no1 -#define ITIF IF1H_bit.no2 -#define KRIF IF1H_bit.no3 -#define TMIF04 IF1H_bit.no7 -#define WDTIMK MK0_bit.no0 -#define LVIMK MK0_bit.no1 -#define PMK0 MK0_bit.no2 -#define PMK1 MK0_bit.no3 -#define PMK2 MK0_bit.no4 -#define PMK3 MK0_bit.no5 -#define PMK4 MK0_bit.no6 -#define PMK5 MK0_bit.no7 -#define CSIMK20 MK0H_bit.no0 -#define IICMK20 MK0H_bit.no0 -#define STMK2 MK0H_bit.no0 -#define CSIMK21 MK0H_bit.no1 -#define IICMK21 MK0H_bit.no1 -#define SRMK2 MK0H_bit.no1 -#define SREMK2 MK0H_bit.no2 -#define DMAMK0 MK0H_bit.no3 -#define DMAMK1 MK0H_bit.no4 -#define CSIMK00 MK0H_bit.no5 -#define IICMK00 MK0H_bit.no5 -#define STMK0 MK0H_bit.no5 -#define CSIMK01 MK0H_bit.no6 -#define IICMK01 MK0H_bit.no6 -#define SRMK0 MK0H_bit.no6 -#define SREMK0 MK0H_bit.no7 -#define TMMK01H MK0H_bit.no7 -#define CSIMK10 MK1_bit.no0 -#define IICMK10 MK1_bit.no0 -#define STMK1 MK1_bit.no0 -#define CSIMK11 MK1_bit.no1 -#define IICMK11 MK1_bit.no1 -#define SRMK1 MK1_bit.no1 -#define SREMK1 MK1_bit.no2 -#define TMMK03H MK1_bit.no2 -#define IICAMK0 MK1_bit.no3 -#define TMMK00 MK1_bit.no4 -#define TMMK01 MK1_bit.no5 -#define TMMK02 MK1_bit.no6 -#define TMMK03 MK1_bit.no7 -#define ADMK MK1H_bit.no0 -#define RTCMK MK1H_bit.no1 -#define ITMK MK1H_bit.no2 -#define KRMK MK1H_bit.no3 -#define TMMK04 MK1H_bit.no7 -#define WDTIPR0 PR00_bit.no0 -#define LVIPR0 PR00_bit.no1 -#define PPR00 PR00_bit.no2 -#define PPR01 PR00_bit.no3 -#define PPR02 PR00_bit.no4 -#define PPR03 PR00_bit.no5 -#define PPR04 PR00_bit.no6 -#define PPR05 PR00_bit.no7 -#define CSIPR020 PR00H_bit.no0 -#define IICPR020 PR00H_bit.no0 -#define STPR02 PR00H_bit.no0 -#define CSIPR021 PR00H_bit.no1 -#define IICPR021 PR00H_bit.no1 -#define SRPR02 PR00H_bit.no1 -#define SREPR02 PR00H_bit.no2 -#define DMAPR00 PR00H_bit.no3 -#define DMAPR01 PR00H_bit.no4 -#define CSIPR000 PR00H_bit.no5 -#define IICPR000 PR00H_bit.no5 -#define STPR00 PR00H_bit.no5 -#define CSIPR001 PR00H_bit.no6 -#define IICPR001 PR00H_bit.no6 -#define SRPR00 PR00H_bit.no6 -#define SREPR00 PR00H_bit.no7 -#define TMPR001H PR00H_bit.no7 -#define CSIPR010 PR01_bit.no0 -#define IICPR010 PR01_bit.no0 -#define STPR01 PR01_bit.no0 -#define CSIPR011 PR01_bit.no1 -#define IICPR011 PR01_bit.no1 -#define SRPR01 PR01_bit.no1 -#define SREPR01 PR01_bit.no2 -#define TMPR003H PR01_bit.no2 -#define IICAPR00 PR01_bit.no3 -#define TMPR000 PR01_bit.no4 -#define TMPR001 PR01_bit.no5 -#define TMPR002 PR01_bit.no6 -#define TMPR003 PR01_bit.no7 -#define ADPR0 PR01H_bit.no0 -#define RTCPR0 PR01H_bit.no1 -#define ITPR0 PR01H_bit.no2 -#define KRPR0 PR01H_bit.no3 -#define TMPR004 PR01H_bit.no7 -#define WDTIPR1 PR10_bit.no0 -#define LVIPR1 PR10_bit.no1 -#define PPR10 PR10_bit.no2 -#define PPR11 PR10_bit.no3 -#define PPR12 PR10_bit.no4 -#define PPR13 PR10_bit.no5 -#define PPR14 PR10_bit.no6 -#define PPR15 PR10_bit.no7 -#define CSIPR120 PR10H_bit.no0 -#define IICPR120 PR10H_bit.no0 -#define STPR12 PR10H_bit.no0 -#define CSIPR121 PR10H_bit.no1 -#define IICPR121 PR10H_bit.no1 -#define SRPR12 PR10H_bit.no1 -#define SREPR12 PR10H_bit.no2 -#define DMAPR10 PR10H_bit.no3 -#define DMAPR11 PR10H_bit.no4 -#define CSIPR100 PR10H_bit.no5 -#define IICPR100 PR10H_bit.no5 -#define STPR10 PR10H_bit.no5 -#define CSIPR101 PR10H_bit.no6 -#define IICPR101 PR10H_bit.no6 -#define SRPR10 PR10H_bit.no6 -#define SREPR10 PR10H_bit.no7 -#define TMPR101H PR10H_bit.no7 -#define CSIPR110 PR11_bit.no0 -#define IICPR110 PR11_bit.no0 -#define STPR11 PR11_bit.no0 -#define CSIPR111 PR11_bit.no1 -#define IICPR111 PR11_bit.no1 -#define SRPR11 PR11_bit.no1 -#define SREPR11 PR11_bit.no2 -#define TMPR103H PR11_bit.no2 -#define IICAPR10 PR11_bit.no3 -#define TMPR100 PR11_bit.no4 -#define TMPR101 PR11_bit.no5 -#define TMPR102 PR11_bit.no6 -#define TMPR103 PR11_bit.no7 -#define ADPR1 PR11H_bit.no0 -#define RTCPR1 PR11H_bit.no1 -#define ITPR1 PR11H_bit.no2 -#define KRPR1 PR11H_bit.no3 -#define TMPR104 PR11H_bit.no7 -#define MAA PMC_bit.no0 - -/* - Interrupt vector addresses - */ -#define RST_vect (0x0) -#define INTDBG_vect (0x2) -#define INTWDTI_vect (0x4) -#define INTLVI_vect (0x6) -#define INTP0_vect (0x8) -#define INTP1_vect (0xA) -#define INTP2_vect (0xC) -#define INTP3_vect (0xE) -#define INTP4_vect (0x10) -#define INTP5_vect (0x12) -#define INTCSI20_vect (0x14) -#define INTIIC20_vect (0x14) -#define INTST2_vect (0x14) -#define INTCSI21_vect (0x16) -#define INTIIC21_vect (0x16) -#define INTSR2_vect (0x16) -#define INTSRE2_vect (0x18) -#define INTDMA0_vect (0x1A) -#define INTDMA1_vect (0x1C) -#define INTCSI00_vect (0x1E) -#define INTIIC00_vect (0x1E) -#define INTST0_vect (0x1E) -#define INTCSI01_vect (0x20) -#define INTIIC01_vect (0x20) -#define INTSR0_vect (0x20) -#define INTSRE0_vect (0x22) -#define INTTM01H_vect (0x22) -#define INTCSI10_vect (0x24) -#define INTIIC10_vect (0x24) -#define INTST1_vect (0x24) -#define INTCSI11_vect (0x26) -#define INTIIC11_vect (0x26) -#define INTSR1_vect (0x26) -#define INTSRE1_vect (0x28) -#define INTTM03H_vect (0x28) -#define INTIICA0_vect (0x2A) -#define INTTM00_vect (0x2C) -#define INTTM01_vect (0x2E) -#define INTTM02_vect (0x30) -#define INTTM03_vect (0x32) -#define INTAD_vect (0x34) -#define INTRTC_vect (0x36) -#define INTIT_vect (0x38) -#define INTKR_vect (0x3A) -#define INTTM04_vect (0x42) -#define INTTM05_vect (0x44) -#define INTTM06_vect (0x46) -#define INTTM07_vect (0x48) -#define INTP6_vect (0x4A) -#define INTP7_vect (0x4C) -#define INTP8_vect (0x4E) -#define INTP9_vect (0x50) -#define INTP10_vect (0x52) -#define INTP11_vect (0x54) -#define INTMD_vect (0x5E) -#define INTFL_vect (0x62) -#define BRK_I_vect (0x7E) -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1A_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1A_ext.h deleted file mode 100644 index 0048962c4..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1A_ext.h +++ /dev/null @@ -1,571 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78G1A */ -/* FILE : iodefine_ext.h */ -/* DESCRIPTION : Definition of Extended SFRs */ -/* CPU SERIES : RL78 - G1A */ -/* CPU TYPE : R5F10ELE */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F10ELE.DVF */ -/* Copyright(C) 2012 Renesas */ -/* File Version V1.00 */ -/* Tool Version 1.9.7121 */ -/* Date Generated 13/11/2012 */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_EXT_H -#define IODEFINE_EXT_H - -/* - IO Registers - */ -union un_adm2 { - unsigned char adm2; - __BITS8 BIT; -}; -union un_pu0 { - unsigned char pu0; - __BITS8 BIT; -}; -union un_pu1 { - unsigned char pu1; - __BITS8 BIT; -}; -union un_pu3 { - unsigned char pu3; - __BITS8 BIT; -}; -union un_pu4 { - unsigned char pu4; - __BITS8 BIT; -}; -union un_pu5 { - unsigned char pu5; - __BITS8 BIT; -}; -union un_pu7 { - unsigned char pu7; - __BITS8 BIT; -}; -union un_pu12 { - unsigned char pu12; - __BITS8 BIT; -}; -union un_pu14 { - unsigned char pu14; - __BITS8 BIT; -}; -union un_pim0 { - unsigned char pim0; - __BITS8 BIT; -}; -union un_pim1 { - unsigned char pim1; - __BITS8 BIT; -}; -union un_pom0 { - unsigned char pom0; - __BITS8 BIT; -}; -union un_pom1 { - unsigned char pom1; - __BITS8 BIT; -}; -union un_pom5 { - unsigned char pom5; - __BITS8 BIT; -}; -union un_pom7 { - unsigned char pom7; - __BITS8 BIT; -}; -union un_pmc0 { - unsigned char pmc0; - __BITS8 BIT; -}; -union un_pmc1 { - unsigned char pmc1; - __BITS8 BIT; -}; -union un_pmc3 { - unsigned char pmc3; - __BITS8 BIT; -}; -union un_pmc4 { - unsigned char pmc4; - __BITS8 BIT; -}; -union un_pmc5 { - unsigned char pmc5; - __BITS8 BIT; -}; -union un_pmc7 { - unsigned char pmc7; - __BITS8 BIT; -}; -union un_pmc12 { - unsigned char pmc12; - __BITS8 BIT; -}; -union un_nfen0 { - unsigned char nfen0; - __BITS8 BIT; -}; -union un_nfen1 { - unsigned char nfen1; - __BITS8 BIT; -}; -union un_isc { - unsigned char isc; - __BITS8 BIT; -}; -union un_gaidis { - unsigned char gaidis; - __BITS8 BIT; -}; -union un_gdidis { - unsigned char gdidis; - __BITS8 BIT; -}; -union un_dflctl { - unsigned char dflctl; - __BITS8 BIT; -}; -union un_bectl { - unsigned char bectl; - __BITS8 BIT; -}; -union un_fsse { - unsigned char fsse; - __BITS8 BIT; -}; -union un_pfs { - unsigned char pfs; - __BITS8 BIT; -}; -union un_mduc { - unsigned char mduc; - __BITS8 BIT; -}; -union un_per0 { - unsigned char per0; - __BITS8 BIT; -}; -union un_rmc { - unsigned char rmc; - __BITS8 BIT; -}; -union un_rpectl { - unsigned char rpectl; - __BITS8 BIT; -}; -union un_se0l { - unsigned char se0l; - __BITS8 BIT; -}; -union un_ss0l { - unsigned char ss0l; - __BITS8 BIT; -}; -union un_st0l { - unsigned char st0l; - __BITS8 BIT; -}; -union un_soe0l { - unsigned char soe0l; - __BITS8 BIT; -}; -union un_se1l { - unsigned char se1l; - __BITS8 BIT; -}; -union un_ss1l { - unsigned char ss1l; - __BITS8 BIT; -}; -union un_st1l { - unsigned char st1l; - __BITS8 BIT; -}; -union un_soe1l { - unsigned char soe1l; - __BITS8 BIT; -}; -union un_te0l { - unsigned char te0l; - __BITS8 BIT; -}; -union un_ts0l { - unsigned char ts0l; - __BITS8 BIT; -}; -union un_tt0l { - unsigned char tt0l; - __BITS8 BIT; -}; -union un_toe0l { - unsigned char toe0l; - __BITS8 BIT; -}; -union un_iicctl00 { - unsigned char iicctl00; - __BITS8 BIT; -}; -union un_iicctl01 { - unsigned char iicctl01; - __BITS8 BIT; -}; -union un_crc0ctl { - unsigned char crc0ctl; - __BITS8 BIT; -}; - -#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 -#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT -#define ADUL (*(volatile unsigned char *)0xF0011) -#define ADLL (*(volatile unsigned char *)0xF0012) -#define ADTES (*(volatile unsigned char *)0xF0013) -#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 -#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT -#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 -#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT -#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 -#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT -#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 -#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT -#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 -#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT -#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 -#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT -#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 -#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT -#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 -#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT -#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 -#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT -#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 -#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT -#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 -#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT -#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 -#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT -#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 -#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT -#define POM7 (*(volatile union un_pom7 *)0xF0057).pom7 -#define POM7_bit (*(volatile union un_pom7 *)0xF0057).BIT -#define PMC0 (*(volatile union un_pmc0 *)0xF0060).pmc0 -#define PMC0_bit (*(volatile union un_pmc0 *)0xF0060).BIT -#define PMC1 (*(volatile union un_pmc1 *)0xF0061).pmc1 -#define PMC1_bit (*(volatile union un_pmc1 *)0xF0061).BIT -#define PMC3 (*(volatile union un_pmc3 *)0xF0063).pmc3 -#define PMC3_bit (*(volatile union un_pmc3 *)0xF0063).BIT -#define PMC4 (*(volatile union un_pmc4 *)0xF0064).pmc4 -#define PMC4_bit (*(volatile union un_pmc4 *)0xF0064).BIT -#define PMC5 (*(volatile union un_pmc5 *)0xF0065).pmc5 -#define PMC5_bit (*(volatile union un_pmc5 *)0xF0065).BIT -#define PMC7 (*(volatile union un_pmc7 *)0xF0067).pmc7 -#define PMC7_bit (*(volatile union un_pmc7 *)0xF0067).BIT -#define PMC12 (*(volatile union un_pmc12 *)0xF006C).pmc12 -#define PMC12_bit (*(volatile union un_pmc12 *)0xF006C).BIT -#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 -#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT -#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 -#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT -#define ISC (*(volatile union un_isc *)0xF0073).isc -#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT -#define TIS0 (*(volatile unsigned char *)0xF0074) -#define ADPC (*(volatile unsigned char *)0xF0076) -#define PIOR (*(volatile unsigned char *)0xF0077) -#define IAWCTL (*(volatile unsigned char *)0xF0078) -#define GAIDIS (*(volatile union un_gaidis *)0xF007C).gaidis -#define GAIDIS_bit (*(volatile union un_gaidis *)0xF007C).BIT -#define GDIDIS (*(volatile union un_gdidis *)0xF007D).gdidis -#define GDIDIS_bit (*(volatile union un_gdidis *)0xF007D).BIT -#define PRDSEL (*(volatile unsigned short *)0xF007E) -#define TOOLEN (*(volatile unsigned char *)0xF0080) -#define BPAL0 (*(volatile unsigned char *)0xF0081) -#define BPAH0 (*(volatile unsigned char *)0xF0082) -#define BPAS0 (*(volatile unsigned char *)0xF0083) -#define BACDVL0 (*(volatile unsigned char *)0xF0084) -#define BACDVH0 (*(volatile unsigned char *)0xF0085) -#define BACDML0 (*(volatile unsigned char *)0xF0086) -#define BACDMH0 (*(volatile unsigned char *)0xF0087) -#define MONMOD (*(volatile unsigned char *)0xF0088) -#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl -#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT -#define HIOTRM (*(volatile unsigned char *)0xF00A0) -#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl -#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT -#define HOCODIV (*(volatile unsigned char *)0xF00A8) -#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) -#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) -#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) -#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) -#define FLSEC (*(volatile unsigned short *)0xF00B0) -#define FLFSWS (*(volatile unsigned short *)0xF00B2) -#define FLFSWE (*(volatile unsigned short *)0xF00B4) -#define FSSET (*(volatile unsigned char *)0xF00B6) -#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse -#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT -#define FLFADL (*(volatile unsigned short *)0xF00B8) -#define FLFADH (*(volatile unsigned char *)0xF00BA) -#define PFCMD (*(volatile unsigned char *)0xF00C0) -#define PFS (*(volatile union un_pfs *)0xF00C1).pfs -#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT -#define FLRL (*(volatile unsigned short *)0xF00C2) -#define FLRH (*(volatile unsigned short *)0xF00C4) -#define FLWE (*(volatile unsigned char *)0xF00C6) -#define FLRE (*(volatile unsigned char *)0xF00C7) -#define FLTMS (*(volatile unsigned short *)0xF00C8) -#define DFLMC (*(volatile unsigned short *)0xF00CA) -#define FLMCL (*(volatile unsigned short *)0xF00CC) -#define FLMCH (*(volatile unsigned char *)0xF00CE) -#define FSCTL (*(volatile unsigned char *)0xF00CF) -#define ICEADR (*(volatile unsigned short *)0xF00D0) -#define ICEDAT (*(volatile unsigned short *)0xF00D2) -#define MDCL (*(volatile unsigned short *)0xF00E0) -#define MDCH (*(volatile unsigned short *)0xF00E2) -#define MDUC (*(volatile union un_mduc *)0xF00E8).mduc -#define MDUC_bit (*(volatile union un_mduc *)0xF00E8).BIT -#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 -#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT -#define OSMC (*(volatile unsigned char *)0xF00F3) -#define RMC (*(volatile union un_rmc *)0xF00F4).rmc -#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT -#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl -#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT -#define BCDADJ (*(volatile unsigned char *)0xF00FE) -#define VECTCTRL (*(volatile unsigned char *)0xF00FF) -#define SSR00 (*(volatile unsigned short *)0xF0100) -#define SSR00L (*(volatile unsigned char *)0xF0100) -#define SSR01 (*(volatile unsigned short *)0xF0102) -#define SSR01L (*(volatile unsigned char *)0xF0102) -#define SSR02 (*(volatile unsigned short *)0xF0104) -#define SSR02L (*(volatile unsigned char *)0xF0104) -#define SSR03 (*(volatile unsigned short *)0xF0106) -#define SSR03L (*(volatile unsigned char *)0xF0106) -#define SIR00 (*(volatile unsigned short *)0xF0108) -#define SIR00L (*(volatile unsigned char *)0xF0108) -#define SIR01 (*(volatile unsigned short *)0xF010A) -#define SIR01L (*(volatile unsigned char *)0xF010A) -#define SIR02 (*(volatile unsigned short *)0xF010C) -#define SIR02L (*(volatile unsigned char *)0xF010C) -#define SIR03 (*(volatile unsigned short *)0xF010E) -#define SIR03L (*(volatile unsigned char *)0xF010E) -#define SMR00 (*(volatile unsigned short *)0xF0110) -#define SMR01 (*(volatile unsigned short *)0xF0112) -#define SMR02 (*(volatile unsigned short *)0xF0114) -#define SMR03 (*(volatile unsigned short *)0xF0116) -#define SCR00 (*(volatile unsigned short *)0xF0118) -#define SCR01 (*(volatile unsigned short *)0xF011A) -#define SCR02 (*(volatile unsigned short *)0xF011C) -#define SCR03 (*(volatile unsigned short *)0xF011E) -#define SE0 (*(volatile unsigned short *)0xF0120) -#define SE0L (*(volatile union un_se0l *)0xF0120).se0l -#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT -#define SS0 (*(volatile unsigned short *)0xF0122) -#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l -#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT -#define ST0 (*(volatile unsigned short *)0xF0124) -#define ST0L (*(volatile union un_st0l *)0xF0124).st0l -#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT -#define SPS0 (*(volatile unsigned short *)0xF0126) -#define SPS0L (*(volatile unsigned char *)0xF0126) -#define SO0 (*(volatile unsigned short *)0xF0128) -#define SOE0 (*(volatile unsigned short *)0xF012A) -#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l -#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT -#define EDR00 (*(volatile unsigned short *)0xF012C) -#define EDR00L (*(volatile unsigned char *)0xF012C) -#define EDR01 (*(volatile unsigned short *)0xF012E) -#define EDR01L (*(volatile unsigned char *)0xF012E) -#define EDR02 (*(volatile unsigned short *)0xF0130) -#define EDR02L (*(volatile unsigned char *)0xF0130) -#define EDR03 (*(volatile unsigned short *)0xF0132) -#define EDR03L (*(volatile unsigned char *)0xF0132) -#define SOL0 (*(volatile unsigned short *)0xF0134) -#define SOL0L (*(volatile unsigned char *)0xF0134) -#define SSC0 (*(volatile unsigned short *)0xF0138) -#define SSC0L (*(volatile unsigned char *)0xF0138) -#define SSR10 (*(volatile unsigned short *)0xF0140) -#define SSR10L (*(volatile unsigned char *)0xF0140) -#define SSR11 (*(volatile unsigned short *)0xF0142) -#define SSR11L (*(volatile unsigned char *)0xF0142) -#define SIR10 (*(volatile unsigned short *)0xF0148) -#define SIR10L (*(volatile unsigned char *)0xF0148) -#define SIR11 (*(volatile unsigned short *)0xF014A) -#define SIR11L (*(volatile unsigned char *)0xF014A) -#define SMR10 (*(volatile unsigned short *)0xF0150) -#define SMR11 (*(volatile unsigned short *)0xF0152) -#define SCR10 (*(volatile unsigned short *)0xF0158) -#define SCR11 (*(volatile unsigned short *)0xF015A) -#define SE1 (*(volatile unsigned short *)0xF0160) -#define SE1L (*(volatile union un_se1l *)0xF0160).se1l -#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT -#define SS1 (*(volatile unsigned short *)0xF0162) -#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l -#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT -#define ST1 (*(volatile unsigned short *)0xF0164) -#define ST1L (*(volatile union un_st1l *)0xF0164).st1l -#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT -#define SPS1 (*(volatile unsigned short *)0xF0166) -#define SPS1L (*(volatile unsigned char *)0xF0166) -#define SO1 (*(volatile unsigned short *)0xF0168) -#define SOE1 (*(volatile unsigned short *)0xF016A) -#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l -#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT -#define EDR10 (*(volatile unsigned short *)0xF016C) -#define EDR10L (*(volatile unsigned char *)0xF016C) -#define EDR11 (*(volatile unsigned short *)0xF016E) -#define EDR11L (*(volatile unsigned char *)0xF016E) -#define SOL1 (*(volatile unsigned short *)0xF0174) -#define SOL1L (*(volatile unsigned char *)0xF0174) -#define TCR00 (*(volatile unsigned short *)0xF0180) -#define TCR01 (*(volatile unsigned short *)0xF0182) -#define TCR02 (*(volatile unsigned short *)0xF0184) -#define TCR03 (*(volatile unsigned short *)0xF0186) -#define TCR04 (*(volatile unsigned short *)0xF0188) -#define TCR05 (*(volatile unsigned short *)0xF018A) -#define TCR06 (*(volatile unsigned short *)0xF018C) -#define TCR07 (*(volatile unsigned short *)0xF018E) -#define TMR00 (*(volatile unsigned short *)0xF0190) -#define TMR01 (*(volatile unsigned short *)0xF0192) -#define TMR02 (*(volatile unsigned short *)0xF0194) -#define TMR03 (*(volatile unsigned short *)0xF0196) -#define TMR04 (*(volatile unsigned short *)0xF0198) -#define TMR05 (*(volatile unsigned short *)0xF019A) -#define TMR06 (*(volatile unsigned short *)0xF019C) -#define TMR07 (*(volatile unsigned short *)0xF019E) -#define TSR00 (*(volatile unsigned short *)0xF01A0) -#define TSR00L (*(volatile unsigned char *)0xF01A0) -#define TSR01 (*(volatile unsigned short *)0xF01A2) -#define TSR01L (*(volatile unsigned char *)0xF01A2) -#define TSR02 (*(volatile unsigned short *)0xF01A4) -#define TSR02L (*(volatile unsigned char *)0xF01A4) -#define TSR03 (*(volatile unsigned short *)0xF01A6) -#define TSR03L (*(volatile unsigned char *)0xF01A6) -#define TSR04 (*(volatile unsigned short *)0xF01A8) -#define TSR04L (*(volatile unsigned char *)0xF01A8) -#define TSR05 (*(volatile unsigned short *)0xF01AA) -#define TSR05L (*(volatile unsigned char *)0xF01AA) -#define TSR06 (*(volatile unsigned short *)0xF01AC) -#define TSR06L (*(volatile unsigned char *)0xF01AC) -#define TSR07 (*(volatile unsigned short *)0xF01AE) -#define TSR07L (*(volatile unsigned char *)0xF01AE) -#define TE0 (*(volatile unsigned short *)0xF01B0) -#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l -#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT -#define TS0 (*(volatile unsigned short *)0xF01B2) -#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l -#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT -#define TT0 (*(volatile unsigned short *)0xF01B4) -#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l -#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT -#define TPS0 (*(volatile unsigned short *)0xF01B6) -#define TO0 (*(volatile unsigned short *)0xF01B8) -#define TO0L (*(volatile unsigned char *)0xF01B8) -#define TOE0 (*(volatile unsigned short *)0xF01BA) -#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l -#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT -#define TOL0 (*(volatile unsigned short *)0xF01BC) -#define TOL0L (*(volatile unsigned char *)0xF01BC) -#define TOM0 (*(volatile unsigned short *)0xF01BE) -#define TOM0L (*(volatile unsigned char *)0xF01BE) -#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 -#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT -#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 -#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT -#define IICWL0 (*(volatile unsigned char *)0xF0232) -#define IICWH0 (*(volatile unsigned char *)0xF0233) -#define SVA0 (*(volatile unsigned char *)0xF0234) -#define IICSE0 (*(volatile unsigned char *)0xF0235) -#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl -#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT -#define PGCRCL (*(volatile unsigned short *)0xF02F2) -#define CRCD (*(volatile unsigned short *)0xF02FA) - -/* - Sfr bits - */ -#define ADTYP ADM2_bit.no0 -#define AWC ADM2_bit.no2 -#define ADRCK ADM2_bit.no3 -#define DFLEN DFLCTL_bit.no0 -#define BRSAM BECTL_bit.no0 -#define ESQST FSSE_bit.no7 -#define DIVST MDUC_bit.no0 -#define MACSF MDUC_bit.no1 -#define MACOF MDUC_bit.no2 -#define MDSM MDUC_bit.no3 -#define MACMODE MDUC_bit.no6 -#define DIVMODE MDUC_bit.no7 -#define TAU0EN PER0_bit.no0 -#define SAU0EN PER0_bit.no2 -#define SAU1EN PER0_bit.no3 -#define IICA0EN PER0_bit.no4 -#define ADCEN PER0_bit.no5 -#define RTCEN PER0_bit.no7 -#define PAENB RMC_bit.no0 -#define WDVOL RMC_bit.no7 -#define RPEF RPECTL_bit.no0 -#define RPERDIS RPECTL_bit.no7 -#define SPT0 IICCTL00_bit.no0 -#define STT0 IICCTL00_bit.no1 -#define ACKE0 IICCTL00_bit.no2 -#define WTIM0 IICCTL00_bit.no3 -#define SPIE0 IICCTL00_bit.no4 -#define WREL0 IICCTL00_bit.no5 -#define LREL0 IICCTL00_bit.no6 -#define IICE0 IICCTL00_bit.no7 -#define PRS0 IICCTL01_bit.no0 -#define DFC0 IICCTL01_bit.no2 -#define SMC0 IICCTL01_bit.no3 -#define DAD0 IICCTL01_bit.no4 -#define CLD0 IICCTL01_bit.no5 -#define WUP0 IICCTL01_bit.no7 -#define CRC0EN CRC0CTL_bit.no7 - -/* - Interrupt vector addresses - */ -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1C.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1C.h deleted file mode 100644 index dfd868535..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1C.h +++ /dev/null @@ -1,903 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78G1C */ -/* FILE : iodefine.h */ -/* DESCRIPTION : Definition of I/O Registers */ -/* CPU SERIES : RL78 - G1C */ -/* CPU TYPE : R5F10JGC */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F10JGC.DVF */ -/* Copyright(C) 2012 Renesas */ -/* File Version V1.00 */ -/* Tool Version 1.9.7121 */ -/* Date Generated 13/11/2012 */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_H -#define IODEFINE_H - -/* - IO Registers - */ -union un_p0 { - unsigned char p0; - __BITS8 BIT; -}; -union un_p1 { - unsigned char p1; - __BITS8 BIT; -}; -union un_p2 { - unsigned char p2; - __BITS8 BIT; -}; -union un_p3 { - unsigned char p3; - __BITS8 BIT; -}; -union un_p4 { - unsigned char p4; - __BITS8 BIT; -}; -union un_p5 { - unsigned char p5; - __BITS8 BIT; -}; -union un_p6 { - unsigned char p6; - __BITS8 BIT; -}; -union un_p7 { - unsigned char p7; - __BITS8 BIT; -}; -union un_p12 { - unsigned char p12; - __BITS8 BIT; -}; -union un_p13 { - unsigned char p13; - __BITS8 BIT; -}; -union un_p14 { - unsigned char p14; - __BITS8 BIT; -}; -union un_pm0 { - unsigned char pm0; - __BITS8 BIT; -}; -union un_pm1 { - unsigned char pm1; - __BITS8 BIT; -}; -union un_pm2 { - unsigned char pm2; - __BITS8 BIT; -}; -union un_pm3 { - unsigned char pm3; - __BITS8 BIT; -}; -union un_pm4 { - unsigned char pm4; - __BITS8 BIT; -}; -union un_pm5 { - unsigned char pm5; - __BITS8 BIT; -}; -union un_pm6 { - unsigned char pm6; - __BITS8 BIT; -}; -union un_pm7 { - unsigned char pm7; - __BITS8 BIT; -}; -union un_pm12 { - unsigned char pm12; - __BITS8 BIT; -}; -union un_pm14 { - unsigned char pm14; - __BITS8 BIT; -}; -union un_adm0 { - unsigned char adm0; - __BITS8 BIT; -}; -union un_ads { - unsigned char ads; - __BITS8 BIT; -}; -union un_adm1 { - unsigned char adm1; - __BITS8 BIT; -}; -union un_krm { - unsigned char krm; - __BITS8 BIT; -}; -union un_egp0 { - unsigned char egp0; - __BITS8 BIT; -}; -union un_egn0 { - unsigned char egn0; - __BITS8 BIT; -}; -union un_egp1 { - unsigned char egp1; - __BITS8 BIT; -}; -union un_egn1 { - unsigned char egn1; - __BITS8 BIT; -}; -union un_iics0 { - unsigned char iics0; - __BITS8 BIT; -}; -union un_iicf0 { - unsigned char iicf0; - __BITS8 BIT; -}; -union un_flars { - unsigned char flars; - __BITS8 BIT; -}; -union un_fssq { - unsigned char fssq; - __BITS8 BIT; -}; -union un_flrst { - unsigned char flrst; - __BITS8 BIT; -}; -union un_fsastl { - unsigned char fsastl; - __BITS8 BIT; -}; -union un_fsasth { - unsigned char fsasth; - __BITS8 BIT; -}; -union un_rtcc0 { - unsigned char rtcc0; - __BITS8 BIT; -}; -union un_rtcc1 { - unsigned char rtcc1; - __BITS8 BIT; -}; -union un_csc { - unsigned char csc; - __BITS8 BIT; -}; -union un_ostc { - unsigned char ostc; - __BITS8 BIT; -}; -union un_ckc { - unsigned char ckc; - __BITS8 BIT; -}; -union un_cks0 { - unsigned char cks0; - __BITS8 BIT; -}; -union un_cks1 { - unsigned char cks1; - __BITS8 BIT; -}; -union un_lvim { - unsigned char lvim; - __BITS8 BIT; -}; -union un_lvis { - unsigned char lvis; - __BITS8 BIT; -}; -union un_monsta0 { - unsigned char monsta0; - __BITS8 BIT; -}; -union un_asim { - unsigned char asim; - __BITS8 BIT; -}; -union un_dmc0 { - unsigned char dmc0; - __BITS8 BIT; -}; -union un_dmc1 { - unsigned char dmc1; - __BITS8 BIT; -}; -union un_drc0 { - unsigned char drc0; - __BITS8 BIT; -}; -union un_drc1 { - unsigned char drc1; - __BITS8 BIT; -}; -union un_if2 { - unsigned short if2; - __BITS16 BIT; -}; -union un_if2l { - unsigned char if2l; - __BITS8 BIT; -}; -union un_if2h { - unsigned char if2h; - __BITS8 BIT; -}; -union un_mk2 { - unsigned short mk2; - __BITS16 BIT; -}; -union un_mk2l { - unsigned char mk2l; - __BITS8 BIT; -}; -union un_mk2h { - unsigned char mk2h; - __BITS8 BIT; -}; -union un_pr02 { - unsigned short pr02; - __BITS16 BIT; -}; -union un_pr02l { - unsigned char pr02l; - __BITS8 BIT; -}; -union un_pr02h { - unsigned char pr02h; - __BITS8 BIT; -}; -union un_pr12 { - unsigned short pr12; - __BITS16 BIT; -}; -union un_pr12l { - unsigned char pr12l; - __BITS8 BIT; -}; -union un_pr12h { - unsigned char pr12h; - __BITS8 BIT; -}; -union un_if0 { - unsigned short if0; - __BITS16 BIT; -}; -union un_if0l { - unsigned char if0l; - __BITS8 BIT; -}; -union un_if0h { - unsigned char if0h; - __BITS8 BIT; -}; -union un_if1 { - unsigned short if1; - __BITS16 BIT; -}; -union un_if1l { - unsigned char if1l; - __BITS8 BIT; -}; -union un_if1h { - unsigned char if1h; - __BITS8 BIT; -}; -union un_mk0 { - unsigned short mk0; - __BITS16 BIT; -}; -union un_mk0l { - unsigned char mk0l; - __BITS8 BIT; -}; -union un_mk0h { - unsigned char mk0h; - __BITS8 BIT; -}; -union un_mk1 { - unsigned short mk1; - __BITS16 BIT; -}; -union un_mk1l { - unsigned char mk1l; - __BITS8 BIT; -}; -union un_mk1h { - unsigned char mk1h; - __BITS8 BIT; -}; -union un_pr00 { - unsigned short pr00; - __BITS16 BIT; -}; -union un_pr00l { - unsigned char pr00l; - __BITS8 BIT; -}; -union un_pr00h { - unsigned char pr00h; - __BITS8 BIT; -}; -union un_pr01 { - unsigned short pr01; - __BITS16 BIT; -}; -union un_pr01l { - unsigned char pr01l; - __BITS8 BIT; -}; -union un_pr01h { - unsigned char pr01h; - __BITS8 BIT; -}; -union un_pr10 { - unsigned short pr10; - __BITS16 BIT; -}; -union un_pr10l { - unsigned char pr10l; - __BITS8 BIT; -}; -union un_pr10h { - unsigned char pr10h; - __BITS8 BIT; -}; -union un_pr11 { - unsigned short pr11; - __BITS16 BIT; -}; -union un_pr11l { - unsigned char pr11l; - __BITS8 BIT; -}; -union un_pr11h { - unsigned char pr11h; - __BITS8 BIT; -}; -union un_pmc { - unsigned char pmc; - __BITS8 BIT; -}; - -#define P0 (*(volatile union un_p0 *)0xFFF00).p0 -#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT -#define P1 (*(volatile union un_p1 *)0xFFF01).p1 -#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT -#define P2 (*(volatile union un_p2 *)0xFFF02).p2 -#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT -#define P3 (*(volatile union un_p3 *)0xFFF03).p3 -#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT -#define P4 (*(volatile union un_p4 *)0xFFF04).p4 -#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT -#define P5 (*(volatile union un_p5 *)0xFFF05).p5 -#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT -#define P6 (*(volatile union un_p6 *)0xFFF06).p6 -#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT -#define P7 (*(volatile union un_p7 *)0xFFF07).p7 -#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT -#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 -#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT -#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 -#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT -#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 -#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT -#define SDR00 (*(volatile unsigned short *)0xFFF10) -#define SIO00 (*(volatile unsigned char *)0xFFF10) -#define TXD0 (*(volatile unsigned char *)0xFFF10) -#define SDR01 (*(volatile unsigned short *)0xFFF12) -#define RXD0 (*(volatile unsigned char *)0xFFF12) -#define SIO01 (*(volatile unsigned char *)0xFFF12) -#define TDR00 (*(volatile unsigned short *)0xFFF18) -#define TDR01 (*(volatile unsigned short *)0xFFF1A) -#define TDR01L (*(volatile unsigned char *)0xFFF1A) -#define TDR01H (*(volatile unsigned char *)0xFFF1B) -#define ADCR (*(volatile unsigned short *)0xFFF1E) -#define ADCRH (*(volatile unsigned char *)0xFFF1F) -#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 -#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT -#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 -#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT -#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 -#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT -#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 -#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT -#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 -#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT -#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 -#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT -#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 -#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT -#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 -#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT -#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 -#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT -#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 -#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT -#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 -#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT -#define ADS (*(volatile union un_ads *)0xFFF31).ads -#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT -#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 -#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT -#define KRM (*(volatile union un_krm *)0xFFF37).krm -#define KRM_bit (*(volatile union un_krm *)0xFFF37).BIT -#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 -#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT -#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 -#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT -#define EGP1 (*(volatile union un_egp1 *)0xFFF3A).egp1 -#define EGP1_bit (*(volatile union un_egp1 *)0xFFF3A).BIT -#define EGN1 (*(volatile union un_egn1 *)0xFFF3B).egn1 -#define EGN1_bit (*(volatile union un_egn1 *)0xFFF3B).BIT -#define IICA0 (*(volatile unsigned char *)0xFFF50) -#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 -#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT -#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 -#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT -#define CFIFO (*(volatile unsigned short *)0xFFF54) -#define CFIFOL (*(volatile unsigned char *)0xFFF54) -#define D0FIFO (*(volatile unsigned short *)0xFFF58) -#define D0FIFOL (*(volatile unsigned char *)0xFFF58) -#define D1FIFO (*(volatile unsigned short *)0xFFF5C) -#define D1FIFOL (*(volatile unsigned char *)0xFFF5C) -#define TDR02 (*(volatile unsigned short *)0xFFF64) -#define TDR03 (*(volatile unsigned short *)0xFFF66) -#define TDR03L (*(volatile unsigned char *)0xFFF66) -#define TDR03H (*(volatile unsigned char *)0xFFF67) -#define FLPMC (*(volatile unsigned char *)0xFFF80) -#define FLARS (*(volatile union un_flars *)0xFFF81).flars -#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT -#define FLAPL (*(volatile unsigned short *)0xFFF82) -#define FLAPH (*(volatile unsigned char *)0xFFF84) -#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq -#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT -#define FLSEDL (*(volatile unsigned short *)0xFFF86) -#define FLSEDH (*(volatile unsigned char *)0xFFF88) -#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst -#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT -#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl -#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT -#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth -#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT -#define FLWL (*(volatile unsigned short *)0xFFF8C) -#define FLWH (*(volatile unsigned short *)0xFFF8E) -#define ITMC (*(volatile unsigned short *)0xFFF90) -#define SEC (*(volatile unsigned char *)0xFFF92) -#define MIN (*(volatile unsigned char *)0xFFF93) -#define HOUR (*(volatile unsigned char *)0xFFF94) -#define WEEK (*(volatile unsigned char *)0xFFF95) -#define DAY (*(volatile unsigned char *)0xFFF96) -#define MONTH (*(volatile unsigned char *)0xFFF97) -#define YEAR (*(volatile unsigned char *)0xFFF98) -#define SUBCUD (*(volatile unsigned char *)0xFFF99) -#define ALARMWM (*(volatile unsigned char *)0xFFF9A) -#define ALARMWH (*(volatile unsigned char *)0xFFF9B) -#define ALARMWW (*(volatile unsigned char *)0xFFF9C) -#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 -#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT -#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 -#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT -#define CMC (*(volatile unsigned char *)0xFFFA0) -#define CSC (*(volatile union un_csc *)0xFFFA1).csc -#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT -#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc -#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT -#define OSTS (*(volatile unsigned char *)0xFFFA3) -#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc -#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT -#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 -#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT -#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 -#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT -#define RESF (*(volatile unsigned char *)0xFFFA8) -#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim -#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT -#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis -#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT -#define WDTE (*(volatile unsigned char *)0xFFFAB) -#define CRCIN (*(volatile unsigned char *)0xFFFAC) -#define RXB (*(volatile unsigned char *)0xFFFAD) -#define TXS (*(volatile unsigned char *)0xFFFAD) -#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 -#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT -#define ASIM (*(volatile union un_asim *)0xFFFAF).asim -#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT -#define DSA0 (*(volatile unsigned char *)0xFFFB0) -#define DSA1 (*(volatile unsigned char *)0xFFFB1) -#define DRA0 (*(volatile unsigned short *)0xFFFB2) -#define DRA0L (*(volatile unsigned char *)0xFFFB2) -#define DRA0H (*(volatile unsigned char *)0xFFFB3) -#define DRA1 (*(volatile unsigned short *)0xFFFB4) -#define DRA1L (*(volatile unsigned char *)0xFFFB4) -#define DRA1H (*(volatile unsigned char *)0xFFFB5) -#define DBC0 (*(volatile unsigned short *)0xFFFB6) -#define DBC0L (*(volatile unsigned char *)0xFFFB6) -#define DBC0H (*(volatile unsigned char *)0xFFFB7) -#define DBC1 (*(volatile unsigned short *)0xFFFB8) -#define DBC1L (*(volatile unsigned char *)0xFFFB8) -#define DBC1H (*(volatile unsigned char *)0xFFFB9) -#define DMC0 (*(volatile union un_dmc0 *)0xFFFBA).dmc0 -#define DMC0_bit (*(volatile union un_dmc0 *)0xFFFBA).BIT -#define DMC1 (*(volatile union un_dmc1 *)0xFFFBB).dmc1 -#define DMC1_bit (*(volatile union un_dmc1 *)0xFFFBB).BIT -#define DRC0 (*(volatile union un_drc0 *)0xFFFBC).drc0 -#define DRC0_bit (*(volatile union un_drc0 *)0xFFFBC).BIT -#define DRC1 (*(volatile union un_drc1 *)0xFFFBD).drc1 -#define DRC1_bit (*(volatile union un_drc1 *)0xFFFBD).BIT -#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 -#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT -#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l -#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT -#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h -#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT -#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 -#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT -#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l -#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT -#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h -#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT -#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 -#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT -#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l -#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT -#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h -#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT -#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 -#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT -#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l -#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT -#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h -#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT -#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 -#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT -#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l -#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT -#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h -#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT -#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 -#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT -#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l -#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT -#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h -#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT -#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 -#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT -#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l -#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT -#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h -#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT -#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 -#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT -#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l -#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT -#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h -#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT -#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 -#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT -#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l -#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT -#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h -#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT -#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 -#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT -#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l -#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT -#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h -#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT -#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 -#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT -#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l -#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT -#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h -#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT -#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 -#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT -#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l -#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT -#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h -#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT -#define MDAL (*(volatile unsigned short *)0xFFFF0) -#define MULA (*(volatile unsigned short *)0xFFFF0) -#define MDAH (*(volatile unsigned short *)0xFFFF2) -#define MULB (*(volatile unsigned short *)0xFFFF2) -#define MDBH (*(volatile unsigned short *)0xFFFF4) -#define MULOH (*(volatile unsigned short *)0xFFFF4) -#define MDBL (*(volatile unsigned short *)0xFFFF6) -#define MULOL (*(volatile unsigned short *)0xFFFF6) -#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc -#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT - -/* - Sfr bits - */ -#define ADCE ADM0_bit.no0 -#define ADCS ADM0_bit.no7 -#define SPD0 IICS0_bit.no0 -#define STD0 IICS0_bit.no1 -#define ACKD0 IICS0_bit.no2 -#define TRC0 IICS0_bit.no3 -#define COI0 IICS0_bit.no4 -#define EXC0 IICS0_bit.no5 -#define ALD0 IICS0_bit.no6 -#define MSTS0 IICS0_bit.no7 -#define IICRSV0 IICF0_bit.no0 -#define STCEN0 IICF0_bit.no1 -#define IICBSY0 IICF0_bit.no6 -#define STCF0 IICF0_bit.no7 -#define FSSTP FSSQ_bit.no6 -#define SQST FSSQ_bit.no7 -#define SQEND FSASTH_bit.no6 -#define ESQEND FSASTH_bit.no7 -#define RCLOE1 RTCC0_bit.no5 -#define RTCE RTCC0_bit.no7 -#define RWAIT RTCC1_bit.no0 -#define RWST RTCC1_bit.no1 -#define RIFG RTCC1_bit.no3 -#define WAFG RTCC1_bit.no4 -#define WALIE RTCC1_bit.no6 -#define WALE RTCC1_bit.no7 -#define HIOSTOP CSC_bit.no0 -#define XTSTOP CSC_bit.no6 -#define MSTOP CSC_bit.no7 -#define SDIV CKC_bit.no3 -#define MCM0 CKC_bit.no4 -#define MCS CKC_bit.no5 -#define CSS CKC_bit.no6 -#define CLS CKC_bit.no7 -#define PCLOE0 CKS0_bit.no7 -#define PCLOE1 CKS1_bit.no7 -#define LVIF LVIM_bit.no0 -#define LVIOMSK LVIM_bit.no1 -#define LVISEN LVIM_bit.no7 -#define LVILV LVIS_bit.no0 -#define LVIMD LVIS_bit.no7 -#define DWAIT0 DMC0_bit.no4 -#define DS0 DMC0_bit.no5 -#define DRS0 DMC0_bit.no6 -#define STG0 DMC0_bit.no7 -#define DWAIT1 DMC1_bit.no4 -#define DS1 DMC1_bit.no5 -#define DRS1 DMC1_bit.no6 -#define STG1 DMC1_bit.no7 -#define DST0 DRC0_bit.no0 -#define DEN0 DRC0_bit.no7 -#define DST1 DRC1_bit.no0 -#define DEN1 DRC1_bit.no7 -#define PIF6 IF2_bit.no3 -#define PIF8 IF2_bit.no5 -#define PIF9 IF2_bit.no6 -#define MDIF IF2H_bit.no5 -#define FLIF IF2H_bit.no7 -#define PMK6 MK2_bit.no3 -#define PMK8 MK2_bit.no5 -#define PMK9 MK2_bit.no6 -#define MDMK MK2H_bit.no5 -#define FLMK MK2H_bit.no7 -#define PPR06 PR02_bit.no3 -#define PPR08 PR02_bit.no5 -#define PPR09 PR02_bit.no6 -#define MDPR0 PR02H_bit.no5 -#define FLPR0 PR02H_bit.no7 -#define PPR16 PR12_bit.no3 -#define PPR18 PR12_bit.no5 -#define PPR19 PR12_bit.no6 -#define MDPR1 PR12H_bit.no5 -#define FLPR1 PR12H_bit.no7 -#define WDTIIF IF0_bit.no0 -#define LVIIF IF0_bit.no1 -#define PIF0 IF0_bit.no2 -#define PIF1 IF0_bit.no3 -#define PIF2 IF0_bit.no4 -#define PIF3 IF0_bit.no5 -#define PIF4 IF0_bit.no6 -#define PIF5 IF0_bit.no7 -#define DMAIF0 IF0H_bit.no3 -#define DMAIF1 IF0H_bit.no4 -#define CSIIF00 IF0H_bit.no5 -#define IICIF00 IF0H_bit.no5 -#define STIF0 IF0H_bit.no5 -#define TMIF00 IF0H_bit.no6 -#define CSIIF01 IF0H_bit.no7 -#define IICIF01 IF0H_bit.no7 -#define SRIF0 IF0H_bit.no7 -#define SREIF0 IF1_bit.no0 -#define TMIF01H IF1_bit.no0 -#define TMIF03H IF1_bit.no3 -#define IICAIF0 IF1_bit.no4 -#define TMIF01 IF1_bit.no5 -#define TMIF02 IF1_bit.no6 -#define TMIF03 IF1_bit.no7 -#define ADIF IF1H_bit.no0 -#define RTCIF IF1H_bit.no1 -#define ITIF IF1H_bit.no2 -#define KRIF IF1H_bit.no3 -#define USBIF IF1H_bit.no4 -#define RSUIF IF1H_bit.no5 -#define WDTIMK MK0_bit.no0 -#define LVIMK MK0_bit.no1 -#define PMK0 MK0_bit.no2 -#define PMK1 MK0_bit.no3 -#define PMK2 MK0_bit.no4 -#define PMK3 MK0_bit.no5 -#define PMK4 MK0_bit.no6 -#define PMK5 MK0_bit.no7 -#define DMAMK0 MK0H_bit.no3 -#define DMAMK1 MK0H_bit.no4 -#define CSIMK00 MK0H_bit.no5 -#define IICMK00 MK0H_bit.no5 -#define STMK0 MK0H_bit.no5 -#define TMMK00 MK0H_bit.no6 -#define CSIMK01 MK0H_bit.no7 -#define IICMK01 MK0H_bit.no7 -#define SRMK0 MK0H_bit.no7 -#define SREMK0 MK1_bit.no0 -#define TMMK01H MK1_bit.no0 -#define TMMK03H MK1_bit.no3 -#define IICAMK0 MK1_bit.no4 -#define TMMK01 MK1_bit.no5 -#define TMMK02 MK1_bit.no6 -#define TMMK03 MK1_bit.no7 -#define ADMK MK1H_bit.no0 -#define RTCMK MK1H_bit.no1 -#define ITMK MK1H_bit.no2 -#define KRMK MK1H_bit.no3 -#define USBMK MK1H_bit.no4 -#define RSUMK MK1H_bit.no5 -#define WDTIPR0 PR00_bit.no0 -#define LVIPR0 PR00_bit.no1 -#define PPR00 PR00_bit.no2 -#define PPR01 PR00_bit.no3 -#define PPR02 PR00_bit.no4 -#define PPR03 PR00_bit.no5 -#define PPR04 PR00_bit.no6 -#define PPR05 PR00_bit.no7 -#define DMAPR00 PR00H_bit.no3 -#define DMAPR01 PR00H_bit.no4 -#define CSIPR000 PR00H_bit.no5 -#define IICPR000 PR00H_bit.no5 -#define STPR00 PR00H_bit.no5 -#define TMPR000 PR00H_bit.no6 -#define CSIPR001 PR00H_bit.no7 -#define IICPR001 PR00H_bit.no7 -#define SRPR00 PR00H_bit.no7 -#define SREPR00 PR01_bit.no0 -#define TMPR001H PR01_bit.no0 -#define TMPR003H PR01_bit.no3 -#define IICAPR00 PR01_bit.no4 -#define TMPR001 PR01_bit.no5 -#define TMPR002 PR01_bit.no6 -#define TMPR003 PR01_bit.no7 -#define ADPR0 PR01H_bit.no0 -#define RTCPR0 PR01H_bit.no1 -#define ITPR0 PR01H_bit.no2 -#define KRPR0 PR01H_bit.no3 -#define USBPR0 PR01H_bit.no4 -#define RSUPR0 PR01H_bit.no5 -#define WDTIPR1 PR10_bit.no0 -#define LVIPR1 PR10_bit.no1 -#define PPR10 PR10_bit.no2 -#define PPR11 PR10_bit.no3 -#define PPR12 PR10_bit.no4 -#define PPR13 PR10_bit.no5 -#define PPR14 PR10_bit.no6 -#define PPR15 PR10_bit.no7 -#define DMAPR10 PR10H_bit.no3 -#define DMAPR11 PR10H_bit.no4 -#define CSIPR100 PR10H_bit.no5 -#define IICPR100 PR10H_bit.no5 -#define STPR10 PR10H_bit.no5 -#define TMPR100 PR10H_bit.no6 -#define CSIPR101 PR10H_bit.no7 -#define IICPR101 PR10H_bit.no7 -#define SRPR10 PR10H_bit.no7 -#define SREPR10 PR11_bit.no0 -#define TMPR101H PR11_bit.no0 -#define TMPR103H PR11_bit.no3 -#define IICAPR10 PR11_bit.no4 -#define TMPR101 PR11_bit.no5 -#define TMPR102 PR11_bit.no6 -#define TMPR103 PR11_bit.no7 -#define ADPR1 PR11H_bit.no0 -#define RTCPR1 PR11H_bit.no1 -#define ITPR1 PR11H_bit.no2 -#define KRPR1 PR11H_bit.no3 -#define USBPR1 PR11H_bit.no4 -#define RSUPR1 PR11H_bit.no5 -#define MAA PMC_bit.no0 - -/* - Interrupt vector addresses - */ -#define RST_vect (0x0) -#define INTDBG_vect (0x2) -#define INTSRO_vect (0x4) -#define INTWDTI_vect (0x4) -#define INTLVI_vect (0x6) -#define INTP0_vect (0x8) -#define INTP1_vect (0xA) -#define INTP2_vect (0xC) -#define INTP3_vect (0xE) -#define INTP4_vect (0x10) -#define INTP5_vect (0x12) -#define INTDMA0_vect (0x1A) -#define INTDMA1_vect (0x1C) -#define INTCSI00_vect (0x1E) -#define INTIIC00_vect (0x1E) -#define INTST0_vect (0x1E) -#define INTTM00_vect (0x20) -#define INTCSI01_vect (0x22) -#define INTIIC01_vect (0x22) -#define INTSR0_vect (0x22) -#define INTSRE0_vect (0x24) -#define INTTM01H_vect (0x24) -#define INTTM03H_vect (0x2A) -#define INTIICA0_vect (0x2C) -#define INTTM01_vect (0x2E) -#define INTTM02_vect (0x30) -#define INTTM03_vect (0x32) -#define INTAD_vect (0x34) -#define INTRTC_vect (0x36) -#define INTIT_vect (0x38) -#define INTKR_vect (0x3A) -#define INTUSB_vect (0x3C) -#define INTRSUM_vect (0x3E) -#define INTP6_vect (0x4A) -#define INTP8_vect (0x4E) -#define INTP9_vect (0x50) -#define INTMD_vect (0x5E) -#define INTFL_vect (0x62) -#define BRK_I_vect (0x7E) -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1C_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1C_ext.h deleted file mode 100644 index e881e4b6a..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78G1C_ext.h +++ /dev/null @@ -1,530 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78G1C */ -/* FILE : iodefine_ext.h */ -/* DESCRIPTION : Definition of Extended SFRs */ -/* CPU SERIES : RL78 - G1C */ -/* CPU TYPE : R5F10JGC */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F10JGC.DVF */ -/* Copyright(C) 2012 Renesas */ -/* File Version V1.00 */ -/* Tool Version 1.9.7121 */ -/* Date Generated 13/11/2012 */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_EXT_H -#define IODEFINE_EXT_H - -/* - IO Registers - */ -union un_adm2 { - unsigned char adm2; - __BITS8 BIT; -}; -union un_pms { - unsigned char pms; - __BITS8 BIT; -}; -union un_pu0 { - unsigned char pu0; - __BITS8 BIT; -}; -union un_pu1 { - unsigned char pu1; - __BITS8 BIT; -}; -union un_pu3 { - unsigned char pu3; - __BITS8 BIT; -}; -union un_pu4 { - unsigned char pu4; - __BITS8 BIT; -}; -union un_pu5 { - unsigned char pu5; - __BITS8 BIT; -}; -union un_pu7 { - unsigned char pu7; - __BITS8 BIT; -}; -union un_pu12 { - unsigned char pu12; - __BITS8 BIT; -}; -union un_pu14 { - unsigned char pu14; - __BITS8 BIT; -}; -union un_pim0 { - unsigned char pim0; - __BITS8 BIT; -}; -union un_pim3 { - unsigned char pim3; - __BITS8 BIT; -}; -union un_pim5 { - unsigned char pim5; - __BITS8 BIT; -}; -union un_pom0 { - unsigned char pom0; - __BITS8 BIT; -}; -union un_pom3 { - unsigned char pom3; - __BITS8 BIT; -}; -union un_pom5 { - unsigned char pom5; - __BITS8 BIT; -}; -union un_pom7 { - unsigned char pom7; - __BITS8 BIT; -}; -union un_pmc12 { - unsigned char pmc12; - __BITS8 BIT; -}; -union un_nfen0 { - unsigned char nfen0; - __BITS8 BIT; -}; -union un_nfen1 { - unsigned char nfen1; - __BITS8 BIT; -}; -union un_isc { - unsigned char isc; - __BITS8 BIT; -}; -union un_dflctl { - unsigned char dflctl; - __BITS8 BIT; -}; -union un_bectl { - unsigned char bectl; - __BITS8 BIT; -}; -union un_fsse { - unsigned char fsse; - __BITS8 BIT; -}; -union un_pfs { - unsigned char pfs; - __BITS8 BIT; -}; -union un_mduc { - unsigned char mduc; - __BITS8 BIT; -}; -union un_per0 { - unsigned char per0; - __BITS8 BIT; -}; -union un_rmc { - unsigned char rmc; - __BITS8 BIT; -}; -union un_rpectl { - unsigned char rpectl; - __BITS8 BIT; -}; -union un_se0l { - unsigned char se0l; - __BITS8 BIT; -}; -union un_ss0l { - unsigned char ss0l; - __BITS8 BIT; -}; -union un_st0l { - unsigned char st0l; - __BITS8 BIT; -}; -union un_soe0l { - unsigned char soe0l; - __BITS8 BIT; -}; -union un_te0l { - unsigned char te0l; - __BITS8 BIT; -}; -union un_ts0l { - unsigned char ts0l; - __BITS8 BIT; -}; -union un_tt0l { - unsigned char tt0l; - __BITS8 BIT; -}; -union un_toe0l { - unsigned char toe0l; - __BITS8 BIT; -}; -union un_iicctl00 { - unsigned char iicctl00; - __BITS8 BIT; -}; -union un_iicctl01 { - unsigned char iicctl01; - __BITS8 BIT; -}; -union un_dscctl { - unsigned char dscctl; - __BITS8 BIT; -}; -union un_mckc { - unsigned char mckc; - __BITS8 BIT; -}; -union un_crc0ctl { - unsigned char crc0ctl; - __BITS8 BIT; -}; - -#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 -#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT -#define ADUL (*(volatile unsigned char *)0xF0011) -#define ADLL (*(volatile unsigned char *)0xF0012) -#define ADTES (*(volatile unsigned char *)0xF0013) -#define PMS (*(volatile union un_pms *)0xF0018).pms -#define PMS_bit (*(volatile union un_pms *)0xF0018).BIT -#define PIOR (*(volatile unsigned char *)0xF001A) -#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 -#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT -#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 -#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT -#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 -#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT -#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 -#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT -#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 -#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT -#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 -#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT -#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 -#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT -#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 -#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT -#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 -#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT -#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 -#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT -#define PIM5 (*(volatile union un_pim5 *)0xF0045).pim5 -#define PIM5_bit (*(volatile union un_pim5 *)0xF0045).BIT -#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 -#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT -#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 -#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT -#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 -#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT -#define POM7 (*(volatile union un_pom7 *)0xF0057).pom7 -#define POM7_bit (*(volatile union un_pom7 *)0xF0057).BIT -#define PMC12 (*(volatile union un_pmc12 *)0xF006C).pmc12 -#define PMC12_bit (*(volatile union un_pmc12 *)0xF006C).BIT -#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 -#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT -#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 -#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT -#define ISC (*(volatile union un_isc *)0xF0073).isc -#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT -#define TIS0 (*(volatile unsigned char *)0xF0074) -#define ADPC (*(volatile unsigned char *)0xF0076) -#define IAWCTL (*(volatile unsigned char *)0xF0077) -#define PRDSEL (*(volatile unsigned short *)0xF007E) -#define TOOLEN (*(volatile unsigned char *)0xF0080) -#define BPAL0 (*(volatile unsigned char *)0xF0081) -#define BPAH0 (*(volatile unsigned char *)0xF0082) -#define BPAS0 (*(volatile unsigned char *)0xF0083) -#define BACDVL0 (*(volatile unsigned char *)0xF0084) -#define BACDVH0 (*(volatile unsigned char *)0xF0085) -#define BACDML0 (*(volatile unsigned char *)0xF0086) -#define BACDMH0 (*(volatile unsigned char *)0xF0087) -#define MONMOD (*(volatile unsigned char *)0xF0088) -#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl -#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT -#define HIOTRM (*(volatile unsigned char *)0xF00A0) -#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl -#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT -#define HOCODIV (*(volatile unsigned char *)0xF00A8) -#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) -#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) -#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) -#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) -#define FLSEC (*(volatile unsigned short *)0xF00B0) -#define FLFSWS (*(volatile unsigned short *)0xF00B2) -#define FLFSWE (*(volatile unsigned short *)0xF00B4) -#define FSSET (*(volatile unsigned char *)0xF00B6) -#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse -#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT -#define FLFADL (*(volatile unsigned short *)0xF00B8) -#define FLFADH (*(volatile unsigned char *)0xF00BA) -#define PFCMD (*(volatile unsigned char *)0xF00C0) -#define PFS (*(volatile union un_pfs *)0xF00C1).pfs -#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT -#define FLRL (*(volatile unsigned short *)0xF00C2) -#define FLRH (*(volatile unsigned short *)0xF00C4) -#define FLWE (*(volatile unsigned char *)0xF00C6) -#define FLRE (*(volatile unsigned char *)0xF00C7) -#define FLTMS (*(volatile unsigned short *)0xF00C8) -#define DFLMC (*(volatile unsigned short *)0xF00CA) -#define FLMCL (*(volatile unsigned short *)0xF00CC) -#define FLMCH (*(volatile unsigned char *)0xF00CE) -#define FSCTL (*(volatile unsigned char *)0xF00CF) -#define ICEADR (*(volatile unsigned short *)0xF00D0) -#define ICEDAT (*(volatile unsigned short *)0xF00D2) -#define MDCL (*(volatile unsigned short *)0xF00E0) -#define MDCH (*(volatile unsigned short *)0xF00E2) -#define MDUC (*(volatile union un_mduc *)0xF00E8).mduc -#define MDUC_bit (*(volatile union un_mduc *)0xF00E8).BIT -#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 -#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT -#define OSMC (*(volatile unsigned char *)0xF00F3) -#define RMC (*(volatile union un_rmc *)0xF00F4).rmc -#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT -#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl -#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT -#define BCDADJ (*(volatile unsigned char *)0xF00FE) -#define VECTCTRL (*(volatile unsigned char *)0xF00FF) -#define SSR00 (*(volatile unsigned short *)0xF0100) -#define SSR00L (*(volatile unsigned char *)0xF0100) -#define SSR01 (*(volatile unsigned short *)0xF0102) -#define SSR01L (*(volatile unsigned char *)0xF0102) -#define SIR00 (*(volatile unsigned short *)0xF0108) -#define SIR00L (*(volatile unsigned char *)0xF0108) -#define SIR01 (*(volatile unsigned short *)0xF010A) -#define SIR01L (*(volatile unsigned char *)0xF010A) -#define SMR00 (*(volatile unsigned short *)0xF0110) -#define SMR01 (*(volatile unsigned short *)0xF0112) -#define SCR00 (*(volatile unsigned short *)0xF0118) -#define SCR01 (*(volatile unsigned short *)0xF011A) -#define SE0 (*(volatile unsigned short *)0xF0120) -#define SE0L (*(volatile union un_se0l *)0xF0120).se0l -#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT -#define SS0 (*(volatile unsigned short *)0xF0122) -#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l -#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT -#define ST0 (*(volatile unsigned short *)0xF0124) -#define ST0L (*(volatile union un_st0l *)0xF0124).st0l -#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT -#define SPS0 (*(volatile unsigned short *)0xF0126) -#define SPS0L (*(volatile unsigned char *)0xF0126) -#define SO0 (*(volatile unsigned short *)0xF0128) -#define SOE0 (*(volatile unsigned short *)0xF012A) -#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l -#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT -#define EDR00 (*(volatile unsigned short *)0xF012C) -#define EDR00L (*(volatile unsigned char *)0xF012C) -#define EDR01 (*(volatile unsigned short *)0xF012E) -#define EDR01L (*(volatile unsigned char *)0xF012E) -#define SOL0 (*(volatile unsigned short *)0xF0134) -#define SOL0L (*(volatile unsigned char *)0xF0134) -#define SSC0 (*(volatile unsigned short *)0xF0138) -#define SSC0L (*(volatile unsigned char *)0xF0138) -#define TCR00 (*(volatile unsigned short *)0xF0180) -#define TCR01 (*(volatile unsigned short *)0xF0182) -#define TCR02 (*(volatile unsigned short *)0xF0184) -#define TCR03 (*(volatile unsigned short *)0xF0186) -#define TMR00 (*(volatile unsigned short *)0xF0190) -#define TMR01 (*(volatile unsigned short *)0xF0192) -#define TMR02 (*(volatile unsigned short *)0xF0194) -#define TMR03 (*(volatile unsigned short *)0xF0196) -#define TSR00 (*(volatile unsigned short *)0xF01A0) -#define TSR00L (*(volatile unsigned char *)0xF01A0) -#define TSR01 (*(volatile unsigned short *)0xF01A2) -#define TSR01L (*(volatile unsigned char *)0xF01A2) -#define TSR02 (*(volatile unsigned short *)0xF01A4) -#define TSR02L (*(volatile unsigned char *)0xF01A4) -#define TSR03 (*(volatile unsigned short *)0xF01A6) -#define TSR03L (*(volatile unsigned char *)0xF01A6) -#define TE0 (*(volatile unsigned short *)0xF01B0) -#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l -#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT -#define TS0 (*(volatile unsigned short *)0xF01B2) -#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l -#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT -#define TT0 (*(volatile unsigned short *)0xF01B4) -#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l -#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT -#define TPS0 (*(volatile unsigned short *)0xF01B6) -#define TO0 (*(volatile unsigned short *)0xF01B8) -#define TO0L (*(volatile unsigned char *)0xF01B8) -#define TOE0 (*(volatile unsigned short *)0xF01BA) -#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l -#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT -#define TOL0 (*(volatile unsigned short *)0xF01BC) -#define TOL0L (*(volatile unsigned char *)0xF01BC) -#define TOM0 (*(volatile unsigned short *)0xF01BE) -#define TOM0L (*(volatile unsigned char *)0xF01BE) -#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 -#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT -#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 -#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT -#define IICWL0 (*(volatile unsigned char *)0xF0232) -#define IICWH0 (*(volatile unsigned char *)0xF0233) -#define SVA0 (*(volatile unsigned char *)0xF0234) -#define IICSE0 (*(volatile unsigned char *)0xF0235) -#define DSCCTL (*(volatile union un_dscctl *)0xF02E5).dscctl -#define DSCCTL_bit (*(volatile union un_dscctl *)0xF02E5).BIT -#define MCKC (*(volatile union un_mckc *)0xF02E6).mckc -#define MCKC_bit (*(volatile union un_mckc *)0xF02E6).BIT -#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl -#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT -#define PGCRCL (*(volatile unsigned short *)0xF02F2) -#define CRCD (*(volatile unsigned short *)0xF02FA) -#define SYSCFG (*(volatile unsigned short *)0xF0400) -#define SYSCFG1 (*(volatile unsigned short *)0xF0402) -#define SYSSTS0 (*(volatile unsigned short *)0xF0404) -#define SYSSTS1 (*(volatile unsigned short *)0xF0406) -#define DVSTCTR0 (*(volatile unsigned short *)0xF0408) -#define DVSTCTR1 (*(volatile unsigned short *)0xF040A) -#define DMA0PCFG (*(volatile unsigned short *)0xF0410) -#define DMA1PCFG (*(volatile unsigned short *)0xF0412) -#define CFIFOM (*(volatile unsigned short *)0xF0414) -#define CFIFOML (*(volatile unsigned char *)0xF0414) -#define D0FIFOM (*(volatile unsigned short *)0xF0418) -#define D0FIFOML (*(volatile unsigned char *)0xF0418) -#define D1FIFOM (*(volatile unsigned short *)0xF041C) -#define D1FIFOML (*(volatile unsigned char *)0xF041C) -#define CFIFOSEL (*(volatile unsigned short *)0xF0420) -#define CFIFOCTR (*(volatile unsigned short *)0xF0422) -#define D0FIFOSEL (*(volatile unsigned short *)0xF0428) -#define D0FIFOCTR (*(volatile unsigned short *)0xF042A) -#define D1FIFOSEL (*(volatile unsigned short *)0xF042C) -#define D1FIFOCTR (*(volatile unsigned short *)0xF042E) -#define INTENB0 (*(volatile unsigned short *)0xF0430) -#define INTENB1 (*(volatile unsigned short *)0xF0432) -#define INTENB2 (*(volatile unsigned short *)0xF0434) -#define BRDYENB (*(volatile unsigned short *)0xF0436) -#define NRDYENB (*(volatile unsigned short *)0xF0438) -#define BEMPENB (*(volatile unsigned short *)0xF043A) -#define SOFCFG (*(volatile unsigned short *)0xF043C) -#define INTSTS0 (*(volatile unsigned short *)0xF0440) -#define INTSTS1 (*(volatile unsigned short *)0xF0442) -#define INTSTS2 (*(volatile unsigned short *)0xF0444) -#define BRDYSTS (*(volatile unsigned short *)0xF0446) -#define NRDYSTS (*(volatile unsigned short *)0xF0448) -#define BEMPSTS (*(volatile unsigned short *)0xF044A) -#define FRMNUM (*(volatile unsigned short *)0xF044C) -#define USBADDR (*(volatile unsigned short *)0xF0450) -#define USBREQ (*(volatile unsigned short *)0xF0454) -#define USBVAL (*(volatile unsigned short *)0xF0456) -#define USBINDX (*(volatile unsigned short *)0xF0458) -#define USBLENG (*(volatile unsigned short *)0xF045A) -#define DCPCFG (*(volatile unsigned short *)0xF045C) -#define DCPMAXP (*(volatile unsigned short *)0xF045E) -#define DCPCTR (*(volatile unsigned short *)0xF0460) -#define PIPESEL (*(volatile unsigned short *)0xF0464) -#define PIPECFG (*(volatile unsigned short *)0xF0468) -#define PIPEMAXP (*(volatile unsigned short *)0xF046C) -#define PIPEPERI (*(volatile unsigned short *)0xF046E) -#define PIPE4CTR (*(volatile unsigned short *)0xF0476) -#define PIPE5CTR (*(volatile unsigned short *)0xF0478) -#define PIPE6CTR (*(volatile unsigned short *)0xF047A) -#define PIPE7CTR (*(volatile unsigned short *)0xF047C) -#define PIPE4TRE (*(volatile unsigned short *)0xF049C) -#define PIPE4TRN (*(volatile unsigned short *)0xF049E) -#define PIPE5TRE (*(volatile unsigned short *)0xF04A0) -#define PIPE5TRN (*(volatile unsigned short *)0xF04A2) -#define USBBCCTRL0 (*(volatile unsigned short *)0xF04B0) -#define USBBCCTRL1 (*(volatile unsigned short *)0xF04B4) -#define USBBCOPT0 (*(volatile unsigned short *)0xF04B8) -#define USBBCOPT1 (*(volatile unsigned short *)0xF04BC) -#define USBMC (*(volatile unsigned short *)0xF04CC) -#define DEVADD0 (*(volatile unsigned short *)0xF04D0) -#define DEVADD1 (*(volatile unsigned short *)0xF04D2) -#define DEVADD2 (*(volatile unsigned short *)0xF04D4) -#define DEVADD3 (*(volatile unsigned short *)0xF04D6) -#define DEVADD4 (*(volatile unsigned short *)0xF04D8) -#define DEVADD5 (*(volatile unsigned short *)0xF04DA) - -/* - Sfr bits - */ -#define ADTYP ADM2_bit.no0 -#define AWC ADM2_bit.no2 -#define ADRCK ADM2_bit.no3 -#define DFLEN DFLCTL_bit.no0 -#define BRSAM BECTL_bit.no0 -#define ESQST FSSE_bit.no7 -#define DIVST MDUC_bit.no0 -#define MACSF MDUC_bit.no1 -#define MACOF MDUC_bit.no2 -#define MDSM MDUC_bit.no3 -#define MACMODE MDUC_bit.no6 -#define DIVMODE MDUC_bit.no7 -#define TAU0EN PER0_bit.no0 -#define SAU0EN PER0_bit.no2 -#define IICA0EN PER0_bit.no4 -#define ADCEN PER0_bit.no5 -#define RTCEN PER0_bit.no7 -#define PAENB RMC_bit.no0 -#define WDVOL RMC_bit.no7 -#define RPEF RPECTL_bit.no0 -#define RPERDIS RPECTL_bit.no7 -#define SPT0 IICCTL00_bit.no0 -#define STT0 IICCTL00_bit.no1 -#define ACKE0 IICCTL00_bit.no2 -#define WTIM0 IICCTL00_bit.no3 -#define SPIE0 IICCTL00_bit.no4 -#define WREL0 IICCTL00_bit.no5 -#define LREL0 IICCTL00_bit.no6 -#define IICE0 IICCTL00_bit.no7 -#define PRS0 IICCTL01_bit.no0 -#define DFC0 IICCTL01_bit.no2 -#define SMC0 IICCTL01_bit.no3 -#define DAD0 IICCTL01_bit.no4 -#define CLD0 IICCTL01_bit.no5 -#define WUP0 IICCTL01_bit.no7 -#define CRC0EN CRC0CTL_bit.no7 - -/* - Interrupt vector addresses - */ -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L13.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L13.h deleted file mode 100644 index 60db13d1f..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L13.h +++ /dev/null @@ -1,1057 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78L13 */ -/* FILE : iodefine.h */ -/* DESCRIPTION : Definition of I/O Registers */ -/* CPU SERIES : RL78 - L13 */ -/* CPU TYPE : R5F10WMG */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F10WMG.DVF */ -/* Copyright(C) 2012 Renesas */ -/* Version E1.00d */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_H -#define IODEFINE_H - -/* - IO Registers - */ -union un_p0 { - unsigned char p0; - __BITS8 BIT; -}; -union un_p1 { - unsigned char p1; - __BITS8 BIT; -}; -union un_p2 { - unsigned char p2; - __BITS8 BIT; -}; -union un_p3 { - unsigned char p3; - __BITS8 BIT; -}; -union un_p4 { - unsigned char p4; - __BITS8 BIT; -}; -union un_p5 { - unsigned char p5; - __BITS8 BIT; -}; -union un_p6 { - unsigned char p6; - __BITS8 BIT; -}; -union un_p7 { - unsigned char p7; - __BITS8 BIT; -}; -union un_p12 { - unsigned char p12; - __BITS8 BIT; -}; -union un_p13 { - unsigned char p13; - __BITS8 BIT; -}; -union un_pm0 { - unsigned char pm0; - __BITS8 BIT; -}; -union un_pm1 { - unsigned char pm1; - __BITS8 BIT; -}; -union un_pm2 { - unsigned char pm2; - __BITS8 BIT; -}; -union un_pm3 { - unsigned char pm3; - __BITS8 BIT; -}; -union un_pm4 { - unsigned char pm4; - __BITS8 BIT; -}; -union un_pm5 { - unsigned char pm5; - __BITS8 BIT; -}; -union un_pm6 { - unsigned char pm6; - __BITS8 BIT; -}; -union un_pm7 { - unsigned char pm7; - __BITS8 BIT; -}; -union un_pm12 { - unsigned char pm12; - __BITS8 BIT; -}; -union un_pm13 { - unsigned char pm13; - __BITS8 BIT; -}; -union un_adm0 { - unsigned char adm0; - __BITS8 BIT; -}; -union un_ads { - unsigned char ads; - __BITS8 BIT; -}; -union un_adm1 { - unsigned char adm1; - __BITS8 BIT; -}; -union un_krctl { - unsigned char krctl; - __BITS8 BIT; -}; -union un_krm0 { - unsigned char krm0; - __BITS8 BIT; -}; -union un_egp0 { - unsigned char egp0; - __BITS8 BIT; -}; -union un_egn0 { - unsigned char egn0; - __BITS8 BIT; -}; -union un_lcdm1 { - unsigned char lcdm1; - __BITS8 BIT; -}; -union un_mlcd { - unsigned char mlcd; - __BITS8 BIT; -}; -union un_iics0 { - unsigned char iics0; - __BITS8 BIT; -}; -union un_iicf0 { - unsigned char iicf0; - __BITS8 BIT; -}; -union un_flars { - unsigned char flars; - __BITS8 BIT; -}; -union un_fssq { - unsigned char fssq; - __BITS8 BIT; -}; -union un_flrst { - unsigned char flrst; - __BITS8 BIT; -}; -union un_fsastl { - unsigned char fsastl; - __BITS8 BIT; -}; -union un_fsasth { - unsigned char fsasth; - __BITS8 BIT; -}; -union un_rtcc0 { - unsigned char rtcc0; - __BITS8 BIT; -}; -union un_rtcc1 { - unsigned char rtcc1; - __BITS8 BIT; -}; -union un_csc { - unsigned char csc; - __BITS8 BIT; -}; -union un_ostc { - unsigned char ostc; - __BITS8 BIT; -}; -union un_ckc { - unsigned char ckc; - __BITS8 BIT; -}; -union un_cks0 { - unsigned char cks0; - __BITS8 BIT; -}; -union un_cks1 { - unsigned char cks1; - __BITS8 BIT; -}; -union un_lvim { - unsigned char lvim; - __BITS8 BIT; -}; -union un_lvis { - unsigned char lvis; - __BITS8 BIT; -}; -union un_monsta0 { - unsigned char monsta0; - __BITS8 BIT; -}; -union un_asim { - unsigned char asim; - __BITS8 BIT; -}; -union un_dmc0 { - unsigned char dmc0; - __BITS8 BIT; -}; -union un_dmc1 { - unsigned char dmc1; - __BITS8 BIT; -}; -union un_drc0 { - unsigned char drc0; - __BITS8 BIT; -}; -union un_drc1 { - unsigned char drc1; - __BITS8 BIT; -}; -union un_if2 { - unsigned short if2; - __BITS16 BIT; -}; -union un_if2l { - unsigned char if2l; - __BITS8 BIT; -}; -union un_if2h { - unsigned char if2h; - __BITS8 BIT; -}; -union un_if3 { - unsigned short if3; - __BITS16 BIT; -}; -union un_if3l { - unsigned char if3l; - __BITS8 BIT; -}; -union un_mk2 { - unsigned short mk2; - __BITS16 BIT; -}; -union un_mk2l { - unsigned char mk2l; - __BITS8 BIT; -}; -union un_mk2h { - unsigned char mk2h; - __BITS8 BIT; -}; -union un_mk3 { - unsigned short mk3; - __BITS16 BIT; -}; -union un_mk3l { - unsigned char mk3l; - __BITS8 BIT; -}; -union un_pr02 { - unsigned short pr02; - __BITS16 BIT; -}; -union un_pr02l { - unsigned char pr02l; - __BITS8 BIT; -}; -union un_pr02h { - unsigned char pr02h; - __BITS8 BIT; -}; -union un_pr03 { - unsigned short pr03; - __BITS16 BIT; -}; -union un_pr03l { - unsigned char pr03l; - __BITS8 BIT; -}; -union un_pr12 { - unsigned short pr12; - __BITS16 BIT; -}; -union un_pr12l { - unsigned char pr12l; - __BITS8 BIT; -}; -union un_pr12h { - unsigned char pr12h; - __BITS8 BIT; -}; -union un_pr13 { - unsigned short pr13; - __BITS16 BIT; -}; -union un_pr13l { - unsigned char pr13l; - __BITS8 BIT; -}; -union un_if0 { - unsigned short if0; - __BITS16 BIT; -}; -union un_if0l { - unsigned char if0l; - __BITS8 BIT; -}; -union un_if0h { - unsigned char if0h; - __BITS8 BIT; -}; -union un_if1 { - unsigned short if1; - __BITS16 BIT; -}; -union un_if1l { - unsigned char if1l; - __BITS8 BIT; -}; -union un_if1h { - unsigned char if1h; - __BITS8 BIT; -}; -union un_mk0 { - unsigned short mk0; - __BITS16 BIT; -}; -union un_mk0l { - unsigned char mk0l; - __BITS8 BIT; -}; -union un_mk0h { - unsigned char mk0h; - __BITS8 BIT; -}; -union un_mk1 { - unsigned short mk1; - __BITS16 BIT; -}; -union un_mk1l { - unsigned char mk1l; - __BITS8 BIT; -}; -union un_mk1h { - unsigned char mk1h; - __BITS8 BIT; -}; -union un_pr00 { - unsigned short pr00; - __BITS16 BIT; -}; -union un_pr00l { - unsigned char pr00l; - __BITS8 BIT; -}; -union un_pr00h { - unsigned char pr00h; - __BITS8 BIT; -}; -union un_pr01 { - unsigned short pr01; - __BITS16 BIT; -}; -union un_pr01l { - unsigned char pr01l; - __BITS8 BIT; -}; -union un_pr01h { - unsigned char pr01h; - __BITS8 BIT; -}; -union un_pr10 { - unsigned short pr10; - __BITS16 BIT; -}; -union un_pr10l { - unsigned char pr10l; - __BITS8 BIT; -}; -union un_pr10h { - unsigned char pr10h; - __BITS8 BIT; -}; -union un_pr11 { - unsigned short pr11; - __BITS16 BIT; -}; -union un_pr11l { - unsigned char pr11l; - __BITS8 BIT; -}; -union un_pr11h { - unsigned char pr11h; - __BITS8 BIT; -}; -union un_pmc { - unsigned char pmc; - __BITS8 BIT; -}; - -#define P0 (*(volatile union un_p0 *)0xFFF00).p0 -#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT -#define P1 (*(volatile union un_p1 *)0xFFF01).p1 -#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT -#define P2 (*(volatile union un_p2 *)0xFFF02).p2 -#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT -#define P3 (*(volatile union un_p3 *)0xFFF03).p3 -#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT -#define P4 (*(volatile union un_p4 *)0xFFF04).p4 -#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT -#define P5 (*(volatile union un_p5 *)0xFFF05).p5 -#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT -#define P6 (*(volatile union un_p6 *)0xFFF06).p6 -#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT -#define P7 (*(volatile union un_p7 *)0xFFF07).p7 -#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT -#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 -#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT -#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 -#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT -#define SDR00 (*(volatile unsigned short *)0xFFF10) -#define SIO00 (*(volatile unsigned char *)0xFFF10) -#define TXD0 (*(volatile unsigned char *)0xFFF10) -#define SDR01 (*(volatile unsigned short *)0xFFF12) -#define RXD0 (*(volatile unsigned char *)0xFFF12) -#define SDR12 (*(volatile unsigned short *)0xFFF14) -#define TXD3 (*(volatile unsigned char *)0xFFF14) -#define SDR13 (*(volatile unsigned short *)0xFFF16) -#define RXD3 (*(volatile unsigned char *)0xFFF16) -#define TDR00 (*(volatile unsigned short *)0xFFF18) -#define TDR01 (*(volatile unsigned short *)0xFFF1A) -#define TDR01L (*(volatile unsigned char *)0xFFF1A) -#define TDR01H (*(volatile unsigned char *)0xFFF1B) -#define ADCR (*(volatile unsigned short *)0xFFF1E) -#define ADCRH (*(volatile unsigned char *)0xFFF1F) -#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 -#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT -#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 -#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT -#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 -#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT -#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 -#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT -#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 -#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT -#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 -#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT -#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 -#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT -#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 -#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT -#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 -#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT -#define PM13 (*(volatile union un_pm13 *)0xFFF2D).pm13 -#define PM13_bit (*(volatile union un_pm13 *)0xFFF2D).BIT -#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 -#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT -#define ADS (*(volatile union un_ads *)0xFFF31).ads -#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT -#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 -#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT -#define KRCTL (*(volatile union un_krctl *)0xFFF34).krctl -#define KRCTL_bit (*(volatile union un_krctl *)0xFFF34).BIT -#define KRF (*(volatile unsigned char *)0xFFF35) -#define KRM0 (*(volatile union un_krm0 *)0xFFF37).krm0 -#define KRM0_bit (*(volatile union un_krm0 *)0xFFF37).BIT -#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 -#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT -#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 -#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT -#define LCDM0 (*(volatile unsigned char *)0xFFF40) -#define LCDM1 (*(volatile union un_lcdm1 *)0xFFF41).lcdm1 -#define LCDM1_bit (*(volatile union un_lcdm1 *)0xFFF41).BIT -#define LCDC0 (*(volatile unsigned char *)0xFFF42) -#define VLCD (*(volatile unsigned char *)0xFFF43) -#define SDR02 (*(volatile unsigned short *)0xFFF44) -#define SIO10 (*(volatile unsigned char *)0xFFF44) -#define TXD1 (*(volatile unsigned char *)0xFFF44) -#define SDR03 (*(volatile unsigned short *)0xFFF46) -#define RXD1 (*(volatile unsigned char *)0xFFF46) -#define SDR10 (*(volatile unsigned short *)0xFFF48) -#define TXD2 (*(volatile unsigned char *)0xFFF48) -#define SDR11 (*(volatile unsigned short *)0xFFF4A) -#define RXD2 (*(volatile unsigned char *)0xFFF4A) -#define MLCD (*(volatile union un_mlcd *)0xFFF4C).mlcd -#define MLCD_bit (*(volatile union un_mlcd *)0xFFF4C).BIT -#define IICA0 (*(volatile unsigned char *)0xFFF50) -#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 -#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT -#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 -#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT -#define TDR02 (*(volatile unsigned short *)0xFFF64) -#define TDR03 (*(volatile unsigned short *)0xFFF66) -#define TDR03L (*(volatile unsigned char *)0xFFF66) -#define TDR03H (*(volatile unsigned char *)0xFFF67) -#define TDR04 (*(volatile unsigned short *)0xFFF68) -#define TDR05 (*(volatile unsigned short *)0xFFF6A) -#define TDR06 (*(volatile unsigned short *)0xFFF6C) -#define TDR07 (*(volatile unsigned short *)0xFFF6E) -#define FLPMC (*(volatile unsigned char *)0xFFF80) -#define FLARS (*(volatile union un_flars *)0xFFF81).flars -#define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT -#define FLAPL (*(volatile unsigned short *)0xFFF82) -#define FLAPH (*(volatile unsigned char *)0xFFF84) -#define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq -#define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT -#define FLSEDL (*(volatile unsigned short *)0xFFF86) -#define FLSEDH (*(volatile unsigned char *)0xFFF88) -#define FLRST (*(volatile union un_flrst *)0xFFF89).flrst -#define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT -#define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl -#define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT -#define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth -#define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT -#define FLWL (*(volatile unsigned short *)0xFFF8C) -#define FLWH (*(volatile unsigned short *)0xFFF8E) -#define ITMC (*(volatile unsigned short *)0xFFF90) -#define SEC (*(volatile unsigned char *)0xFFF92) -#define MIN (*(volatile unsigned char *)0xFFF93) -#define HOUR (*(volatile unsigned char *)0xFFF94) -#define WEEK (*(volatile unsigned char *)0xFFF95) -#define DAY (*(volatile unsigned char *)0xFFF96) -#define MONTH (*(volatile unsigned char *)0xFFF97) -#define YEAR (*(volatile unsigned char *)0xFFF98) -#define ALARMWM (*(volatile unsigned char *)0xFFF9A) -#define ALARMWH (*(volatile unsigned char *)0xFFF9B) -#define ALARMWW (*(volatile unsigned char *)0xFFF9C) -#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 -#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT -#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 -#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT -#define CMC (*(volatile unsigned char *)0xFFFA0) -#define CSC (*(volatile union un_csc *)0xFFFA1).csc -#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT -#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc -#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT -#define OSTS (*(volatile unsigned char *)0xFFFA3) -#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc -#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT -#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 -#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT -#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 -#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT -#define RESF (*(volatile unsigned char *)0xFFFA8) -#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim -#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT -#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis -#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT -#define WDTE (*(volatile unsigned char *)0xFFFAB) -#define CRCIN (*(volatile unsigned char *)0xFFFAC) -#define RXB (*(volatile unsigned char *)0xFFFAD) -#define TXS (*(volatile unsigned char *)0xFFFAD) -#define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0 -#define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT -#define ASIM (*(volatile union un_asim *)0xFFFAF).asim -#define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT -#define DSA0 (*(volatile unsigned char *)0xFFFB0) -#define DSA1 (*(volatile unsigned char *)0xFFFB1) -#define DRA0 (*(volatile unsigned short *)0xFFFB2) -#define DRA0L (*(volatile unsigned char *)0xFFFB2) -#define DRA0H (*(volatile unsigned char *)0xFFFB3) -#define DRA1 (*(volatile unsigned short *)0xFFFB4) -#define DRA1L (*(volatile unsigned char *)0xFFFB4) -#define DRA1H (*(volatile unsigned char *)0xFFFB5) -#define DBC0 (*(volatile unsigned short *)0xFFFB6) -#define DBC0L (*(volatile unsigned char *)0xFFFB6) -#define DBC0H (*(volatile unsigned char *)0xFFFB7) -#define DBC1 (*(volatile unsigned short *)0xFFFB8) -#define DBC1L (*(volatile unsigned char *)0xFFFB8) -#define DBC1H (*(volatile unsigned char *)0xFFFB9) -#define DMC0 (*(volatile union un_dmc0 *)0xFFFBA).dmc0 -#define DMC0_bit (*(volatile union un_dmc0 *)0xFFFBA).BIT -#define DMC1 (*(volatile union un_dmc1 *)0xFFFBB).dmc1 -#define DMC1_bit (*(volatile union un_dmc1 *)0xFFFBB).BIT -#define DRC0 (*(volatile union un_drc0 *)0xFFFBC).drc0 -#define DRC0_bit (*(volatile union un_drc0 *)0xFFFBC).BIT -#define DRC1 (*(volatile union un_drc1 *)0xFFFBD).drc1 -#define DRC1_bit (*(volatile union un_drc1 *)0xFFFBD).BIT -#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 -#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT -#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l -#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT -#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h -#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT -#define IF3 (*(volatile union un_if3 *)0xFFFD2).if3 -#define IF3_bit (*(volatile union un_if3 *)0xFFFD2).BIT -#define IF3L (*(volatile union un_if3l *)0xFFFD2).if3l -#define IF3L_bit (*(volatile union un_if3l *)0xFFFD2).BIT -#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 -#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT -#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l -#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT -#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h -#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT -#define MK3 (*(volatile union un_mk3 *)0xFFFD6).mk3 -#define MK3_bit (*(volatile union un_mk3 *)0xFFFD6).BIT -#define MK3L (*(volatile union un_mk3l *)0xFFFD6).mk3l -#define MK3L_bit (*(volatile union un_mk3l *)0xFFFD6).BIT -#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 -#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT -#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l -#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT -#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h -#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT -#define PR03 (*(volatile union un_pr03 *)0xFFFDA).pr03 -#define PR03_bit (*(volatile union un_pr03 *)0xFFFDA).BIT -#define PR03L (*(volatile union un_pr03l *)0xFFFDA).pr03l -#define PR03L_bit (*(volatile union un_pr03l *)0xFFFDA).BIT -#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 -#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT -#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l -#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT -#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h -#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT -#define PR13 (*(volatile union un_pr13 *)0xFFFDE).pr13 -#define PR13_bit (*(volatile union un_pr13 *)0xFFFDE).BIT -#define PR13L (*(volatile union un_pr13l *)0xFFFDE).pr13l -#define PR13L_bit (*(volatile union un_pr13l *)0xFFFDE).BIT -#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 -#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT -#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l -#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT -#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h -#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT -#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 -#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT -#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l -#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT -#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h -#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT -#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 -#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT -#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l -#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT -#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h -#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT -#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 -#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT -#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l -#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT -#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h -#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT -#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 -#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT -#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l -#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT -#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h -#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT -#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 -#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT -#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l -#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT -#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h -#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT -#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 -#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT -#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l -#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT -#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h -#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT -#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 -#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT -#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l -#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT -#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h -#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT -#define MDAL (*(volatile unsigned short *)0xFFFF0) -#define MULA (*(volatile unsigned short *)0xFFFF0) -#define MDAH (*(volatile unsigned short *)0xFFFF2) -#define MULB (*(volatile unsigned short *)0xFFFF2) -#define MDBH (*(volatile unsigned short *)0xFFFF4) -#define MULOH (*(volatile unsigned short *)0xFFFF4) -#define MDBL (*(volatile unsigned short *)0xFFFF6) -#define MULOL (*(volatile unsigned short *)0xFFFF6) -#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc -#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT - -/* - Sfr bits - */ -#define ADCE ADM0_bit.no0 -#define ADCS ADM0_bit.no7 -#define LCDVLM LCDM1_bit.no0 -#define LCDSEL LCDM1_bit.no3 -#define BLON LCDM1_bit.no4 -#define VLCON LCDM1_bit.no5 -#define SCOC LCDM1_bit.no6 -#define LCDON LCDM1_bit.no7 -#define OPTCKE MLCD_bit.no4 -#define COMEXP MLCD_bit.no6 -#define MLCDEN MLCD_bit.no7 -#define SPD0 IICS0_bit.no0 -#define STD0 IICS0_bit.no1 -#define ACKD0 IICS0_bit.no2 -#define TRC0 IICS0_bit.no3 -#define COI0 IICS0_bit.no4 -#define EXC0 IICS0_bit.no5 -#define ALD0 IICS0_bit.no6 -#define MSTS0 IICS0_bit.no7 -#define IICRSV0 IICF0_bit.no0 -#define STCEN0 IICF0_bit.no1 -#define IICBSY0 IICF0_bit.no6 -#define STCF0 IICF0_bit.no7 -#define FSSTP FSSQ_bit.no6 -#define SQST FSSQ_bit.no7 -#define SQEND FSASTH_bit.no6 -#define ESQEND FSASTH_bit.no7 -#define RCLOE1 RTCC0_bit.no5 -#define RCLOSEL RTCC0_bit.no6 -#define RTCE RTCC0_bit.no7 -#define RWAIT RTCC1_bit.no0 -#define RWST RTCC1_bit.no1 -#define RIFG RTCC1_bit.no3 -#define WAFG RTCC1_bit.no4 -#define RITE RTCC1_bit.no5 -#define WALIE RTCC1_bit.no6 -#define WALE RTCC1_bit.no7 -#define HIOSTOP CSC_bit.no0 -#define XTSTOP CSC_bit.no6 -#define MSTOP CSC_bit.no7 -#define SDIV CKC_bit.no3 -#define MCM0 CKC_bit.no4 -#define MCS CKC_bit.no5 -#define CSS CKC_bit.no6 -#define CLS CKC_bit.no7 -#define PCLOE0 CKS0_bit.no7 -#define PCLOE1 CKS1_bit.no7 -#define LVIF LVIM_bit.no0 -#define LVIOMSK LVIM_bit.no1 -#define LVISEN LVIM_bit.no7 -#define LVILV LVIS_bit.no0 -#define LVIMD LVIS_bit.no7 -#define DWAIT0 DMC0_bit.no4 -#define DS0 DMC0_bit.no5 -#define DRS0 DMC0_bit.no6 -#define STG0 DMC0_bit.no7 -#define DWAIT1 DMC1_bit.no4 -#define DS1 DMC1_bit.no5 -#define DRS1 DMC1_bit.no6 -#define STG1 DMC1_bit.no7 -#define DST0 DRC0_bit.no0 -#define DEN0 DRC0_bit.no7 -#define DST1 DRC1_bit.no0 -#define DEN1 DRC1_bit.no7 -#define TKBIF2 IF2_bit.no0 -#define TMIF04 IF2_bit.no1 -#define TMIF05 IF2_bit.no2 -#define PIF6 IF2_bit.no3 -#define PIF7 IF2_bit.no4 -#define LCDIF0 IF2_bit.no5 -#define CMPIF0 IF2_bit.no6 -#define CMPIF1 IF2_bit.no7 -#define TMIF06 IF2H_bit.no0 -#define TMIF07 IF2H_bit.no1 -#define SREIF3 IF2H_bit.no4 -#define MDIF IF2H_bit.no5 -#define FLIF IF2H_bit.no7 -#define DMAIF2 IF3_bit.no0 -#define DMAIF3 IF3_bit.no1 -#define TKBMK2 MK2_bit.no0 -#define TMMK04 MK2_bit.no1 -#define TMMK05 MK2_bit.no2 -#define PMK6 MK2_bit.no3 -#define PMK7 MK2_bit.no4 -#define LCDMK0 MK2_bit.no5 -#define CMPMK0 MK2_bit.no6 -#define CMPMK1 MK2_bit.no7 -#define TMMK06 MK2H_bit.no0 -#define TMMK07 MK2H_bit.no1 -#define SREMK3 MK2H_bit.no4 -#define MDMK MK2H_bit.no5 -#define FLMK MK2H_bit.no7 -#define DMAMK2 MK3_bit.no0 -#define DMAMK3 MK3_bit.no1 -#define TKBPR02 PR02_bit.no0 -#define TMPR004 PR02_bit.no1 -#define TMPR005 PR02_bit.no2 -#define PPR06 PR02_bit.no3 -#define PPR07 PR02_bit.no4 -#define LCDPR00 PR02_bit.no5 -#define CMPPR00 PR02_bit.no6 -#define CMPPR01 PR02_bit.no7 -#define TPR006 PR02H_bit.no0 -#define TPR007 PR02H_bit.no1 -#define SREPR03 PR02H_bit.no4 -#define MDPR0 PR02H_bit.no5 -#define FLPR0 PR02H_bit.no7 -#define DMAPR02 PR03_bit.no0 -#define DMAPR03 PR03_bit.no1 -#define TKBPR12 PR12_bit.no0 -#define TMPR104 PR12_bit.no1 -#define TMPR105 PR12_bit.no2 -#define PPR16 PR12_bit.no3 -#define PPR17 PR12_bit.no4 -#define LCDPR10 PR12_bit.no5 -#define CMPPR10 PR12_bit.no6 -#define CMPPR11 PR12_bit.no7 -#define TPR106 PR12H_bit.no0 -#define TPR107 PR12H_bit.no1 -#define SREPR13 PR12H_bit.no4 -#define MDPR1 PR12H_bit.no5 -#define FLPR1 PR12H_bit.no7 -#define DMAPR12 PR13_bit.no0 -#define DMAPR13 PR13_bit.no1 -#define WDTIIF IF0_bit.no0 -#define LVIIF IF0_bit.no1 -#define PIF0 IF0_bit.no2 -#define PIF1 IF0_bit.no3 -#define PIF2 IF0_bit.no4 -#define PIF3 IF0_bit.no5 -#define PIF4 IF0_bit.no6 -#define PIF5 IF0_bit.no7 -#define STIF2 IF0H_bit.no0 -#define SRIF2 IF0H_bit.no1 -#define SREIF2 IF0H_bit.no2 -#define DMAIF0 IF0H_bit.no3 -#define DMAIF1 IF0H_bit.no4 -#define CSIIF00 IF0H_bit.no5 -#define IICIF00 IF0H_bit.no5 -#define STIF0 IF0H_bit.no5 -#define TMIF00 IF0H_bit.no6 -#define SRIF0 IF0H_bit.no7 -#define SREIF0 IF1_bit.no0 -#define TMIF01H IF1_bit.no0 -#define CSIIF10 IF1_bit.no1 -#define IICIF10 IF1_bit.no1 -#define STIF1 IF1_bit.no1 -#define SRIF1 IF1_bit.no2 -#define SREIF1 IF1_bit.no3 -#define TMIF03H IF1_bit.no3 -#define IICAIF0 IF1_bit.no4 -#define RTITIF IF1_bit.no5 -#define TMIF01 IF1_bit.no7 -#define TMIF02 IF1H_bit.no0 -#define TMIF03 IF1H_bit.no1 -#define ADIF IF1H_bit.no2 -#define RTCIF IF1H_bit.no3 -#define TMKAIF IF1H_bit.no4 -#define KRIF IF1H_bit.no5 -#define STIF3 IF1H_bit.no6 -#define SRIF3 IF1H_bit.no7 -#define WDTIMK MK0_bit.no0 -#define LVIMK MK0_bit.no1 -#define PMK0 MK0_bit.no2 -#define PMK1 MK0_bit.no3 -#define PMK2 MK0_bit.no4 -#define PMK3 MK0_bit.no5 -#define PMK4 MK0_bit.no6 -#define PMK5 MK0_bit.no7 -#define STMK2 MK0H_bit.no0 -#define SRMK2 MK0H_bit.no1 -#define SREMK2 MK0H_bit.no2 -#define DMAMK0 MK0H_bit.no3 -#define DMAMK1 MK0H_bit.no4 -#define CSIMK00 MK0H_bit.no5 -#define IICMK00 MK0H_bit.no5 -#define STMK0 MK0H_bit.no5 -#define TMMK00 MK0H_bit.no6 -#define SRMK0 MK0H_bit.no7 -#define SREMK0 MK1_bit.no0 -#define TMMK01H MK1_bit.no0 -#define CSIMK10 MK1_bit.no1 -#define IICMK10 MK1_bit.no1 -#define STMK1 MK1_bit.no1 -#define SRMK1 MK1_bit.no2 -#define SREMK1 MK1_bit.no3 -#define TMMK03H MK1_bit.no3 -#define IICAMK0 MK1_bit.no4 -#define RTITMK MK1_bit.no5 -#define TMMK01 MK1_bit.no7 -#define TMMK02 MK1H_bit.no0 -#define TMMK03 MK1H_bit.no1 -#define ADMK MK1H_bit.no2 -#define RTCMK MK1H_bit.no3 -#define TMKAMK MK1H_bit.no4 -#define KRMK MK1H_bit.no5 -#define STMK3 MK1H_bit.no6 -#define SRMK3 MK1H_bit.no7 -#define WDTIPR0 PR00_bit.no0 -#define LVIPR0 PR00_bit.no1 -#define PPR00 PR00_bit.no2 -#define PPR01 PR00_bit.no3 -#define PPR02 PR00_bit.no4 -#define PPR03 PR00_bit.no5 -#define PPR04 PR00_bit.no6 -#define PPR05 PR00_bit.no7 -#define STPR02 PR00H_bit.no0 -#define SRPR02 PR00H_bit.no1 -#define SREPR02 PR00H_bit.no2 -#define DMAPR00 PR00H_bit.no3 -#define DMAPR01 PR00H_bit.no4 -#define CSIPR000 PR00H_bit.no5 -#define IICPR000 PR00H_bit.no5 -#define STPR00 PR00H_bit.no5 -#define TMPR000 PR00H_bit.no6 -#define SRPR00 PR00H_bit.no7 -#define SREPR00 PR01_bit.no0 -#define TMPR001H PR01_bit.no0 -#define CSIPR010 PR01_bit.no1 -#define IICPR010 PR01_bit.no1 -#define STPR01 PR01_bit.no1 -#define SRPR01 PR01_bit.no2 -#define SREPR01 PR01_bit.no3 -#define TMPR003H PR01_bit.no3 -#define IICAPR00 PR01_bit.no4 -#define RTITPR0 PR01_bit.no5 -#define TMPR001 PR01_bit.no7 -#define TMPR002 PR01H_bit.no0 -#define TMPR003 PR01H_bit.no1 -#define ADPR0 PR01H_bit.no2 -#define RTCPR0 PR01H_bit.no3 -#define TMKAPR0 PR01H_bit.no4 -#define KRPR0 PR01H_bit.no5 -#define STPR03 PR01H_bit.no6 -#define SRPR03 PR01H_bit.no7 -#define WDTIPR1 PR10_bit.no0 -#define LVIPR1 PR10_bit.no1 -#define PPR10 PR10_bit.no2 -#define PPR11 PR10_bit.no3 -#define PPR12 PR10_bit.no4 -#define PPR13 PR10_bit.no5 -#define PPR14 PR10_bit.no6 -#define PPR15 PR10_bit.no7 -#define STPR12 PR10H_bit.no0 -#define SRPR12 PR10H_bit.no1 -#define SREPR12 PR10H_bit.no2 -#define DMAPR10 PR10H_bit.no3 -#define DMAPR11 PR10H_bit.no4 -#define CSIPR100 PR10H_bit.no5 -#define IICPR100 PR10H_bit.no5 -#define STPR10 PR10H_bit.no5 -#define TMPR100 PR10H_bit.no6 -#define SRPR10 PR10H_bit.no7 -#define SREPR10 PR11_bit.no0 -#define TMPR101H PR11_bit.no0 -#define CSIPR110 PR11_bit.no1 -#define IICPR110 PR11_bit.no1 -#define STPR11 PR11_bit.no1 -#define SRPR11 PR11_bit.no2 -#define SREPR11 PR11_bit.no3 -#define TMPR103H PR11_bit.no3 -#define IICAPR10 PR11_bit.no4 -#define RTITPR1 PR11_bit.no5 -#define TMPR101 PR11_bit.no7 -#define TMPR102 PR11H_bit.no0 -#define TMPR103 PR11H_bit.no1 -#define ADPR1 PR11H_bit.no2 -#define RTCPR1 PR11H_bit.no3 -#define TMKAPR1 PR11H_bit.no4 -#define KRPR1 PR11H_bit.no5 -#define STPR13 PR11H_bit.no6 -#define SRPR13 PR11H_bit.no7 -#define MAA PMC_bit.no0 - -/* - Interrupt vector addresses - */ -#define RST_vect (0x0) -#define INTDBG_vect (0x2) -#define INTWDTI_vect (0x4) -#define INTLVI_vect (0x6) -#define INTP0_vect (0x8) -#define INTP1_vect (0xA) -#define INTP2_vect (0xC) -#define INTP3_vect (0xE) -#define INTP4_vect (0x10) -#define INTP5_vect (0x12) -#define INTST2_vect (0x14) -#define INTSR2_vect (0x16) -#define INTSRE2_vect (0x18) -#define INTDMA0_vect (0x1A) -#define INTDMA1_vect (0x1C) -#define INTCSI00_vect (0x1E) -#define INTIIC00_vect (0x1E) -#define INTST0_vect (0x1E) -#define INTTM00_vect (0x20) -#define INTSR0_vect (0x22) -#define INTSRE0_vect (0x24) -#define INTTM01H_vect (0x24) -#define INTCSI10_vect (0x26) -#define INTIIC10_vect (0x26) -#define INTST1_vect (0x26) -#define INTSR1_vect (0x28) -#define INTSRE1_vect (0x2A) -#define INTTM03H_vect (0x2A) -#define INTIICA0_vect (0x2C) -#define INTRTIT_vect (0x2E) -#define INTTM01_vect (0x32) -#define INTTM02_vect (0x34) -#define INTTM03_vect (0x36) -#define INTAD_vect (0x38) -#define INTRTC_vect (0x3A) -#define INTIT_vect (0x3C) -#define INTKR_vect (0x3E) -#define INTST3_vect (0x40) -#define INTSR3_vect (0x42) -#define INTTKB20_vect (0x44) -#define INTTM04_vect (0x46) -#define INTTM05_vect (0x48) -#define INTP6_vect (0x4A) -#define INTP7_vect (0x4C) -#define INTLCD0_vect (0x4E) -#define INTCMP0_vect (0x50) -#define INTCMP1_vect (0x52) -#define INTTM06_vect (0x54) -#define INTTM07_vect (0x56) -#define INTSRE3_vect (0x5C) -#define INTMD_vect (0x5E) -#define INTFL_vect (0x62) -#define INTDMA2_vect (0x64) -#define INTDMA3_vect (0x66) -#define BRK_I_vect (0x7E) -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L13_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L13_ext.h deleted file mode 100644 index dca40d06e..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L13_ext.h +++ /dev/null @@ -1,946 +0,0 @@ -/***********************************************************************/ -/* */ -/* PROJECT NAME : RL78L13 */ -/* FILE : iodefine_ext.h */ -/* DESCRIPTION : Definition of Extended SFRs */ -/* CPU SERIES : RL78 - L13 */ -/* CPU TYPE : R5F10WMG */ -/* */ -/* This file is generated by e2studio. */ -/* */ -/***********************************************************************/ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F10WMG.DVF */ -/* Copyright(C) 2012 Renesas */ -/* Version E1.00d */ -/************************************************************************/ - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_EXT_H -#define IODEFINE_EXT_H - -/* - IO Registers - */ -union un_adm2 { - unsigned char adm2; - __BITS8 BIT; -}; -union un_pu0 { - unsigned char pu0; - __BITS8 BIT; -}; -union un_pu1 { - unsigned char pu1; - __BITS8 BIT; -}; -union un_pu2 { - unsigned char pu2; - __BITS8 BIT; -}; -union un_pu3 { - unsigned char pu3; - __BITS8 BIT; -}; -union un_pu4 { - unsigned char pu4; - __BITS8 BIT; -}; -union un_pu5 { - unsigned char pu5; - __BITS8 BIT; -}; -union un_pu7 { - unsigned char pu7; - __BITS8 BIT; -}; -union un_pu12 { - unsigned char pu12; - __BITS8 BIT; -}; -union un_pu13 { - unsigned char pu13; - __BITS8 BIT; -}; -union un_pim0 { - unsigned char pim0; - __BITS8 BIT; -}; -union un_pim1 { - unsigned char pim1; - __BITS8 BIT; -}; -union un_pim3 { - unsigned char pim3; - __BITS8 BIT; -}; -union un_pim4 { - unsigned char pim4; - __BITS8 BIT; -}; -union un_pim5 { - unsigned char pim5; - __BITS8 BIT; -}; -union un_pom0 { - unsigned char pom0; - __BITS8 BIT; -}; -union un_pom1 { - unsigned char pom1; - __BITS8 BIT; -}; -union un_pom3 { - unsigned char pom3; - __BITS8 BIT; -}; -union un_pom4 { - unsigned char pom4; - __BITS8 BIT; -}; -union un_pom5 { - unsigned char pom5; - __BITS8 BIT; -}; -union un_pom13 { - unsigned char pom13; - __BITS8 BIT; -}; -union un_pmc1 { - unsigned char pmc1; - __BITS8 BIT; -}; -union un_pmc2 { - unsigned char pmc2; - __BITS8 BIT; -}; -union un_pmc4 { - unsigned char pmc4; - __BITS8 BIT; -}; -union un_nfen0 { - unsigned char nfen0; - __BITS8 BIT; -}; -union un_nfen1 { - unsigned char nfen1; - __BITS8 BIT; -}; -union un_isc { - unsigned char isc; - __BITS8 BIT; -}; -union un_tos { - unsigned char tos; - __BITS8 BIT; -}; -union un_per1 { - unsigned char per1; - __BITS8 BIT; -}; -union un_pms { - unsigned char pms; - __BITS8 BIT; -}; -union un_dflctl { - unsigned char dflctl; - __BITS8 BIT; -}; -union un_perz { - unsigned char perz; - __BITS8 BIT; -}; -union un_bectl { - unsigned char bectl; - __BITS8 BIT; -}; -union un_fsse { - unsigned char fsse; - __BITS8 BIT; -}; -union un_pfs { - unsigned char pfs; - __BITS8 BIT; -}; -union un_mduc { - unsigned char mduc; - __BITS8 BIT; -}; -union un_per0 { - unsigned char per0; - __BITS8 BIT; -}; -union un_rmc { - unsigned char rmc; - __BITS8 BIT; -}; -union un_rpectl { - unsigned char rpectl; - __BITS8 BIT; -}; -union un_porsr { - unsigned char porsr; - __BITS8 BIT; -}; -union un_se0l { - unsigned char se0l; - __BITS8 BIT; -}; -union un_ss0l { - unsigned char ss0l; - __BITS8 BIT; -}; -union un_st0l { - unsigned char st0l; - __BITS8 BIT; -}; -union un_soe0l { - unsigned char soe0l; - __BITS8 BIT; -}; -union un_se1l { - unsigned char se1l; - __BITS8 BIT; -}; -union un_ss1l { - unsigned char ss1l; - __BITS8 BIT; -}; -union un_st1l { - unsigned char st1l; - __BITS8 BIT; -}; -union un_soe1l { - unsigned char soe1l; - __BITS8 BIT; -}; -union un_te0l { - unsigned char te0l; - __BITS8 BIT; -}; -union un_ts0l { - unsigned char ts0l; - __BITS8 BIT; -}; -union un_tt0l { - unsigned char tt0l; - __BITS8 BIT; -}; -union un_toe0l { - unsigned char toe0l; - __BITS8 BIT; -}; -union un_dmc2 { - unsigned char dmc2; - __BITS8 BIT; -}; -union un_dmc3 { - unsigned char dmc3; - __BITS8 BIT; -}; -union un_drc2 { - unsigned char drc2; - __BITS8 BIT; -}; -union un_drc3 { - unsigned char drc3; - __BITS8 BIT; -}; -union un_dwaitall { - unsigned char dwaitall; - __BITS8 BIT; -}; -union un_iicctl00 { - unsigned char iicctl00; - __BITS8 BIT; -}; -union un_iicctl01 { - unsigned char iicctl01; - __BITS8 BIT; -}; -union un_crc0ctl { - unsigned char crc0ctl; - __BITS8 BIT; -}; -union un_pfseg0 { - unsigned char pfseg0; - __BITS8 BIT; -}; -union un_pfseg1 { - unsigned char pfseg1; - __BITS8 BIT; -}; -union un_pfseg2 { - unsigned char pfseg2; - __BITS8 BIT; -}; -union un_pfseg3 { - unsigned char pfseg3; - __BITS8 BIT; -}; -union un_pfseg4 { - unsigned char pfseg4; - __BITS8 BIT; -}; -union un_pfseg5 { - unsigned char pfseg5; - __BITS8 BIT; -}; -union un_pfseg6 { - unsigned char pfseg6; - __BITS8 BIT; -}; -union un_isclcd { - unsigned char isclcd; - __BITS8 BIT; -}; -union un_compmdr { - unsigned char compmdr; - __BITS8 BIT; -}; -union un_compfir { - unsigned char compfir; - __BITS8 BIT; -}; -union un_compocr { - unsigned char compocr; - __BITS8 BIT; -}; -union un_comptcr { - unsigned char comptcr; - __BITS8 BIT; -}; -union un_tkbtrg0 { - unsigned char tkbtrg0; - __BITS8 BIT; -}; -union un_tkbflg0 { - unsigned char tkbflg0; - __BITS8 BIT; -}; -union un_tkbioc00 { - unsigned char tkbioc00; - __BITS8 BIT; -}; -union un_tkbclr0 { - unsigned char tkbclr0; - __BITS8 BIT; -}; -union un_tkbioc01 { - unsigned char tkbioc01; - __BITS8 BIT; -}; -union un_tkbctl01 { - unsigned char tkbctl01; - __BITS8 BIT; -}; -union un_tkbpahfs0 { - unsigned char tkbpahfs0; - __BITS8 BIT; -}; -union un_tkbpahft0 { - unsigned char tkbpahft0; - __BITS8 BIT; -}; -union un_tkbpaflg0 { - unsigned char tkbpaflg0; - __BITS8 BIT; -}; -union un_tkbpactl02 { - unsigned char tkbpactl02; - __BITS8 BIT; -}; - -#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 -#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT -#define ADUL (*(volatile unsigned char *)0xF0011) -#define ADLL (*(volatile unsigned char *)0xF0012) -#define ADTES (*(volatile unsigned char *)0xF0013) -#define LCDI (*(volatile unsigned char *)0xF001F) -#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 -#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT -#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 -#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT -#define PU2 (*(volatile union un_pu2 *)0xF0032).pu2 -#define PU2_bit (*(volatile union un_pu2 *)0xF0032).BIT -#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 -#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT -#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 -#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT -#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 -#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT -#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 -#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT -#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 -#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT -#define PU13 (*(volatile union un_pu13 *)0xF003D).pu13 -#define PU13_bit (*(volatile union un_pu13 *)0xF003D).BIT -#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 -#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT -#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 -#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT -#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 -#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT -#define PIM4 (*(volatile union un_pim4 *)0xF0044).pim4 -#define PIM4_bit (*(volatile union un_pim4 *)0xF0044).BIT -#define PIM5 (*(volatile union un_pim5 *)0xF0045).pim5 -#define PIM5_bit (*(volatile union un_pim5 *)0xF0045).BIT -#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 -#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT -#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 -#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT -#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 -#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT -#define POM4 (*(volatile union un_pom4 *)0xF0054).pom4 -#define POM4_bit (*(volatile union un_pom4 *)0xF0054).BIT -#define POM5 (*(volatile union un_pom5 *)0xF0055).pom5 -#define POM5_bit (*(volatile union un_pom5 *)0xF0055).BIT -#define POM13 (*(volatile union un_pom13 *)0xF005D).pom13 -#define POM13_bit (*(volatile union un_pom13 *)0xF005D).BIT -#define PMC1 (*(volatile union un_pmc1 *)0xF0061).pmc1 -#define PMC1_bit (*(volatile union un_pmc1 *)0xF0061).BIT -#define PMC2 (*(volatile union un_pmc2 *)0xF0062).pmc2 -#define PMC2_bit (*(volatile union un_pmc2 *)0xF0062).BIT -#define PMC4 (*(volatile union un_pmc4 *)0xF0064).pmc4 -#define PMC4_bit (*(volatile union un_pmc4 *)0xF0064).BIT -#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 -#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT -#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 -#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT -#define ISC (*(volatile union un_isc *)0xF0073).isc -#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT -#define TIS0 (*(volatile unsigned char *)0xF0074) -#define ADPC (*(volatile unsigned char *)0xF0076) -#define PIOR (*(volatile unsigned char *)0xF0077) -#define IAWCTL (*(volatile unsigned char *)0xF0078) -#define TOS (*(volatile union un_tos *)0xF0079).tos -#define TOS_bit (*(volatile union un_tos *)0xF0079).BIT -#define PER1 (*(volatile union un_per1 *)0xF007A).per1 -#define PER1_bit (*(volatile union un_per1 *)0xF007A).BIT -#define PMS (*(volatile union un_pms *)0xF007B).pms -#define PMS_bit (*(volatile union un_pms *)0xF007B).BIT -#define PWCTKB (*(volatile unsigned char *)0xF007C) -#define PRDSEL (*(volatile unsigned short *)0xF007E) -#define TOOLEN (*(volatile unsigned char *)0xF0080) -#define BPAL0 (*(volatile unsigned char *)0xF0081) -#define BPAH0 (*(volatile unsigned char *)0xF0082) -#define BPAS0 (*(volatile unsigned char *)0xF0083) -#define BACDVL0 (*(volatile unsigned char *)0xF0084) -#define BACDVH0 (*(volatile unsigned char *)0xF0085) -#define BACDML0 (*(volatile unsigned char *)0xF0086) -#define BACDMH0 (*(volatile unsigned char *)0xF0087) -#define MONMOD (*(volatile unsigned char *)0xF0088) -#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl -#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT -#define PERZ (*(volatile union un_perz *)0xF009F).perz -#define PERZ_bit (*(volatile union un_perz *)0xF009F).BIT -#define HIOTRM (*(volatile unsigned char *)0xF00A0) -#define BECTL (*(volatile union un_bectl *)0xF00A1).bectl -#define BECTL_bit (*(volatile union un_bectl *)0xF00A1).BIT -#define HOCODIV (*(volatile unsigned char *)0xF00A8) -#define TEMPCAL0 (*(volatile unsigned char *)0xF00AC) -#define TEMPCAL1 (*(volatile unsigned char *)0xF00AD) -#define TEMPCAL2 (*(volatile unsigned char *)0xF00AE) -#define TEMPCAL3 (*(volatile unsigned char *)0xF00AF) -#define FLSEC (*(volatile unsigned short *)0xF00B0) -#define FLFSWS (*(volatile unsigned short *)0xF00B2) -#define FLFSWE (*(volatile unsigned short *)0xF00B4) -#define FSSET (*(volatile unsigned char *)0xF00B6) -#define FSSE (*(volatile union un_fsse *)0xF00B7).fsse -#define FSSE_bit (*(volatile union un_fsse *)0xF00B7).BIT -#define FLFADL (*(volatile unsigned short *)0xF00B8) -#define FLFADH (*(volatile unsigned char *)0xF00BA) -#define PFCMD (*(volatile unsigned char *)0xF00C0) -#define PFS (*(volatile union un_pfs *)0xF00C1).pfs -#define PFS_bit (*(volatile union un_pfs *)0xF00C1).BIT -#define FLRL (*(volatile unsigned short *)0xF00C2) -#define FLRH (*(volatile unsigned short *)0xF00C4) -#define FLWE (*(volatile unsigned char *)0xF00C6) -#define FLRE (*(volatile unsigned char *)0xF00C7) -#define FLTMS (*(volatile unsigned short *)0xF00C8) -#define DFLMC (*(volatile unsigned short *)0xF00CA) -#define FLMCL (*(volatile unsigned short *)0xF00CC) -#define FLMCH (*(volatile unsigned char *)0xF00CE) -#define FSCTL (*(volatile unsigned char *)0xF00CF) -#define ICEADR (*(volatile unsigned short *)0xF00D0) -#define ICEDAT (*(volatile unsigned short *)0xF00D2) -#define MDCL (*(volatile unsigned short *)0xF00E0) -#define MDCH (*(volatile unsigned short *)0xF00E2) -#define MDUC (*(volatile union un_mduc *)0xF00E8).mduc -#define MDUC_bit (*(volatile union un_mduc *)0xF00E8).BIT -#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 -#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT -#define OSMC (*(volatile unsigned char *)0xF00F3) -#define RMC (*(volatile union un_rmc *)0xF00F4).rmc -#define RMC_bit (*(volatile union un_rmc *)0xF00F4).BIT -#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl -#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT -#define PORSR (*(volatile union un_porsr *)0xF00F9).porsr -#define PORSR_bit (*(volatile union un_porsr *)0xF00F9).BIT -#define BCDADJ (*(volatile unsigned char *)0xF00FE) -#define VECTCTRL (*(volatile unsigned char *)0xF00FF) -#define SSR00 (*(volatile unsigned short *)0xF0100) -#define SSR00L (*(volatile unsigned char *)0xF0100) -#define SSR01 (*(volatile unsigned short *)0xF0102) -#define SSR01L (*(volatile unsigned char *)0xF0102) -#define SSR02 (*(volatile unsigned short *)0xF0104) -#define SSR02L (*(volatile unsigned char *)0xF0104) -#define SSR03 (*(volatile unsigned short *)0xF0106) -#define SSR03L (*(volatile unsigned char *)0xF0106) -#define SIR00 (*(volatile unsigned short *)0xF0108) -#define SIR00L (*(volatile unsigned char *)0xF0108) -#define SIR01 (*(volatile unsigned short *)0xF010A) -#define SIR01L (*(volatile unsigned char *)0xF010A) -#define SIR02 (*(volatile unsigned short *)0xF010C) -#define SIR02L (*(volatile unsigned char *)0xF010C) -#define SIR03 (*(volatile unsigned short *)0xF010E) -#define SIR03L (*(volatile unsigned char *)0xF010E) -#define SMR00 (*(volatile unsigned short *)0xF0110) -#define SMR01 (*(volatile unsigned short *)0xF0112) -#define SMR02 (*(volatile unsigned short *)0xF0114) -#define SMR03 (*(volatile unsigned short *)0xF0116) -#define SCR00 (*(volatile unsigned short *)0xF0118) -#define SCR01 (*(volatile unsigned short *)0xF011A) -#define SCR02 (*(volatile unsigned short *)0xF011C) -#define SCR03 (*(volatile unsigned short *)0xF011E) -#define SE0 (*(volatile unsigned short *)0xF0120) -#define SE0L (*(volatile union un_se0l *)0xF0120).se0l -#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT -#define SS0 (*(volatile unsigned short *)0xF0122) -#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l -#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT -#define ST0 (*(volatile unsigned short *)0xF0124) -#define ST0L (*(volatile union un_st0l *)0xF0124).st0l -#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT -#define SPS0 (*(volatile unsigned short *)0xF0126) -#define SPS0L (*(volatile unsigned char *)0xF0126) -#define SO0 (*(volatile unsigned short *)0xF0128) -#define SOE0 (*(volatile unsigned short *)0xF012A) -#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l -#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT -#define EDR00 (*(volatile unsigned short *)0xF012C) -#define EDR00L (*(volatile unsigned char *)0xF012C) -#define EDR01 (*(volatile unsigned short *)0xF012E) -#define EDR01L (*(volatile unsigned char *)0xF012E) -#define EDR02 (*(volatile unsigned short *)0xF0130) -#define EDR02L (*(volatile unsigned char *)0xF0130) -#define EDR03 (*(volatile unsigned short *)0xF0132) -#define EDR03L (*(volatile unsigned char *)0xF0132) -#define SOL0 (*(volatile unsigned short *)0xF0134) -#define SOL0L (*(volatile unsigned char *)0xF0134) -#define SSC0 (*(volatile unsigned short *)0xF0138) -#define SSC0L (*(volatile unsigned char *)0xF0138) -#define SSR10 (*(volatile unsigned short *)0xF0140) -#define SSR10L (*(volatile unsigned char *)0xF0140) -#define SSR11 (*(volatile unsigned short *)0xF0142) -#define SSR11L (*(volatile unsigned char *)0xF0142) -#define SSR12 (*(volatile unsigned short *)0xF0144) -#define SSR12L (*(volatile unsigned char *)0xF0144) -#define SSR13 (*(volatile unsigned short *)0xF0146) -#define SSR13L (*(volatile unsigned char *)0xF0146) -#define SIR10 (*(volatile unsigned short *)0xF0148) -#define SIR10L (*(volatile unsigned char *)0xF0148) -#define SIR11 (*(volatile unsigned short *)0xF014A) -#define SIR11L (*(volatile unsigned char *)0xF014A) -#define SIR12 (*(volatile unsigned short *)0xF014C) -#define SIR12L (*(volatile unsigned char *)0xF014C) -#define SIR13 (*(volatile unsigned short *)0xF014E) -#define SIR13L (*(volatile unsigned char *)0xF014E) -#define SMR10 (*(volatile unsigned short *)0xF0150) -#define SMR11 (*(volatile unsigned short *)0xF0152) -#define SMR12 (*(volatile unsigned short *)0xF0154) -#define SMR13 (*(volatile unsigned short *)0xF0156) -#define SCR10 (*(volatile unsigned short *)0xF0158) -#define SCR11 (*(volatile unsigned short *)0xF015A) -#define SCR12 (*(volatile unsigned short *)0xF015C) -#define SCR13 (*(volatile unsigned short *)0xF015E) -#define SE1 (*(volatile unsigned short *)0xF0160) -#define SE1L (*(volatile union un_se1l *)0xF0160).se1l -#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT -#define SS1 (*(volatile unsigned short *)0xF0162) -#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l -#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT -#define ST1 (*(volatile unsigned short *)0xF0164) -#define ST1L (*(volatile union un_st1l *)0xF0164).st1l -#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT -#define SPS1 (*(volatile unsigned short *)0xF0166) -#define SPS1L (*(volatile unsigned char *)0xF0166) -#define SO1 (*(volatile unsigned short *)0xF0168) -#define SOE1 (*(volatile unsigned short *)0xF016A) -#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l -#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT -#define EDR10 (*(volatile unsigned short *)0xF016C) -#define EDR10L (*(volatile unsigned char *)0xF016C) -#define EDR11 (*(volatile unsigned short *)0xF016E) -#define EDR11L (*(volatile unsigned char *)0xF016E) -#define EDR12 (*(volatile unsigned short *)0xF0170) -#define EDR12L (*(volatile unsigned char *)0xF0170) -#define EDR13 (*(volatile unsigned short *)0xF0172) -#define EDR13L (*(volatile unsigned char *)0xF0172) -#define SOL1 (*(volatile unsigned short *)0xF0174) -#define SOL1L (*(volatile unsigned char *)0xF0174) -#define SSC1 (*(volatile unsigned short *)0xF0178) -#define SSC1L (*(volatile unsigned char *)0xF0178) -#define TCR00 (*(volatile unsigned short *)0xF0180) -#define TCR01 (*(volatile unsigned short *)0xF0182) -#define TCR02 (*(volatile unsigned short *)0xF0184) -#define TCR03 (*(volatile unsigned short *)0xF0186) -#define TCR04 (*(volatile unsigned short *)0xF0188) -#define TCR05 (*(volatile unsigned short *)0xF018A) -#define TCR06 (*(volatile unsigned short *)0xF018C) -#define TCR07 (*(volatile unsigned short *)0xF018E) -#define TMR00 (*(volatile unsigned short *)0xF0190) -#define TMR01 (*(volatile unsigned short *)0xF0192) -#define TMR02 (*(volatile unsigned short *)0xF0194) -#define TMR03 (*(volatile unsigned short *)0xF0196) -#define TMR04 (*(volatile unsigned short *)0xF0198) -#define TMR05 (*(volatile unsigned short *)0xF019A) -#define TMR06 (*(volatile unsigned short *)0xF019C) -#define TMR07 (*(volatile unsigned short *)0xF019E) -#define TSR00 (*(volatile unsigned short *)0xF01A0) -#define TSR00L (*(volatile unsigned char *)0xF01A0) -#define TSR01 (*(volatile unsigned short *)0xF01A2) -#define TSR01L (*(volatile unsigned char *)0xF01A2) -#define TSR02 (*(volatile unsigned short *)0xF01A4) -#define TSR02L (*(volatile unsigned char *)0xF01A4) -#define TSR03 (*(volatile unsigned short *)0xF01A6) -#define TSR03L (*(volatile unsigned char *)0xF01A6) -#define TSR04 (*(volatile unsigned short *)0xF01A8) -#define TSR04L (*(volatile unsigned char *)0xF01A8) -#define TSR05 (*(volatile unsigned short *)0xF01AA) -#define TSR05L (*(volatile unsigned char *)0xF01AA) -#define TSR06 (*(volatile unsigned short *)0xF01AC) -#define TSR06L (*(volatile unsigned char *)0xF01AC) -#define TSR07 (*(volatile unsigned short *)0xF01AE) -#define TSR07L (*(volatile unsigned char *)0xF01AE) -#define TE0 (*(volatile unsigned short *)0xF01B0) -#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l -#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT -#define TS0 (*(volatile unsigned short *)0xF01B2) -#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l -#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT -#define TT0 (*(volatile unsigned short *)0xF01B4) -#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l -#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT -#define TPS0 (*(volatile unsigned short *)0xF01B6) -#define TO0 (*(volatile unsigned short *)0xF01B8) -#define TO0L (*(volatile unsigned char *)0xF01B8) -#define TOE0 (*(volatile unsigned short *)0xF01BA) -#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l -#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT -#define TOL0 (*(volatile unsigned short *)0xF01BC) -#define TOL0L (*(volatile unsigned char *)0xF01BC) -#define TOM0 (*(volatile unsigned short *)0xF01BE) -#define TOM0L (*(volatile unsigned char *)0xF01BE) -#define DSA2 (*(volatile unsigned char *)0xF0200) -#define DSA3 (*(volatile unsigned char *)0xF0201) -#define DRA2 (*(volatile unsigned short *)0xF0202) -#define DRA2L (*(volatile unsigned char *)0xF0202) -#define DRA2H (*(volatile unsigned char *)0xF0203) -#define DRA3 (*(volatile unsigned short *)0xF0204) -#define DRA3L (*(volatile unsigned char *)0xF0204) -#define DRA3H (*(volatile unsigned char *)0xF0205) -#define DBC2 (*(volatile unsigned short *)0xF0206) -#define DBC2L (*(volatile unsigned char *)0xF0206) -#define DBC2H (*(volatile unsigned char *)0xF0207) -#define DBC3 (*(volatile unsigned short *)0xF0208) -#define DBC3L (*(volatile unsigned char *)0xF0208) -#define DBC3H (*(volatile unsigned char *)0xF0209) -#define DMC2 (*(volatile union un_dmc2 *)0xF020A).dmc2 -#define DMC2_bit (*(volatile union un_dmc2 *)0xF020A).BIT -#define DMC3 (*(volatile union un_dmc3 *)0xF020B).dmc3 -#define DMC3_bit (*(volatile union un_dmc3 *)0xF020B).BIT -#define DRC2 (*(volatile union un_drc2 *)0xF020C).drc2 -#define DRC2_bit (*(volatile union un_drc2 *)0xF020C).BIT -#define DRC3 (*(volatile union un_drc3 *)0xF020D).drc3 -#define DRC3_bit (*(volatile union un_drc3 *)0xF020D).BIT -#define DWAITALL (*(volatile union un_dwaitall *)0xF020F).dwaitall -#define DWAITALL_bit (*(volatile union un_dwaitall *)0xF020F).BIT -#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 -#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT -#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 -#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT -#define IICWL0 (*(volatile unsigned char *)0xF0232) -#define IICWH0 (*(volatile unsigned char *)0xF0233) -#define SVA0 (*(volatile unsigned char *)0xF0234) -#define IICSE0 (*(volatile unsigned char *)0xF0235) -#define ELSELR00 (*(volatile unsigned char *)0xF0240) -#define ELSELR01 (*(volatile unsigned char *)0xF0241) -#define ELSELR02 (*(volatile unsigned char *)0xF0242) -#define ELSELR03 (*(volatile unsigned char *)0xF0243) -#define ELSELR04 (*(volatile unsigned char *)0xF0244) -#define ELSELR05 (*(volatile unsigned char *)0xF0245) -#define ELSELR06 (*(volatile unsigned char *)0xF0246) -#define ELSELR07 (*(volatile unsigned char *)0xF0247) -#define ELSELR08 (*(volatile unsigned char *)0xF0248) -#define ELSELR09 (*(volatile unsigned char *)0xF0249) -#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl -#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT -#define PGCRCL (*(volatile unsigned short *)0xF02F2) -#define CRCD (*(volatile unsigned short *)0xF02FA) -#define PFSEG0 (*(volatile union un_pfseg0 *)0xF0300).pfseg0 -#define PFSEG0_bit (*(volatile union un_pfseg0 *)0xF0300).BIT -#define PFSEG1 (*(volatile union un_pfseg1 *)0xF0301).pfseg1 -#define PFSEG1_bit (*(volatile union un_pfseg1 *)0xF0301).BIT -#define PFSEG2 (*(volatile union un_pfseg2 *)0xF0302).pfseg2 -#define PFSEG2_bit (*(volatile union un_pfseg2 *)0xF0302).BIT -#define PFSEG3 (*(volatile union un_pfseg3 *)0xF0303).pfseg3 -#define PFSEG3_bit (*(volatile union un_pfseg3 *)0xF0303).BIT -#define PFSEG4 (*(volatile union un_pfseg4 *)0xF0304).pfseg4 -#define PFSEG4_bit (*(volatile union un_pfseg4 *)0xF0304).BIT -#define PFSEG5 (*(volatile union un_pfseg5 *)0xF0305).pfseg5 -#define PFSEG5_bit (*(volatile union un_pfseg5 *)0xF0305).BIT -#define PFSEG6 (*(volatile union un_pfseg6 *)0xF0306).pfseg6 -#define PFSEG6_bit (*(volatile union un_pfseg6 *)0xF0306).BIT -#define ISCLCD (*(volatile union un_isclcd *)0xF0308).isclcd -#define ISCLCD_bit (*(volatile union un_isclcd *)0xF0308).BIT -#define SUBCUD (*(volatile unsigned short *)0xF0310) -#define COMPMDR (*(volatile union un_compmdr *)0xF0340).compmdr -#define COMPMDR_bit (*(volatile union un_compmdr *)0xF0340).BIT -#define COMPFIR (*(volatile union un_compfir *)0xF0341).compfir -#define COMPFIR_bit (*(volatile union un_compfir *)0xF0341).BIT -#define COMPOCR (*(volatile union un_compocr *)0xF0342).compocr -#define COMPOCR_bit (*(volatile union un_compocr *)0xF0342).BIT -#define COMPTCR (*(volatile union un_comptcr *)0xF0343).comptcr -#define COMPTCR_bit (*(volatile union un_comptcr *)0xF0343).BIT -#define SEG0 (*(volatile unsigned char *)0xF0400) -#define SEG1 (*(volatile unsigned char *)0xF0401) -#define SEG2 (*(volatile unsigned char *)0xF0402) -#define SEG3 (*(volatile unsigned char *)0xF0403) -#define SEG4 (*(volatile unsigned char *)0xF0404) -#define SEG5 (*(volatile unsigned char *)0xF0405) -#define SEG6 (*(volatile unsigned char *)0xF0406) -#define SEG7 (*(volatile unsigned char *)0xF0407) -#define SEG8 (*(volatile unsigned char *)0xF0408) -#define SEG9 (*(volatile unsigned char *)0xF0409) -#define SEG10 (*(volatile unsigned char *)0xF040A) -#define SEG11 (*(volatile unsigned char *)0xF040B) -#define SEG12 (*(volatile unsigned char *)0xF040C) -#define SEG13 (*(volatile unsigned char *)0xF040D) -#define SEG14 (*(volatile unsigned char *)0xF040E) -#define SEG15 (*(volatile unsigned char *)0xF040F) -#define SEG16 (*(volatile unsigned char *)0xF0410) -#define SEG17 (*(volatile unsigned char *)0xF0411) -#define SEG18 (*(volatile unsigned char *)0xF0412) -#define SEG19 (*(volatile unsigned char *)0xF0413) -#define SEG20 (*(volatile unsigned char *)0xF0414) -#define SEG21 (*(volatile unsigned char *)0xF0415) -#define SEG22 (*(volatile unsigned char *)0xF0416) -#define SEG23 (*(volatile unsigned char *)0xF0417) -#define SEG24 (*(volatile unsigned char *)0xF0418) -#define SEG25 (*(volatile unsigned char *)0xF0419) -#define SEG26 (*(volatile unsigned char *)0xF041A) -#define SEG27 (*(volatile unsigned char *)0xF041B) -#define SEG28 (*(volatile unsigned char *)0xF041C) -#define SEG29 (*(volatile unsigned char *)0xF041D) -#define SEG30 (*(volatile unsigned char *)0xF041E) -#define SEG31 (*(volatile unsigned char *)0xF041F) -#define SEG32 (*(volatile unsigned char *)0xF0420) -#define SEG33 (*(volatile unsigned char *)0xF0421) -#define SEG34 (*(volatile unsigned char *)0xF0422) -#define SEG35 (*(volatile unsigned char *)0xF0423) -#define SEG36 (*(volatile unsigned char *)0xF0424) -#define SEG37 (*(volatile unsigned char *)0xF0425) -#define SEG38 (*(volatile unsigned char *)0xF0426) -#define SEG39 (*(volatile unsigned char *)0xF0427) -#define SEG40 (*(volatile unsigned char *)0xF0428) -#define SEG41 (*(volatile unsigned char *)0xF0429) -#define SEG42 (*(volatile unsigned char *)0xF042A) -#define SEG43 (*(volatile unsigned char *)0xF042B) -#define SEG44 (*(volatile unsigned char *)0xF042C) -#define SEG45 (*(volatile unsigned char *)0xF042D) -#define SEG46 (*(volatile unsigned char *)0xF042E) -#define SEG47 (*(volatile unsigned char *)0xF042F) -#define SEG48 (*(volatile unsigned char *)0xF0430) -#define SEG49 (*(volatile unsigned char *)0xF0431) -#define SEG50 (*(volatile unsigned char *)0xF0432) -#define SEG51 (*(volatile unsigned char *)0xF0433) -#define SEG52 (*(volatile unsigned char *)0xF0434) -#define SEG53 (*(volatile unsigned char *)0xF0435) -#define SEG54 (*(volatile unsigned char *)0xF0436) -#define SEG55 (*(volatile unsigned char *)0xF0437) -#define TKBCR00 (*(volatile unsigned short *)0xF0500) -#define TKBCR01 (*(volatile unsigned short *)0xF0502) -#define TKBCR02 (*(volatile unsigned short *)0xF0504) -#define TKBCR03 (*(volatile unsigned short *)0xF0506) -#define TKBTGCR0 (*(volatile unsigned short *)0xF0508) -#define TKBSIR00 (*(volatile unsigned short *)0xF050A) -#define TKBSIR01 (*(volatile unsigned short *)0xF050C) -#define TKBDNR00 (*(volatile unsigned char *)0xF050E) -#define TKBSSR00 (*(volatile unsigned char *)0xF050F) -#define TKBDNR01 (*(volatile unsigned char *)0xF0510) -#define TKBSSR01 (*(volatile unsigned char *)0xF0511) -#define TKBTRG0 (*(volatile union un_tkbtrg0 *)0xF0512).tkbtrg0 -#define TKBTRG0_bit (*(volatile union un_tkbtrg0 *)0xF0512).BIT -#define TKBFLG0 (*(volatile union un_tkbflg0 *)0xF0513).tkbflg0 -#define TKBFLG0_bit (*(volatile union un_tkbflg0 *)0xF0513).BIT -#define TKBCRLD00 (*(volatile unsigned short *)0xF0514) -#define TKBCRLD01 (*(volatile unsigned short *)0xF0516) -#define TKBCNT0 (*(volatile unsigned short *)0xF0520) -#define TKBCTL00 (*(volatile unsigned short *)0xF0522) -#define TKBMFR0 (*(volatile unsigned short *)0xF0524) -#define TKBIOC00 (*(volatile union un_tkbioc00 *)0xF0526).tkbioc00 -#define TKBIOC00_bit (*(volatile union un_tkbioc00 *)0xF0526).BIT -#define TKBCLR0 (*(volatile union un_tkbclr0 *)0xF0527).tkbclr0 -#define TKBCLR0_bit (*(volatile union un_tkbclr0 *)0xF0527).BIT -#define TKBIOC01 (*(volatile union un_tkbioc01 *)0xF0528).tkbioc01 -#define TKBIOC01_bit (*(volatile union un_tkbioc01 *)0xF0528).BIT -#define TKBCTL01 (*(volatile union un_tkbctl01 *)0xF0529).tkbctl01 -#define TKBCTL01_bit (*(volatile union un_tkbctl01 *)0xF0529).BIT -#define TKBPSCS0 (*(volatile unsigned char *)0xF052A) -#define TKBPACTL00 (*(volatile unsigned short *)0xF0530) -#define TKBPACTL01 (*(volatile unsigned short *)0xF0532) -#define TKBPAHFS0 (*(volatile union un_tkbpahfs0 *)0xF0534).tkbpahfs0 -#define TKBPAHFS0_bit (*(volatile union un_tkbpahfs0 *)0xF0534).BIT -#define TKBPAHFT0 (*(volatile union un_tkbpahft0 *)0xF0535).tkbpahft0 -#define TKBPAHFT0_bit (*(volatile union un_tkbpahft0 *)0xF0535).BIT -#define TKBPAFLG0 (*(volatile union un_tkbpaflg0 *)0xF0536).tkbpaflg0 -#define TKBPAFLG0_bit (*(volatile union un_tkbpaflg0 *)0xF0536).BIT -#define TKBPACTL02 (*(volatile union un_tkbpactl02 *)0xF0537).tkbpactl02 -#define TKBPACTL02_bit (*(volatile union un_tkbpactl02 *)0xF0537).BIT - -/* - Sfr bits - */ -#define ADTYP ADM2_bit.no0 -#define AWC ADM2_bit.no2 -#define ADRCK ADM2_bit.no3 -#define TOS0 TOS_bit.no0 -#define TKB2EN PER1_bit.no4 -#define CMPEN PER1_bit.no5 -#define TMKAEN PER1_bit.no7 -#define DFLEN DFLCTL_bit.no0 -#define FSUBEN PERZ_bit.no7 -#define BRSAM BECTL_bit.no0 -#define ESQST FSSE_bit.no7 -#define DIVST MDUC_bit.no0 -#define MACSF MDUC_bit.no1 -#define MACOF MDUC_bit.no2 -#define MDSM MDUC_bit.no3 -#define MACMODE MDUC_bit.no6 -#define DIVMODE MDUC_bit.no7 -#define TAU0EN PER0_bit.no0 -#define SAU0EN PER0_bit.no2 -#define SAU1EN PER0_bit.no3 -#define IICA0EN PER0_bit.no4 -#define ADCEN PER0_bit.no5 -#define RTCWEN PER0_bit.no7 -#define PAENB RMC_bit.no0 -#define WDVOL RMC_bit.no7 -#define RPEF RPECTL_bit.no0 -#define RPERDIS RPECTL_bit.no7 -#define DWAIT2 DMC2_bit.no4 -#define DS2 DMC2_bit.no5 -#define DRS2 DMC2_bit.no6 -#define STG2 DMC2_bit.no7 -#define DWAIT3 DMC3_bit.no4 -#define DS3 DMC3_bit.no5 -#define DRS3 DMC3_bit.no6 -#define STG3 DMC3_bit.no7 -#define DST2 DRC2_bit.no0 -#define DEN2 DRC2_bit.no7 -#define DST3 DRC3_bit.no0 -#define DEN3 DRC3_bit.no7 -#define DWAITALL0 DWAITALL_bit.no0 -#define PRVARI DWAITALL_bit.no7 -#define SPT0 IICCTL00_bit.no0 -#define STT0 IICCTL00_bit.no1 -#define ACKE0 IICCTL00_bit.no2 -#define WTIM0 IICCTL00_bit.no3 -#define SPIE0 IICCTL00_bit.no4 -#define WREL0 IICCTL00_bit.no5 -#define LREL0 IICCTL00_bit.no6 -#define IICE0 IICCTL00_bit.no7 -#define PRS0 IICCTL01_bit.no0 -#define DFC0 IICCTL01_bit.no2 -#define SMC0 IICCTL01_bit.no3 -#define DAD0 IICCTL01_bit.no4 -#define CLD0 IICCTL01_bit.no5 -#define WUP0 IICCTL01_bit.no7 -#define CRC0EN CRC0CTL_bit.no7 -#define C0ENB COMPMDR_bit.no0 -#define C0MON COMPMDR_bit.no3 -#define C1ENB COMPMDR_bit.no4 -#define C1MON COMPMDR_bit.no7 -#define C0IE COMPOCR_bit.no0 -#define C0OE COMPOCR_bit.no1 -#define C0OP COMPOCR_bit.no2 -#define C1IE COMPOCR_bit.no4 -#define C1OE COMPOCR_bit.no5 -#define C1OP COMPOCR_bit.no6 -#define SPDMD COMPOCR_bit.no7 -#define TKBRDT0 TKBTRG0_bit.no0 -#define TKBRSF0 TKBFLG0_bit.no0 -#define TKBMFF0 TKBFLG0_bit.no1 -#define TKBIEF0 TKBFLG0_bit.no2 -#define TKBIRF0 TKBFLG0_bit.no3 -#define TKBSEF00 TKBFLG0_bit.no4 -#define TKBSEF01 TKBFLG0_bit.no5 -#define TKBSSF00 TKBFLG0_bit.no6 -#define TKBSSF01 TKBFLG0_bit.no7 -#define TKBTOD00 TKBIOC00_bit.no0 -#define TKBTOD01 TKBIOC00_bit.no1 -#define TKBTOL00 TKBIOC00_bit.no2 -#define TKBTOL01 TKBIOC00_bit.no3 -#define TKBCLMF0 TKBCLR0_bit.no1 -#define TKBCLIE0 TKBCLR0_bit.no2 -#define TKBCLIR0 TKBCLR0_bit.no3 -#define TKBCLSE00 TKBCLR0_bit.no4 -#define TKBCLSE01 TKBCLR0_bit.no5 -#define TKBTOE00 TKBIOC01_bit.no0 -#define TKBTOE01 TKBIOC01_bit.no1 -#define TKBCE0 TKBCTL01_bit.no7 -#define TKBPAHTS00 TKBPAHFS0_bit.no0 -#define TKBPAHTS01 TKBPAHFS0_bit.no1 -#define TKBPAHTT00 TKBPAHFT0_bit.no0 -#define TKBPAHTT01 TKBPAHFT0_bit.no1 -#define TKBPAHIF00 TKBPAFLG0_bit.no0 -#define TKBPAFIF00 TKBPAFLG0_bit.no1 -#define TKBPAHIF01 TKBPAFLG0_bit.no2 -#define TKBPAFIF01 TKBPAFLG0_bit.no3 -#define TKBPAHSF00 TKBPAFLG0_bit.no4 -#define TKBPAFSF00 TKBPAFLG0_bit.no5 -#define TKBPAHSF01 TKBPAFLG0_bit.no6 -#define TKBPAFSF01 TKBPAFLG0_bit.no7 -#define TKBPACE00 TKBPACTL02_bit.no0 -#define TKBPACE01 TKBPACTL02_bit.no1 - -/* - Interrupt vector addresses - */ -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L1C.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L1C.h deleted file mode 100644 index b20855615..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L1C.h +++ /dev/null @@ -1,1002 +0,0 @@ - -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F110PJ.DVF */ -/* Copyright(C) 2013 Renesas */ -/* File Version E1.00h */ -/* Tool Version 2.5.211 */ -/* Date Generated 07/05/2013 */ -/************************************************************************/ - -#ifndef __INTRINSIC_FUNCTIONS -#define __INTRINSIC_FUNCTIONS - -#define DI() asm("di") -#define EI() asm("ei") -#define HALT() asm("halt") -#define NOP() asm("nop") -#define STOP() asm("stop") - -#endif - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_H -#define IODEFINE_H - -/* - IO Registers - */ -union un_p0 { - unsigned char p0; - __BITS8 BIT; -}; -union un_p1 { - unsigned char p1; - __BITS8 BIT; -}; -union un_p2 { - unsigned char p2; - __BITS8 BIT; -}; -union un_p3 { - unsigned char p3; - __BITS8 BIT; -}; -union un_p4 { - unsigned char p4; - __BITS8 BIT; -}; -union un_p5 { - unsigned char p5; - __BITS8 BIT; -}; -union un_p6 { - unsigned char p6; - __BITS8 BIT; -}; -union un_p7 { - unsigned char p7; - __BITS8 BIT; -}; -union un_p12 { - unsigned char p12; - __BITS8 BIT; -}; -union un_p13 { - unsigned char p13; - __BITS8 BIT; -}; -union un_p14 { - unsigned char p14; - __BITS8 BIT; -}; -union un_p15 { - unsigned char p15; - __BITS8 BIT; -}; -union un_pm0 { - unsigned char pm0; - __BITS8 BIT; -}; -union un_pm1 { - unsigned char pm1; - __BITS8 BIT; -}; -union un_pm2 { - unsigned char pm2; - __BITS8 BIT; -}; -union un_pm3 { - unsigned char pm3; - __BITS8 BIT; -}; -union un_pm4 { - unsigned char pm4; - __BITS8 BIT; -}; -union un_pm5 { - unsigned char pm5; - __BITS8 BIT; -}; -union un_pm6 { - unsigned char pm6; - __BITS8 BIT; -}; -union un_pm7 { - unsigned char pm7; - __BITS8 BIT; -}; -union un_pm12 { - unsigned char pm12; - __BITS8 BIT; -}; -union un_pm14 { - unsigned char pm14; - __BITS8 BIT; -}; -union un_pm15 { - unsigned char pm15; - __BITS8 BIT; -}; -union un_adm0 { - unsigned char adm0; - __BITS8 BIT; -}; -union un_ads { - unsigned char ads; - __BITS8 BIT; -}; -union un_adm1 { - unsigned char adm1; - __BITS8 BIT; -}; -union un_krctl { - unsigned char krctl; - __BITS8 BIT; -}; -union un_krm0 { - unsigned char krm0; - __BITS8 BIT; -}; -union un_egp0 { - unsigned char egp0; - __BITS8 BIT; -}; -union un_egn0 { - unsigned char egn0; - __BITS8 BIT; -}; -union un_lcdm1 { - unsigned char lcdm1; - __BITS8 BIT; -}; -union un_mlcd { - unsigned char mlcd; - __BITS8 BIT; -}; -union un_iics0 { - unsigned char iics0; - __BITS8 BIT; -}; -union un_iicf0 { - unsigned char iicf0; - __BITS8 BIT; -}; -union un_dam { - unsigned char dam; - __BITS8 BIT; -}; -union un_rtcc0 { - unsigned char rtcc0; - __BITS8 BIT; -}; -union un_rtcc1 { - unsigned char rtcc1; - __BITS8 BIT; -}; -union un_csc { - unsigned char csc; - __BITS8 BIT; -}; -union un_ostc { - unsigned char ostc; - __BITS8 BIT; -}; -union un_ckc { - unsigned char ckc; - __BITS8 BIT; -}; -union un_cks0 { - unsigned char cks0; - __BITS8 BIT; -}; -union un_cks1 { - unsigned char cks1; - __BITS8 BIT; -}; -union un_lvim { - unsigned char lvim; - __BITS8 BIT; -}; -union un_lvis { - unsigned char lvis; - __BITS8 BIT; -}; -union un_if2 { - unsigned short if2; - __BITS16 BIT; -}; -union un_if2l { - unsigned char if2l; - __BITS8 BIT; -}; -union un_if2h { - unsigned char if2h; - __BITS8 BIT; -}; -union un_if3 { - unsigned short if3; - __BITS16 BIT; -}; -union un_if3l { - unsigned char if3l; - __BITS8 BIT; -}; -union un_mk2 { - unsigned short mk2; - __BITS16 BIT; -}; -union un_mk2l { - unsigned char mk2l; - __BITS8 BIT; -}; -union un_mk2h { - unsigned char mk2h; - __BITS8 BIT; -}; -union un_mk3 { - unsigned short mk3; - __BITS16 BIT; -}; -union un_mk3l { - unsigned char mk3l; - __BITS8 BIT; -}; -union un_pr02 { - unsigned short pr02; - __BITS16 BIT; -}; -union un_pr02l { - unsigned char pr02l; - __BITS8 BIT; -}; -union un_pr02h { - unsigned char pr02h; - __BITS8 BIT; -}; -union un_pr03 { - unsigned short pr03; - __BITS16 BIT; -}; -union un_pr03l { - unsigned char pr03l; - __BITS8 BIT; -}; -union un_pr12 { - unsigned short pr12; - __BITS16 BIT; -}; -union un_pr12l { - unsigned char pr12l; - __BITS8 BIT; -}; -union un_pr12h { - unsigned char pr12h; - __BITS8 BIT; -}; -union un_pr13 { - unsigned short pr13; - __BITS16 BIT; -}; -union un_pr13l { - unsigned char pr13l; - __BITS8 BIT; -}; -union un_if0 { - unsigned short if0; - __BITS16 BIT; -}; -union un_if0l { - unsigned char if0l; - __BITS8 BIT; -}; -union un_if0h { - unsigned char if0h; - __BITS8 BIT; -}; -union un_if1 { - unsigned short if1; - __BITS16 BIT; -}; -union un_if1l { - unsigned char if1l; - __BITS8 BIT; -}; -union un_if1h { - unsigned char if1h; - __BITS8 BIT; -}; -union un_mk0 { - unsigned short mk0; - __BITS16 BIT; -}; -union un_mk0l { - unsigned char mk0l; - __BITS8 BIT; -}; -union un_mk0h { - unsigned char mk0h; - __BITS8 BIT; -}; -union un_mk1 { - unsigned short mk1; - __BITS16 BIT; -}; -union un_mk1l { - unsigned char mk1l; - __BITS8 BIT; -}; -union un_mk1h { - unsigned char mk1h; - __BITS8 BIT; -}; -union un_pr00 { - unsigned short pr00; - __BITS16 BIT; -}; -union un_pr00l { - unsigned char pr00l; - __BITS8 BIT; -}; -union un_pr00h { - unsigned char pr00h; - __BITS8 BIT; -}; -union un_pr01 { - unsigned short pr01; - __BITS16 BIT; -}; -union un_pr01l { - unsigned char pr01l; - __BITS8 BIT; -}; -union un_pr01h { - unsigned char pr01h; - __BITS8 BIT; -}; -union un_pr10 { - unsigned short pr10; - __BITS16 BIT; -}; -union un_pr10l { - unsigned char pr10l; - __BITS8 BIT; -}; -union un_pr10h { - unsigned char pr10h; - __BITS8 BIT; -}; -union un_pr11 { - unsigned short pr11; - __BITS16 BIT; -}; -union un_pr11l { - unsigned char pr11l; - __BITS8 BIT; -}; -union un_pr11h { - unsigned char pr11h; - __BITS8 BIT; -}; -union un_pmc { - unsigned char pmc; - __BITS8 BIT; -}; - -#define P0 (*(volatile union un_p0 *)0xFFF00).p0 -#define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT -#define P1 (*(volatile union un_p1 *)0xFFF01).p1 -#define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT -#define P2 (*(volatile union un_p2 *)0xFFF02).p2 -#define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT -#define P3 (*(volatile union un_p3 *)0xFFF03).p3 -#define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT -#define P4 (*(volatile union un_p4 *)0xFFF04).p4 -#define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT -#define P5 (*(volatile union un_p5 *)0xFFF05).p5 -#define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT -#define P6 (*(volatile union un_p6 *)0xFFF06).p6 -#define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT -#define P7 (*(volatile union un_p7 *)0xFFF07).p7 -#define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT -#define P12 (*(volatile union un_p12 *)0xFFF0C).p12 -#define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT -#define P13 (*(volatile union un_p13 *)0xFFF0D).p13 -#define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT -#define P14 (*(volatile union un_p14 *)0xFFF0E).p14 -#define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT -#define P15 (*(volatile union un_p15 *)0xFFF0F).p15 -#define P15_bit (*(volatile union un_p15 *)0xFFF0F).BIT -#define SDR00 (*(volatile unsigned short *)0xFFF10) -#define SIO00 (*(volatile unsigned char *)0xFFF10) -#define TXD0 (*(volatile unsigned char *)0xFFF10) -#define SDR01 (*(volatile unsigned short *)0xFFF12) -#define RXD0 (*(volatile unsigned char *)0xFFF12) -#define SDR12 (*(volatile unsigned short *)0xFFF14) -#define SIO30 (*(volatile unsigned char *)0xFFF14) -#define TXD3 (*(volatile unsigned char *)0xFFF14) -#define SDR13 (*(volatile unsigned short *)0xFFF16) -#define RXD3 (*(volatile unsigned char *)0xFFF16) -#define TDR00 (*(volatile unsigned short *)0xFFF18) -#define TDR01 (*(volatile unsigned short *)0xFFF1A) -#define TDR01L (*(volatile unsigned char *)0xFFF1A) -#define TDR01H (*(volatile unsigned char *)0xFFF1B) -#define ADCR (*(volatile unsigned short *)0xFFF1E) -#define ADCRH (*(volatile unsigned char *)0xFFF1F) -#define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0 -#define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT -#define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1 -#define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT -#define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2 -#define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT -#define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3 -#define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT -#define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4 -#define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT -#define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5 -#define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT -#define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6 -#define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT -#define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7 -#define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT -#define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12 -#define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT -#define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14 -#define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT -#define PM15 (*(volatile union un_pm15 *)0xFFF2F).pm15 -#define PM15_bit (*(volatile union un_pm15 *)0xFFF2F).BIT -#define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0 -#define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT -#define ADS (*(volatile union un_ads *)0xFFF31).ads -#define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT -#define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1 -#define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT -#define KRCTL (*(volatile union un_krctl *)0xFFF34).krctl -#define KRCTL_bit (*(volatile union un_krctl *)0xFFF34).BIT -#define KRF (*(volatile unsigned char *)0xFFF35) -#define KRM0 (*(volatile union un_krm0 *)0xFFF37).krm0 -#define KRM0_bit (*(volatile union un_krm0 *)0xFFF37).BIT -#define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0 -#define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT -#define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0 -#define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT -#define LCDM0 (*(volatile unsigned char *)0xFFF40) -#define LCDM1 (*(volatile union un_lcdm1 *)0xFFF41).lcdm1 -#define LCDM1_bit (*(volatile union un_lcdm1 *)0xFFF41).BIT -#define LCDC0 (*(volatile unsigned char *)0xFFF42) -#define VLCD (*(volatile unsigned char *)0xFFF43) -#define SDR02 (*(volatile unsigned short *)0xFFF44) -#define SIO10 (*(volatile unsigned char *)0xFFF44) -#define TXD1 (*(volatile unsigned char *)0xFFF44) -#define SDR03 (*(volatile unsigned short *)0xFFF46) -#define RXD1 (*(volatile unsigned char *)0xFFF46) -#define SDR10 (*(volatile unsigned short *)0xFFF48) -#define SIO20 (*(volatile unsigned char *)0xFFF48) -#define TXD2 (*(volatile unsigned char *)0xFFF48) -#define SDR11 (*(volatile unsigned short *)0xFFF4A) -#define RXD2 (*(volatile unsigned char *)0xFFF4A) -#define MLCD (*(volatile union un_mlcd *)0xFFF4C).mlcd -#define MLCD_bit (*(volatile union un_mlcd *)0xFFF4C).BIT -#define IICA0 (*(volatile unsigned char *)0xFFF50) -#define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0 -#define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT -#define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0 -#define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT -#define TDR02 (*(volatile unsigned short *)0xFFF64) -#define TDR03 (*(volatile unsigned short *)0xFFF66) -#define TDR03L (*(volatile unsigned char *)0xFFF66) -#define TDR03H (*(volatile unsigned char *)0xFFF67) -#define TDR04 (*(volatile unsigned short *)0xFFF68) -#define TDR05 (*(volatile unsigned short *)0xFFF6A) -#define TDR06 (*(volatile unsigned short *)0xFFF6C) -#define TDR07 (*(volatile unsigned short *)0xFFF6E) -#define DACS0 (*(volatile unsigned char *)0xFFF74) -#define DACS1 (*(volatile unsigned char *)0xFFF75) -#define DAM (*(volatile union un_dam *)0xFFF76).dam -#define DAM_bit (*(volatile union un_dam *)0xFFF76).BIT -#define ITMC (*(volatile unsigned short *)0xFFF90) -#define SEC (*(volatile unsigned char *)0xFFF92) -#define MIN (*(volatile unsigned char *)0xFFF93) -#define HOUR (*(volatile unsigned char *)0xFFF94) -#define WEEK (*(volatile unsigned char *)0xFFF95) -#define DAY (*(volatile unsigned char *)0xFFF96) -#define MONTH (*(volatile unsigned char *)0xFFF97) -#define YEAR (*(volatile unsigned char *)0xFFF98) -#define ALARMWM (*(volatile unsigned char *)0xFFF9A) -#define ALARMWH (*(volatile unsigned char *)0xFFF9B) -#define ALARMWW (*(volatile unsigned char *)0xFFF9C) -#define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0 -#define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT -#define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1 -#define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT -#define CMC (*(volatile unsigned char *)0xFFFA0) -#define CSC (*(volatile union un_csc *)0xFFFA1).csc -#define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT -#define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc -#define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT -#define OSTS (*(volatile unsigned char *)0xFFFA3) -#define CKC (*(volatile union un_ckc *)0xFFFA4).ckc -#define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT -#define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0 -#define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT -#define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1 -#define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT -#define RESF (*(volatile unsigned char *)0xFFFA8) -#define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim -#define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT -#define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis -#define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT -#define WDTE (*(volatile unsigned char *)0xFFFAB) -#define CRCIN (*(volatile unsigned char *)0xFFFAC) -#define IF2 (*(volatile union un_if2 *)0xFFFD0).if2 -#define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT -#define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l -#define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT -#define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h -#define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT -#define IF3 (*(volatile union un_if3 *)0xFFFD2).if3 -#define IF3_bit (*(volatile union un_if3 *)0xFFFD2).BIT -#define IF3L (*(volatile union un_if3l *)0xFFFD2).if3l -#define IF3L_bit (*(volatile union un_if3l *)0xFFFD2).BIT -#define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2 -#define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT -#define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l -#define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT -#define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h -#define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT -#define MK3 (*(volatile union un_mk3 *)0xFFFD6).mk3 -#define MK3_bit (*(volatile union un_mk3 *)0xFFFD6).BIT -#define MK3L (*(volatile union un_mk3l *)0xFFFD6).mk3l -#define MK3L_bit (*(volatile union un_mk3l *)0xFFFD6).BIT -#define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02 -#define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT -#define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l -#define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT -#define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h -#define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT -#define PR03 (*(volatile union un_pr03 *)0xFFFDA).pr03 -#define PR03_bit (*(volatile union un_pr03 *)0xFFFDA).BIT -#define PR03L (*(volatile union un_pr03l *)0xFFFDA).pr03l -#define PR03L_bit (*(volatile union un_pr03l *)0xFFFDA).BIT -#define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12 -#define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT -#define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l -#define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT -#define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h -#define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT -#define PR13 (*(volatile union un_pr13 *)0xFFFDE).pr13 -#define PR13_bit (*(volatile union un_pr13 *)0xFFFDE).BIT -#define PR13L (*(volatile union un_pr13l *)0xFFFDE).pr13l -#define PR13L_bit (*(volatile union un_pr13l *)0xFFFDE).BIT -#define IF0 (*(volatile union un_if0 *)0xFFFE0).if0 -#define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT -#define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l -#define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT -#define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h -#define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT -#define IF1 (*(volatile union un_if1 *)0xFFFE2).if1 -#define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT -#define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l -#define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT -#define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h -#define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT -#define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0 -#define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT -#define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l -#define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT -#define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h -#define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT -#define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1 -#define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT -#define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l -#define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT -#define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h -#define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT -#define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00 -#define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT -#define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l -#define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT -#define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h -#define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT -#define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01 -#define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT -#define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l -#define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT -#define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h -#define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT -#define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10 -#define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT -#define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l -#define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT -#define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h -#define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT -#define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11 -#define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT -#define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l -#define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT -#define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h -#define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT -#define MACRL (*(volatile unsigned short *)0xFFFF0) -#define MACRH (*(volatile unsigned short *)0xFFFF2) -#define PMC (*(volatile union un_pmc *)0xFFFFE).pmc -#define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT - -/* - Sfr bits - */ -#define ADCE ADM0_bit.no0 -#define ADCS ADM0_bit.no7 -#define LCDVLM LCDM1_bit.no0 -#define LCDSEL LCDM1_bit.no3 -#define BLON LCDM1_bit.no4 -#define VLCON LCDM1_bit.no5 -#define SCOC LCDM1_bit.no6 -#define LCDON LCDM1_bit.no7 -#define OPTCKE MLCD_bit.no4 -#define COMEXP MLCD_bit.no6 -#define LCTZS MLCD_bit.no7 -#define SPD0 IICS0_bit.no0 -#define STD0 IICS0_bit.no1 -#define ACKD0 IICS0_bit.no2 -#define TRC0 IICS0_bit.no3 -#define COI0 IICS0_bit.no4 -#define EXC0 IICS0_bit.no5 -#define ALD0 IICS0_bit.no6 -#define MSTS0 IICS0_bit.no7 -#define IICRSV0 IICF0_bit.no0 -#define STCEN0 IICF0_bit.no1 -#define IICBSY0 IICF0_bit.no6 -#define STCF0 IICF0_bit.no7 -#define DACE0 DAM_bit.no4 -#define DACE1 DAM_bit.no5 -#define CLOE1 RTCC0_bit.no5 -#define RTCE RTCC0_bit.no7 -#define RWAIT RTCC1_bit.no0 -#define RWST RTCC1_bit.no1 -#define RIFG RTCC1_bit.no3 -#define WAFG RTCC1_bit.no4 -#define RITE RTCC1_bit.no5 -#define WALIE RTCC1_bit.no6 -#define WALE RTCC1_bit.no7 -#define HIOSTOP CSC_bit.no0 -#define XTSTOP CSC_bit.no6 -#define MSTOP CSC_bit.no7 -#define SDIV CKC_bit.no3 -#define MCM0 CKC_bit.no4 -#define MCS CKC_bit.no5 -#define CSS CKC_bit.no6 -#define CLS CKC_bit.no7 -#define PCLOE0 CKS0_bit.no7 -#define PCLOE1 CKS1_bit.no7 -#define LVIF LVIM_bit.no0 -#define LVIOMSK LVIM_bit.no1 -#define LVISEN LVIM_bit.no7 -#define LVILV LVIS_bit.no0 -#define LVIMD LVIS_bit.no7 -#define TMIF04 IF2_bit.no1 -#define TMIF05 IF2_bit.no2 -#define PIF6 IF2_bit.no3 -#define PIF7 IF2_bit.no4 -#define LCDIF0 IF2_bit.no5 -#define CMPIF0 IF2_bit.no6 -#define CMPIF1 IF2_bit.no7 -#define TMIF06 IF2H_bit.no0 -#define TMIF07 IF2H_bit.no1 -#define USBIF IF2H_bit.no2 -#define RSUIF IF2H_bit.no3 -#define SREIF3 IF2H_bit.no4 -#define TKB2IF0 IF2H_bit.no5 -#define TKB2IF1 IF2H_bit.no6 -#define FLIF IF2H_bit.no7 -#define TKB2IF2 IF3_bit.no0 -#define FIFOIF0 IF3_bit.no1 -#define FIFOIF1 IF3_bit.no2 -#define TMMK04 MK2_bit.no1 -#define TMMK05 MK2_bit.no2 -#define PMK6 MK2_bit.no3 -#define PMK7 MK2_bit.no4 -#define LCDMK0 MK2_bit.no5 -#define CMPMK0 MK2_bit.no6 -#define CMPMK1 MK2_bit.no7 -#define TMMK06 MK2H_bit.no0 -#define TMMK07 MK2H_bit.no1 -#define USBMK MK2H_bit.no2 -#define RSUMK MK2H_bit.no3 -#define SREMK3 MK2H_bit.no4 -#define TKB2MK0 MK2H_bit.no5 -#define TKB2MK1 MK2H_bit.no6 -#define FLMK MK2H_bit.no7 -#define TKB2MK2 MK3_bit.no0 -#define FIFOMK0 MK3_bit.no1 -#define FIFOMK1 MK3_bit.no2 -#define TMPR004 PR02_bit.no1 -#define TMPR005 PR02_bit.no2 -#define PPR06 PR02_bit.no3 -#define PPR07 PR02_bit.no4 -#define LCDPR00 PR02_bit.no5 -#define CMPPR00 PR02_bit.no6 -#define CMPPR01 PR02_bit.no7 -#define TMPR006 PR02H_bit.no0 -#define TMPR007 PR02H_bit.no1 -#define USBPR0 PR02H_bit.no2 -#define RSUPR0 PR02H_bit.no3 -#define SREPR03 PR02H_bit.no4 -#define TKB2PR00 PR02H_bit.no5 -#define TKB2PR01 PR02H_bit.no6 -#define FLPR0 PR02H_bit.no7 -#define TKB2PR02 PR03_bit.no0 -#define FIFOPR00 PR03_bit.no1 -#define FIFOPR01 PR03_bit.no2 -#define TMPR104 PR12_bit.no1 -#define TMPR105 PR12_bit.no2 -#define PPR16 PR12_bit.no3 -#define PPR17 PR12_bit.no4 -#define LCDPR10 PR12_bit.no5 -#define CMPPR10 PR12_bit.no6 -#define CMPPR11 PR12_bit.no7 -#define TMPR106 PR12H_bit.no0 -#define TMPR107 PR12H_bit.no1 -#define USBPR1 PR12H_bit.no2 -#define RSUPR1 PR12H_bit.no3 -#define SREPR13 PR12H_bit.no4 -#define TKB2PR10 PR12H_bit.no5 -#define TKB2PR11 PR12H_bit.no6 -#define FLPR1 PR12H_bit.no7 -#define TKB2PR12 PR13_bit.no0 -#define FIFOPR10 PR13_bit.no1 -#define FIFOPR11 PR13_bit.no2 -#define WDTIIF IF0_bit.no0 -#define LVIIF IF0_bit.no1 -#define PIF0 IF0_bit.no2 -#define PIF1 IF0_bit.no3 -#define PIF2 IF0_bit.no4 -#define PIF3 IF0_bit.no5 -#define PIF4 IF0_bit.no6 -#define PIF5 IF0_bit.no7 -#define CSIIF20 IF0H_bit.no0 -#define IICIF20 IF0H_bit.no0 -#define STIF2 IF0H_bit.no0 -#define SRIF2 IF0H_bit.no1 -#define SREIF2 IF0H_bit.no2 -#define CSIIF00 IF0H_bit.no5 -#define IICIF00 IF0H_bit.no5 -#define STIF0 IF0H_bit.no5 -#define TMIF00 IF0H_bit.no6 -#define SRIF0 IF0H_bit.no7 -#define SREIF0 IF1_bit.no0 -#define TMIF01H IF1_bit.no0 -#define CSIIF10 IF1_bit.no1 -#define IICIF10 IF1_bit.no1 -#define STIF1 IF1_bit.no1 -#define SRIF1 IF1_bit.no2 -#define SREIF1 IF1_bit.no3 -#define TMIF03H IF1_bit.no3 -#define IICAIF0 IF1_bit.no4 -#define RTITIF IF1_bit.no5 -#define TMIF01 IF1_bit.no7 -#define TMIF02 IF1H_bit.no0 -#define TMIF03 IF1H_bit.no1 -#define ADIF IF1H_bit.no2 -#define RTCIF IF1H_bit.no3 -#define TMKAIF IF1H_bit.no4 -#define KRIF IF1H_bit.no5 -#define CSIIF30 IF1H_bit.no6 -#define IICIF30 IF1H_bit.no6 -#define STIF3 IF1H_bit.no6 -#define SRIF3 IF1H_bit.no7 -#define WDTIMK MK0_bit.no0 -#define LVIMK MK0_bit.no1 -#define PMK0 MK0_bit.no2 -#define PMK1 MK0_bit.no3 -#define PMK2 MK0_bit.no4 -#define PMK3 MK0_bit.no5 -#define PMK4 MK0_bit.no6 -#define PMK5 MK0_bit.no7 -#define CSIMK20 MK0H_bit.no0 -#define IICMK20 MK0H_bit.no0 -#define STMK2 MK0H_bit.no0 -#define SRMK2 MK0H_bit.no1 -#define SREMK2 MK0H_bit.no2 -#define CSIMK00 MK0H_bit.no5 -#define IICMK00 MK0H_bit.no5 -#define STMK0 MK0H_bit.no5 -#define TMMK00 MK0H_bit.no6 -#define SRMK0 MK0H_bit.no7 -#define SREMK0 MK1_bit.no0 -#define TMMK01H MK1_bit.no0 -#define CSIMK10 MK1_bit.no1 -#define IICMK10 MK1_bit.no1 -#define STMK1 MK1_bit.no1 -#define SRMK1 MK1_bit.no2 -#define SREMK1 MK1_bit.no3 -#define TMMK03H MK1_bit.no3 -#define IICAMK0 MK1_bit.no4 -#define RTITMK MK1_bit.no5 -#define TMMK01 MK1_bit.no7 -#define TMMK02 MK1H_bit.no0 -#define TMMK03 MK1H_bit.no1 -#define ADMK MK1H_bit.no2 -#define RTCMK MK1H_bit.no3 -#define TMKAMK MK1H_bit.no4 -#define KRMK MK1H_bit.no5 -#define CSIMK30 MK1H_bit.no6 -#define IICMK30 MK1H_bit.no6 -#define STMK3 MK1H_bit.no6 -#define SRMK3 MK1H_bit.no7 -#define WDTIPR0 PR00_bit.no0 -#define LVIPR0 PR00_bit.no1 -#define PPR00 PR00_bit.no2 -#define PPR01 PR00_bit.no3 -#define PPR02 PR00_bit.no4 -#define PPR03 PR00_bit.no5 -#define PPR04 PR00_bit.no6 -#define PPR05 PR00_bit.no7 -#define CSIPR020 PR00H_bit.no0 -#define IICPR020 PR00H_bit.no0 -#define STPR02 PR00H_bit.no0 -#define SRPR02 PR00H_bit.no1 -#define SREPR02 PR00H_bit.no2 -#define CSIPR000 PR00H_bit.no5 -#define IICPR000 PR00H_bit.no5 -#define STPR00 PR00H_bit.no5 -#define TMPR000 PR00H_bit.no6 -#define SRPR00 PR00H_bit.no7 -#define SREPR00 PR01_bit.no0 -#define TMPR001H PR01_bit.no0 -#define CSIPR010 PR01_bit.no1 -#define IICPR010 PR01_bit.no1 -#define STPR01 PR01_bit.no1 -#define SRPR01 PR01_bit.no2 -#define SREPR01 PR01_bit.no3 -#define TMPR003H PR01_bit.no3 -#define IICAPR00 PR01_bit.no4 -#define RTITPR0 PR01_bit.no5 -#define TMPR001 PR01_bit.no7 -#define TMPR002 PR01H_bit.no0 -#define TMPR003 PR01H_bit.no1 -#define ADPR0 PR01H_bit.no2 -#define RTCPR0 PR01H_bit.no3 -#define TMKAPR0 PR01H_bit.no4 -#define KRPR0 PR01H_bit.no5 -#define CSIPR030 PR01H_bit.no6 -#define IICPR030 PR01H_bit.no6 -#define STPR03 PR01H_bit.no6 -#define SRPR03 PR01H_bit.no7 -#define WDTIPR1 PR10_bit.no0 -#define LVIPR1 PR10_bit.no1 -#define PPR10 PR10_bit.no2 -#define PPR11 PR10_bit.no3 -#define PPR12 PR10_bit.no4 -#define PPR13 PR10_bit.no5 -#define PPR14 PR10_bit.no6 -#define PPR15 PR10_bit.no7 -#define CSIPR120 PR10H_bit.no0 -#define IICPR120 PR10H_bit.no0 -#define STPR12 PR10H_bit.no0 -#define SRPR12 PR10H_bit.no1 -#define SREPR12 PR10H_bit.no2 -#define CSIPR100 PR10H_bit.no5 -#define IICPR100 PR10H_bit.no5 -#define STPR10 PR10H_bit.no5 -#define TMPR100 PR10H_bit.no6 -#define SRPR10 PR10H_bit.no7 -#define SREPR10 PR11_bit.no0 -#define TMPR101H PR11_bit.no0 -#define CSIPR110 PR11_bit.no1 -#define IICPR110 PR11_bit.no1 -#define STPR11 PR11_bit.no1 -#define SRPR11 PR11_bit.no2 -#define SREPR11 PR11_bit.no3 -#define TMPR103H PR11_bit.no3 -#define IICAPR10 PR11_bit.no4 -#define RTITPR1 PR11_bit.no5 -#define TMPR101 PR11_bit.no7 -#define TMPR102 PR11H_bit.no0 -#define TMPR103 PR11H_bit.no1 -#define ADPR1 PR11H_bit.no2 -#define RTCPR1 PR11H_bit.no3 -#define TMKAPR1 PR11H_bit.no4 -#define KRPR1 PR11H_bit.no5 -#define CSIPR130 PR11H_bit.no6 -#define IICPR130 PR11H_bit.no6 -#define STPR13 PR11H_bit.no6 -#define SRPR13 PR11H_bit.no7 -#define MAA PMC_bit.no0 - -/* - Interrupt vector addresses - */ -#define RST_vect (0x0) -#define INTDBG_vect (0x2) -#define INTWDTI_vect (0x4) -#define INTLVI_vect (0x6) -#define INTP0_vect (0x8) -#define INTP1_vect (0xA) -#define INTP2_vect (0xC) -#define INTP3_vect (0xE) -#define INTP4_vect (0x10) -#define INTP5_vect (0x12) -#define INTCSI20_vect (0x14) -#define INTIIC20_vect (0x14) -#define INTST2_vect (0x14) -#define INTSR2_vect (0x16) -#define INTSRE2_vect (0x18) -#define INTCSI00_vect (0x1E) -#define INTIIC00_vect (0x1E) -#define INTST0_vect (0x1E) -#define INTTM00_vect (0x20) -#define INTSR0_vect (0x22) -#define INTSRE0_vect (0x24) -#define INTTM01H_vect (0x24) -#define INTCSI10_vect (0x26) -#define INTIIC10_vect (0x26) -#define INTST1_vect (0x26) -#define INTSR1_vect (0x28) -#define INTSRE1_vect (0x2A) -#define INTTM03H_vect (0x2A) -#define INTIICA0_vect (0x2C) -#define INTRTIT_vect (0x2E) -#define INTTM01_vect (0x32) -#define INTTM02_vect (0x34) -#define INTTM03_vect (0x36) -#define INTAD_vect (0x38) -#define INTRTC_vect (0x3A) -#define INTIT_vect (0x3C) -#define INTKR_vect (0x3E) -#define INTCSI30_vect (0x40) -#define INTIIC30_vect (0x40) -#define INTST3_vect (0x40) -#define INTSR3_vect (0x42) -#define INTTM04_vect (0x46) -#define INTTM05_vect (0x48) -#define INTP6_vect (0x4A) -#define INTP7_vect (0x4C) -#define INTLCD0_vect (0x4E) -#define INTCMP0_vect (0x50) -#define INTCMP1_vect (0x52) -#define INTTM06_vect (0x54) -#define INTTM07_vect (0x56) -#define INTUSB_vect (0x58) -#define INTRSUM_vect (0x5A) -#define INTSRE3_vect (0x5C) -#define INTTKB20_vect (0x5E) -#define INTTKB21_vect (0x60) -#define INTFL_vect (0x62) -#define INTTKB22_vect (0x64) -#define DTC0FIFO_vect (0x66) -#define DTC1FIFO_vect (0x68) -#define BRK_I_vect (0x7E) -#endif diff --git a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L1C_ext.h b/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L1C_ext.h deleted file mode 100644 index 9460259b2..000000000 --- a/FreeRTOS/Demo/RL78_E2Studio_GCC/src/iodefine_RL78L1C_ext.h +++ /dev/null @@ -1,1178 +0,0 @@ -/************************************************************************/ -/* Header file generated from device file: */ -/* DR5F110PJ.DVF */ -/* Copyright(C) 2013 Renesas */ -/* File Version E1.00h */ -/* Tool Version 2.5.211 */ -/* Date Generated 07/05/2013 */ -/************************************************************************/ - -#ifndef __INTRINSIC_FUNCTIONS -#define __INTRINSIC_FUNCTIONS - -#define DI() asm("di") -#define EI() asm("ei") -#define HALT() asm("halt") -#define NOP() asm("nop") -#define STOP() asm("stop") - -#endif - -#ifndef __IOREG_BIT_STRUCTURES -#define __IOREG_BIT_STRUCTURES -typedef struct { - unsigned char no0 :1; - unsigned char no1 :1; - unsigned char no2 :1; - unsigned char no3 :1; - unsigned char no4 :1; - unsigned char no5 :1; - unsigned char no6 :1; - unsigned char no7 :1; -} __BITS8; - -typedef struct { - unsigned short no0 :1; - unsigned short no1 :1; - unsigned short no2 :1; - unsigned short no3 :1; - unsigned short no4 :1; - unsigned short no5 :1; - unsigned short no6 :1; - unsigned short no7 :1; - unsigned short no8 :1; - unsigned short no9 :1; - unsigned short no10 :1; - unsigned short no11 :1; - unsigned short no12 :1; - unsigned short no13 :1; - unsigned short no14 :1; - unsigned short no15 :1; -} __BITS16; - -#endif - -#ifndef IODEFINE_EXT_H -#define IODEFINE_EXT_H - -/* - IO Registers - */ -union un_adm2 { - unsigned char adm2; - __BITS8 BIT; -}; -union un_pu0 { - unsigned char pu0; - __BITS8 BIT; -}; -union un_pu1 { - unsigned char pu1; - __BITS8 BIT; -}; -union un_pu2 { - unsigned char pu2; - __BITS8 BIT; -}; -union un_pu3 { - unsigned char pu3; - __BITS8 BIT; -}; -union un_pu4 { - unsigned char pu4; - __BITS8 BIT; -}; -union un_pu5 { - unsigned char pu5; - __BITS8 BIT; -}; -union un_pu7 { - unsigned char pu7; - __BITS8 BIT; -}; -union un_pu12 { - unsigned char pu12; - __BITS8 BIT; -}; -union un_pu14 { - unsigned char pu14; - __BITS8 BIT; -}; -union un_pim0 { - unsigned char pim0; - __BITS8 BIT; -}; -union un_pim1 { - unsigned char pim1; - __BITS8 BIT; -}; -union un_pim2 { - unsigned char pim2; - __BITS8 BIT; -}; -union un_pim3 { - unsigned char pim3; - __BITS8 BIT; -}; -union un_pim4 { - unsigned char pim4; - __BITS8 BIT; -}; -union un_pom0 { - unsigned char pom0; - __BITS8 BIT; -}; -union un_pom1 { - unsigned char pom1; - __BITS8 BIT; -}; -union un_pom2 { - unsigned char pom2; - __BITS8 BIT; -}; -union un_pom3 { - unsigned char pom3; - __BITS8 BIT; -}; -union un_pom4 { - unsigned char pom4; - __BITS8 BIT; -}; -union un_pmc2 { - unsigned char pmc2; - __BITS8 BIT; -}; -union un_pmc4 { - unsigned char pmc4; - __BITS8 BIT; -}; -union un_pmc14 { - unsigned char pmc14; - __BITS8 BIT; -}; -union un_nfen0 { - unsigned char nfen0; - __BITS8 BIT; -}; -union un_nfen1 { - unsigned char nfen1; - __BITS8 BIT; -}; -union un_isc { - unsigned char isc; - __BITS8 BIT; -}; -union un_tos { - unsigned char tos; - __BITS8 BIT; -}; -union un_per1 { - unsigned char per1; - __BITS8 BIT; -}; -union un_pms { - unsigned char pms; - __BITS8 BIT; -}; -union un_dflctl { - unsigned char dflctl; - __BITS8 BIT; -}; -union un_per0 { - unsigned char per0; - __BITS8 BIT; -}; -union un_rpectl { - unsigned char rpectl; - __BITS8 BIT; -}; -union un_per2 { - unsigned char per2; - __BITS8 BIT; -}; -union un_se0l { - unsigned char se0l; - __BITS8 BIT; -}; -union un_ss0l { - unsigned char ss0l; - __BITS8 BIT; -}; -union un_st0l { - unsigned char st0l; - __BITS8 BIT; -}; -union un_soe0l { - unsigned char soe0l; - __BITS8 BIT; -}; -union un_se1l { - unsigned char se1l; - __BITS8 BIT; -}; -union un_ss1l { - unsigned char ss1l; - __BITS8 BIT; -}; -union un_st1l { - unsigned char st1l; - __BITS8 BIT; -}; -union un_soe1l { - unsigned char soe1l; - __BITS8 BIT; -}; -union un_te0l { - unsigned char te0l; - __BITS8 BIT; -}; -union un_ts0l { - unsigned char ts0l; - __BITS8 BIT; -}; -union un_tt0l { - unsigned char tt0l; - __BITS8 BIT; -}; -union un_toe0l { - unsigned char toe0l; - __BITS8 BIT; -}; -union un_iicctl00 { - unsigned char iicctl00; - __BITS8 BIT; -}; -union un_iicctl01 { - unsigned char iicctl01; - __BITS8 BIT; -}; -union un_tkbtrg1 { - unsigned char tkbtrg1; - __BITS8 BIT; -}; -union un_tkbflg1 { - unsigned char tkbflg1; - __BITS8 BIT; -}; -union un_tkbioc10 { - unsigned char tkbioc10; - __BITS8 BIT; -}; -union un_tkbclr1 { - unsigned char tkbclr1; - __BITS8 BIT; -}; -union un_tkbioc11 { - unsigned char tkbioc11; - __BITS8 BIT; -}; -union un_tkbctl11 { - unsigned char tkbctl11; - __BITS8 BIT; -}; -union un_tkbpahfs1 { - unsigned char tkbpahfs1; - __BITS8 BIT; -}; -union un_tkbpahft1 { - unsigned char tkbpahft1; - __BITS8 BIT; -}; -union un_tkbpaflg1 { - unsigned char tkbpaflg1; - __BITS8 BIT; -}; -union un_tkbpactl12 { - unsigned char tkbpactl12; - __BITS8 BIT; -}; -union un_tkbtrg2 { - unsigned char tkbtrg2; - __BITS8 BIT; -}; -union un_tkbflg2 { - unsigned char tkbflg2; - __BITS8 BIT; -}; -union un_tkbioc20 { - unsigned char tkbioc20; - __BITS8 BIT; -}; -union un_tkbclr2 { - unsigned char tkbclr2; - __BITS8 BIT; -}; -union un_tkbioc21 { - unsigned char tkbioc21; - __BITS8 BIT; -}; -union un_tkbctl21 { - unsigned char tkbctl21; - __BITS8 BIT; -}; -union un_tkbpahfs2 { - unsigned char tkbpahfs2; - __BITS8 BIT; -}; -union un_tkbpahft2 { - unsigned char tkbpahft2; - __BITS8 BIT; -}; -union un_tkbpaflg2 { - unsigned char tkbpaflg2; - __BITS8 BIT; -}; -union un_tkbpactl22 { - unsigned char tkbpactl22; - __BITS8 BIT; -}; -union un_dscctl { - unsigned char dscctl; - __BITS8 BIT; -}; -union un_mckc { - unsigned char mckc; - __BITS8 BIT; -}; -union un_dtcen0 { - unsigned char dtcen0; - __BITS8 BIT; -}; -union un_dtcen1 { - unsigned char dtcen1; - __BITS8 BIT; -}; -union un_dtcen2 { - unsigned char dtcen2; - __BITS8 BIT; -}; -union un_dtcen3 { - unsigned char dtcen3; - __BITS8 BIT; -}; -union un_dtcen4 { - unsigned char dtcen4; - __BITS8 BIT; -}; -union un_crc0ctl { - unsigned char crc0ctl; - __BITS8 BIT; -}; -union un_pfseg0 { - unsigned char pfseg0; - __BITS8 BIT; -}; -union un_pfseg1 { - unsigned char pfseg1; - __BITS8 BIT; -}; -union un_pfseg2 { - unsigned char pfseg2; - __BITS8 BIT; -}; -union un_pfseg3 { - unsigned char pfseg3; - __BITS8 BIT; -}; -union un_pfseg4 { - unsigned char pfseg4; - __BITS8 BIT; -}; -union un_pfseg5 { - unsigned char pfseg5; - __BITS8 BIT; -}; -union un_pfseg6 { - unsigned char pfseg6; - __BITS8 BIT; -}; -union un_isclcd { - unsigned char isclcd; - __BITS8 BIT; -}; -union un_compmdr { - unsigned char compmdr; - __BITS8 BIT; -}; -union un_compfir { - unsigned char compfir; - __BITS8 BIT; -}; -union un_compocr { - unsigned char compocr; - __BITS8 BIT; -}; -union un_tkbtrg0 { - unsigned char tkbtrg0; - __BITS8 BIT; -}; -union un_tkbflg0 { - unsigned char tkbflg0; - __BITS8 BIT; -}; -union un_tkbioc00 { - unsigned char tkbioc00; - __BITS8 BIT; -}; -union un_tkbclr0 { - unsigned char tkbclr0; - __BITS8 BIT; -}; -union un_tkbioc01 { - unsigned char tkbioc01; - __BITS8 BIT; -}; -union un_tkbctl01 { - unsigned char tkbctl01; - __BITS8 BIT; -}; -union un_tkbpahfs0 { - unsigned char tkbpahfs0; - __BITS8 BIT; -}; -union un_tkbpahft0 { - unsigned char tkbpahft0; - __BITS8 BIT; -}; -union un_tkbpaflg0 { - unsigned char tkbpaflg0; - __BITS8 BIT; -}; -union un_tkbpactl02 { - unsigned char tkbpactl02; - __BITS8 BIT; -}; - -#define ADM2 (*(volatile union un_adm2 *)0xF0010).adm2 -#define ADM2_bit (*(volatile union un_adm2 *)0xF0010).BIT -#define ADUL (*(volatile unsigned char *)0xF0011) -#define ADLL (*(volatile unsigned char *)0xF0012) -#define ADTES (*(volatile unsigned char *)0xF0013) -#define PU0 (*(volatile union un_pu0 *)0xF0030).pu0 -#define PU0_bit (*(volatile union un_pu0 *)0xF0030).BIT -#define PU1 (*(volatile union un_pu1 *)0xF0031).pu1 -#define PU1_bit (*(volatile union un_pu1 *)0xF0031).BIT -#define PU2 (*(volatile union un_pu2 *)0xF0032).pu2 -#define PU2_bit (*(volatile union un_pu2 *)0xF0032).BIT -#define PU3 (*(volatile union un_pu3 *)0xF0033).pu3 -#define PU3_bit (*(volatile union un_pu3 *)0xF0033).BIT -#define PU4 (*(volatile union un_pu4 *)0xF0034).pu4 -#define PU4_bit (*(volatile union un_pu4 *)0xF0034).BIT -#define PU5 (*(volatile union un_pu5 *)0xF0035).pu5 -#define PU5_bit (*(volatile union un_pu5 *)0xF0035).BIT -#define PU7 (*(volatile union un_pu7 *)0xF0037).pu7 -#define PU7_bit (*(volatile union un_pu7 *)0xF0037).BIT -#define PU12 (*(volatile union un_pu12 *)0xF003C).pu12 -#define PU12_bit (*(volatile union un_pu12 *)0xF003C).BIT -#define PU14 (*(volatile union un_pu14 *)0xF003E).pu14 -#define PU14_bit (*(volatile union un_pu14 *)0xF003E).BIT -#define PIM0 (*(volatile union un_pim0 *)0xF0040).pim0 -#define PIM0_bit (*(volatile union un_pim0 *)0xF0040).BIT -#define PIM1 (*(volatile union un_pim1 *)0xF0041).pim1 -#define PIM1_bit (*(volatile union un_pim1 *)0xF0041).BIT -#define PIM2 (*(volatile union un_pim2 *)0xF0042).pim2 -#define PIM2_bit (*(volatile union un_pim2 *)0xF0042).BIT -#define PIM3 (*(volatile union un_pim3 *)0xF0043).pim3 -#define PIM3_bit (*(volatile union un_pim3 *)0xF0043).BIT -#define PIM4 (*(volatile union un_pim4 *)0xF0044).pim4 -#define PIM4_bit (*(volatile union un_pim4 *)0xF0044).BIT -#define POM0 (*(volatile union un_pom0 *)0xF0050).pom0 -#define POM0_bit (*(volatile union un_pom0 *)0xF0050).BIT -#define POM1 (*(volatile union un_pom1 *)0xF0051).pom1 -#define POM1_bit (*(volatile union un_pom1 *)0xF0051).BIT -#define POM2 (*(volatile union un_pom2 *)0xF0052).pom2 -#define POM2_bit (*(volatile union un_pom2 *)0xF0052).BIT -#define POM3 (*(volatile union un_pom3 *)0xF0053).pom3 -#define POM3_bit (*(volatile union un_pom3 *)0xF0053).BIT -#define POM4 (*(volatile union un_pom4 *)0xF0054).pom4 -#define POM4_bit (*(volatile union un_pom4 *)0xF0054).BIT -#define PMC2 (*(volatile union un_pmc2 *)0xF0062).pmc2 -#define PMC2_bit (*(volatile union un_pmc2 *)0xF0062).BIT -#define PMC4 (*(volatile union un_pmc4 *)0xF0064).pmc4 -#define PMC4_bit (*(volatile union un_pmc4 *)0xF0064).BIT -#define PMC14 (*(volatile union un_pmc14 *)0xF006E).pmc14 -#define PMC14_bit (*(volatile union un_pmc14 *)0xF006E).BIT -#define NFEN0 (*(volatile union un_nfen0 *)0xF0070).nfen0 -#define NFEN0_bit (*(volatile union un_nfen0 *)0xF0070).BIT -#define NFEN1 (*(volatile union un_nfen1 *)0xF0071).nfen1 -#define NFEN1_bit (*(volatile union un_nfen1 *)0xF0071).BIT -#define ISC (*(volatile union un_isc *)0xF0073).isc -#define ISC_bit (*(volatile union un_isc *)0xF0073).BIT -#define TIS0 (*(volatile unsigned char *)0xF0074) -#define ADPC (*(volatile unsigned char *)0xF0076) -#define PIOR (*(volatile unsigned char *)0xF0077) -#define IAWCTL (*(volatile unsigned char *)0xF0078) -#define TOS (*(volatile union un_tos *)0xF0079).tos -#define TOS_bit (*(volatile union un_tos *)0xF0079).BIT -#define PER1 (*(volatile union un_per1 *)0xF007A).per1 -#define PER1_bit (*(volatile union un_per1 *)0xF007A).BIT -#define PMS (*(volatile union un_pms *)0xF007B).pms -#define PMS_bit (*(volatile union un_pms *)0xF007B).BIT -#define GAIDIS (*(volatile unsigned char *)0xF007C) -#define DFLCTL (*(volatile union un_dflctl *)0xF0090).dflctl -#define DFLCTL_bit (*(volatile union un_dflctl *)0xF0090).BIT -#define HOCODIV (*(volatile unsigned char *)0xF00A8) -#define PER0 (*(volatile union un_per0 *)0xF00F0).per0 -#define PER0_bit (*(volatile union un_per0 *)0xF00F0).BIT -#define OSMC (*(volatile unsigned char *)0xF00F3) -#define RPECTL (*(volatile union un_rpectl *)0xF00F5).rpectl -#define RPECTL_bit (*(volatile union un_rpectl *)0xF00F5).BIT -#define PORSR (*(volatile unsigned char *)0xF00F9) -#define PER2 (*(volatile union un_per2 *)0xF00FD).per2 -#define PER2_bit (*(volatile union un_per2 *)0xF00FD).BIT -#define BCDADJ (*(volatile unsigned char *)0xF00FE) -#define SSR00 (*(volatile unsigned short *)0xF0100) -#define SSR00L (*(volatile unsigned char *)0xF0100) -#define SSR01 (*(volatile unsigned short *)0xF0102) -#define SSR01L (*(volatile unsigned char *)0xF0102) -#define SSR02 (*(volatile unsigned short *)0xF0104) -#define SSR02L (*(volatile unsigned char *)0xF0104) -#define SSR03 (*(volatile unsigned short *)0xF0106) -#define SSR03L (*(volatile unsigned char *)0xF0106) -#define SIR00 (*(volatile unsigned short *)0xF0108) -#define SIR00L (*(volatile unsigned char *)0xF0108) -#define SIR01 (*(volatile unsigned short *)0xF010A) -#define SIR01L (*(volatile unsigned char *)0xF010A) -#define SIR02 (*(volatile unsigned short *)0xF010C) -#define SIR02L (*(volatile unsigned char *)0xF010C) -#define SIR03 (*(volatile unsigned short *)0xF010E) -#define SIR03L (*(volatile unsigned char *)0xF010E) -#define SMR00 (*(volatile unsigned short *)0xF0110) -#define SMR01 (*(volatile unsigned short *)0xF0112) -#define SMR02 (*(volatile unsigned short *)0xF0114) -#define SMR03 (*(volatile unsigned short *)0xF0116) -#define SCR00 (*(volatile unsigned short *)0xF0118) -#define SCR01 (*(volatile unsigned short *)0xF011A) -#define SCR02 (*(volatile unsigned short *)0xF011C) -#define SCR03 (*(volatile unsigned short *)0xF011E) -#define SE0 (*(volatile unsigned short *)0xF0120) -#define SE0L (*(volatile union un_se0l *)0xF0120).se0l -#define SE0L_bit (*(volatile union un_se0l *)0xF0120).BIT -#define SS0 (*(volatile unsigned short *)0xF0122) -#define SS0L (*(volatile union un_ss0l *)0xF0122).ss0l -#define SS0L_bit (*(volatile union un_ss0l *)0xF0122).BIT -#define ST0 (*(volatile unsigned short *)0xF0124) -#define ST0L (*(volatile union un_st0l *)0xF0124).st0l -#define ST0L_bit (*(volatile union un_st0l *)0xF0124).BIT -#define SPS0 (*(volatile unsigned short *)0xF0126) -#define SPS0L (*(volatile unsigned char *)0xF0126) -#define SO0 (*(volatile unsigned short *)0xF0128) -#define SOE0 (*(volatile unsigned short *)0xF012A) -#define SOE0L (*(volatile union un_soe0l *)0xF012A).soe0l -#define SOE0L_bit (*(volatile union un_soe0l *)0xF012A).BIT -#define SOL0 (*(volatile unsigned short *)0xF0134) -#define SOL0L (*(volatile unsigned char *)0xF0134) -#define SSC0 (*(volatile unsigned short *)0xF0138) -#define SSC0L (*(volatile unsigned char *)0xF0138) -#define SSR10 (*(volatile unsigned short *)0xF0140) -#define SSR10L (*(volatile unsigned char *)0xF0140) -#define SSR11 (*(volatile unsigned short *)0xF0142) -#define SSR11L (*(volatile unsigned char *)0xF0142) -#define SSR12 (*(volatile unsigned short *)0xF0144) -#define SSR12L (*(volatile unsigned char *)0xF0144) -#define SSR13 (*(volatile unsigned short *)0xF0146) -#define SSR13L (*(volatile unsigned char *)0xF0146) -#define SIR10 (*(volatile unsigned short *)0xF0148) -#define SIR10L (*(volatile unsigned char *)0xF0148) -#define SIR11 (*(volatile unsigned short *)0xF014A) -#define SIR11L (*(volatile unsigned char *)0xF014A) -#define SIR12 (*(volatile unsigned short *)0xF014C) -#define SIR12L (*(volatile unsigned char *)0xF014C) -#define SIR13 (*(volatile unsigned short *)0xF014E) -#define SIR13L (*(volatile unsigned char *)0xF014E) -#define SMR10 (*(volatile unsigned short *)0xF0150) -#define SMR11 (*(volatile unsigned short *)0xF0152) -#define SMR12 (*(volatile unsigned short *)0xF0154) -#define SMR13 (*(volatile unsigned short *)0xF0156) -#define SCR10 (*(volatile unsigned short *)0xF0158) -#define SCR11 (*(volatile unsigned short *)0xF015A) -#define SCR12 (*(volatile unsigned short *)0xF015C) -#define SCR13 (*(volatile unsigned short *)0xF015E) -#define SE1 (*(volatile unsigned short *)0xF0160) -#define SE1L (*(volatile union un_se1l *)0xF0160).se1l -#define SE1L_bit (*(volatile union un_se1l *)0xF0160).BIT -#define SS1 (*(volatile unsigned short *)0xF0162) -#define SS1L (*(volatile union un_ss1l *)0xF0162).ss1l -#define SS1L_bit (*(volatile union un_ss1l *)0xF0162).BIT -#define ST1 (*(volatile unsigned short *)0xF0164) -#define ST1L (*(volatile union un_st1l *)0xF0164).st1l -#define ST1L_bit (*(volatile union un_st1l *)0xF0164).BIT -#define SPS1 (*(volatile unsigned short *)0xF0166) -#define SPS1L (*(volatile unsigned char *)0xF0166) -#define SO1 (*(volatile unsigned short *)0xF0168) -#define SOE1 (*(volatile unsigned short *)0xF016A) -#define SOE1L (*(volatile union un_soe1l *)0xF016A).soe1l -#define SOE1L_bit (*(volatile union un_soe1l *)0xF016A).BIT -#define SOL1 (*(volatile unsigned short *)0xF0174) -#define SOL1L (*(volatile unsigned char *)0xF0174) -#define SSC1 (*(volatile unsigned short *)0xF0178) -#define SSC1L (*(volatile unsigned char *)0xF0178) -#define TCR00 (*(volatile unsigned short *)0xF0180) -#define TCR01 (*(volatile unsigned short *)0xF0182) -#define TCR02 (*(volatile unsigned short *)0xF0184) -#define TCR03 (*(volatile unsigned short *)0xF0186) -#define TCR04 (*(volatile unsigned short *)0xF0188) -#define TCR05 (*(volatile unsigned short *)0xF018A) -#define TCR06 (*(volatile unsigned short *)0xF018C) -#define TCR07 (*(volatile unsigned short *)0xF018E) -#define TMR00 (*(volatile unsigned short *)0xF0190) -#define TMR01 (*(volatile unsigned short *)0xF0192) -#define TMR02 (*(volatile unsigned short *)0xF0194) -#define TMR03 (*(volatile unsigned short *)0xF0196) -#define TMR04 (*(volatile unsigned short *)0xF0198) -#define TMR05 (*(volatile unsigned short *)0xF019A) -#define TMR06 (*(volatile unsigned short *)0xF019C) -#define TMR07 (*(volatile unsigned short *)0xF019E) -#define TSR00 (*(volatile unsigned short *)0xF01A0) -#define TSR00L (*(volatile unsigned char *)0xF01A0) -#define TSR01 (*(volatile unsigned short *)0xF01A2) -#define TSR01L (*(volatile unsigned char *)0xF01A2) -#define TSR02 (*(volatile unsigned short *)0xF01A4) -#define TSR02L (*(volatile unsigned char *)0xF01A4) -#define TSR03 (*(volatile unsigned short *)0xF01A6) -#define TSR03L (*(volatile unsigned char *)0xF01A6) -#define TSR04 (*(volatile unsigned short *)0xF01A8) -#define TSR04L (*(volatile unsigned char *)0xF01A8) -#define TSR05 (*(volatile unsigned short *)0xF01AA) -#define TSR05L (*(volatile unsigned char *)0xF01AA) -#define TSR06 (*(volatile unsigned short *)0xF01AC) -#define TSR06L (*(volatile unsigned char *)0xF01AC) -#define TSR07 (*(volatile unsigned short *)0xF01AE) -#define TSR07L (*(volatile unsigned char *)0xF01AE) -#define TE0 (*(volatile unsigned short *)0xF01B0) -#define TE0L (*(volatile union un_te0l *)0xF01B0).te0l -#define TE0L_bit (*(volatile union un_te0l *)0xF01B0).BIT -#define TS0 (*(volatile unsigned short *)0xF01B2) -#define TS0L (*(volatile union un_ts0l *)0xF01B2).ts0l -#define TS0L_bit (*(volatile union un_ts0l *)0xF01B2).BIT -#define TT0 (*(volatile unsigned short *)0xF01B4) -#define TT0L (*(volatile union un_tt0l *)0xF01B4).tt0l -#define TT0L_bit (*(volatile union un_tt0l *)0xF01B4).BIT -#define TPS0 (*(volatile unsigned short *)0xF01B6) -#define TO0 (*(volatile unsigned short *)0xF01B8) -#define TO0L (*(volatile unsigned char *)0xF01B8) -#define TOE0 (*(volatile unsigned short *)0xF01BA) -#define TOE0L (*(volatile union un_toe0l *)0xF01BA).toe0l -#define TOE0L_bit (*(volatile union un_toe0l *)0xF01BA).BIT -#define TOL0 (*(volatile unsigned short *)0xF01BC) -#define TOL0L (*(volatile unsigned char *)0xF01BC) -#define TOM0 (*(volatile unsigned short *)0xF01BE) -#define TOM0L (*(volatile unsigned char *)0xF01BE) -#define ELSELR00 (*(volatile unsigned char *)0xF01C0) -#define ELSELR01 (*(volatile unsigned char *)0xF01C1) -#define ELSELR02 (*(volatile unsigned char *)0xF01C2) -#define ELSELR03 (*(volatile unsigned char *)0xF01C3) -#define ELSELR04 (*(volatile unsigned char *)0xF01C4) -#define ELSELR05 (*(volatile unsigned char *)0xF01C5) -#define ELSELR06 (*(volatile unsigned char *)0xF01C6) -#define ELSELR07 (*(volatile unsigned char *)0xF01C7) -#define ELSELR08 (*(volatile unsigned char *)0xF01C8) -#define ELSELR09 (*(volatile unsigned char *)0xF01C9) -#define ELSELR10 (*(volatile unsigned char *)0xF01CA) -#define ELSELR11 (*(volatile unsigned char *)0xF01CB) -#define ELSELR12 (*(volatile unsigned char *)0xF01CC) -#define ELSELR13 (*(volatile unsigned char *)0xF01CD) -#define ELSELR14 (*(volatile unsigned char *)0xF01CE) -#define ELSELR15 (*(volatile unsigned char *)0xF01CF) -#define ELSELR16 (*(volatile unsigned char *)0xF01D0) -#define ELSELR17 (*(volatile unsigned char *)0xF01D1) -#define ELSELR18 (*(volatile unsigned char *)0xF01D2) -#define ELSELR19 (*(volatile unsigned char *)0xF01D3) -#define ELSELR20 (*(volatile unsigned char *)0xF01D4) -#define ELSELR21 (*(volatile unsigned char *)0xF01D5) -#define ELSELR22 (*(volatile unsigned char *)0xF01D6) -#define ELSELR23 (*(volatile unsigned char *)0xF01D7) -#define ELSELR24 (*(volatile unsigned char *)0xF01D8) -#define ELSELR25 (*(volatile unsigned char *)0xF01D9) -#define ELSELR26 (*(volatile unsigned char *)0xF01DA) -#define ELSELR27 (*(volatile unsigned char *)0xF01DB) -#define ELSELR28 (*(volatile unsigned char *)0xF01DC) -#define ELSELR29 (*(volatile unsigned char *)0xF01DD) -#define ELSELR30 (*(volatile unsigned char *)0xF01DE) -#define IICCTL00 (*(volatile union un_iicctl00 *)0xF0230).iicctl00 -#define IICCTL00_bit (*(volatile union un_iicctl00 *)0xF0230).BIT -#define IICCTL01 (*(volatile union un_iicctl01 *)0xF0231).iicctl01 -#define IICCTL01_bit (*(volatile union un_iicctl01 *)0xF0231).BIT -#define IICWL0 (*(volatile unsigned char *)0xF0232) -#define IICWH0 (*(volatile unsigned char *)0xF0233) -#define SVA0 (*(volatile unsigned char *)0xF0234) -#define TKBCR10 (*(volatile unsigned short *)0xF0240) -#define TKBCR11 (*(volatile unsigned short *)0xF0242) -#define TKBCR12 (*(volatile unsigned short *)0xF0244) -#define TKBCR13 (*(volatile unsigned short *)0xF0246) -#define TKBTGCR1 (*(volatile unsigned short *)0xF0248) -#define TKBSIR10 (*(volatile unsigned short *)0xF024A) -#define TKBSIR11 (*(volatile unsigned short *)0xF024C) -#define TKBDNR10 (*(volatile unsigned char *)0xF024E) -#define TKBSSR10 (*(volatile unsigned char *)0xF024F) -#define TKBDNR11 (*(volatile unsigned char *)0xF0250) -#define TKBSSR11 (*(volatile unsigned char *)0xF0251) -#define TKBTRG1 (*(volatile union un_tkbtrg1 *)0xF0252).tkbtrg1 -#define TKBTRG1_bit (*(volatile union un_tkbtrg1 *)0xF0252).BIT -#define TKBFLG1 (*(volatile union un_tkbflg1 *)0xF0253).tkbflg1 -#define TKBFLG1_bit (*(volatile union un_tkbflg1 *)0xF0253).BIT -#define TKBCRLD10 (*(volatile unsigned short *)0xF0254) -#define TKBCRLD11 (*(volatile unsigned short *)0xF0256) -#define TKBCNT1 (*(volatile unsigned short *)0xF0260) -#define TKBCTL10 (*(volatile unsigned short *)0xF0262) -#define TKBMFR1 (*(volatile unsigned short *)0xF0264) -#define TKBIOC10 (*(volatile union un_tkbioc10 *)0xF0266).tkbioc10 -#define TKBIOC10_bit (*(volatile union un_tkbioc10 *)0xF0266).BIT -#define TKBCLR1 (*(volatile union un_tkbclr1 *)0xF0267).tkbclr1 -#define TKBCLR1_bit (*(volatile union un_tkbclr1 *)0xF0267).BIT -#define TKBIOC11 (*(volatile union un_tkbioc11 *)0xF0268).tkbioc11 -#define TKBIOC11_bit (*(volatile union un_tkbioc11 *)0xF0268).BIT -#define TKBCTL11 (*(volatile union un_tkbctl11 *)0xF0269).tkbctl11 -#define TKBCTL11_bit (*(volatile union un_tkbctl11 *)0xF0269).BIT -#define TKBPSCS1 (*(volatile unsigned char *)0xF026A) -#define TKBPACTL10 (*(volatile unsigned short *)0xF0270) -#define TKBPACTL11 (*(volatile unsigned short *)0xF0272) -#define TKBPAHFS1 (*(volatile union un_tkbpahfs1 *)0xF0274).tkbpahfs1 -#define TKBPAHFS1_bit (*(volatile union un_tkbpahfs1 *)0xF0274).BIT -#define TKBPAHFT1 (*(volatile union un_tkbpahft1 *)0xF0275).tkbpahft1 -#define TKBPAHFT1_bit (*(volatile union un_tkbpahft1 *)0xF0275).BIT -#define TKBPAFLG1 (*(volatile union un_tkbpaflg1 *)0xF0276).tkbpaflg1 -#define TKBPAFLG1_bit (*(volatile union un_tkbpaflg1 *)0xF0276).BIT -#define TKBPACTL12 (*(volatile union un_tkbpactl12 *)0xF0277).tkbpactl12 -#define TKBPACTL12_bit (*(volatile union un_tkbpactl12 *)0xF0277).BIT -#define TKBCR20 (*(volatile unsigned short *)0xF0280) -#define TKBCR21 (*(volatile unsigned short *)0xF0282) -#define TKBCR22 (*(volatile unsigned short *)0xF0284) -#define TKBCR23 (*(volatile unsigned short *)0xF0286) -#define TKBTGCR2 (*(volatile unsigned short *)0xF0288) -#define TKBSIR20 (*(volatile unsigned short *)0xF028A) -#define TKBSIR21 (*(volatile unsigned short *)0xF028C) -#define TKBDNR20 (*(volatile unsigned char *)0xF028E) -#define TKBSSR20 (*(volatile unsigned char *)0xF028F) -#define TKBDNR21 (*(volatile unsigned char *)0xF0290) -#define TKBSSR21 (*(volatile unsigned char *)0xF0291) -#define TKBTRG2 (*(volatile union un_tkbtrg2 *)0xF0292).tkbtrg2 -#define TKBTRG2_bit (*(volatile union un_tkbtrg2 *)0xF0292).BIT -#define TKBFLG2 (*(volatile union un_tkbflg2 *)0xF0293).tkbflg2 -#define TKBFLG2_bit (*(volatile union un_tkbflg2 *)0xF0293).BIT -#define TKBCRLD20 (*(volatile unsigned short *)0xF0294) -#define TKBCRLD21 (*(volatile unsigned short *)0xF0296) -#define TKBCNT2 (*(volatile unsigned short *)0xF02A0) -#define TKBCTL20 (*(volatile unsigned short *)0xF02A2) -#define TKBMFR2 (*(volatile unsigned short *)0xF02A4) -#define TKBIOC20 (*(volatile union un_tkbioc20 *)0xF02A6).tkbioc20 -#define TKBIOC20_bit (*(volatile union un_tkbioc20 *)0xF02A6).BIT -#define TKBCLR2 (*(volatile union un_tkbclr2 *)0xF02A7).tkbclr2 -#define TKBCLR2_bit (*(volatile union un_tkbclr2 *)0xF02A7).BIT -#define TKBIOC21 (*(volatile union un_tkbioc21 *)0xF02A8).tkbioc21 -#define TKBIOC21_bit (*(volatile union un_tkbioc21 *)0xF02A8).BIT -#define TKBCTL21 (*(volatile union un_tkbctl21 *)0xF02A9).tkbctl21 -#define TKBCTL21_bit (*(volatile union un_tkbctl21 *)0xF02A9).BIT -#define TKBPSCS2 (*(volatile unsigned char *)0xF02AA) -#define TKBPACTL20 (*(volatile unsigned short *)0xF02B0) -#define TKBPACTL21 (*(volatile unsigned short *)0xF02B2) -#define TKBPAHFS2 (*(volatile union un_tkbpahfs2 *)0xF02B4).tkbpahfs2 -#define TKBPAHFS2_bit (*(volatile union un_tkbpahfs2 *)0xF02B4).BIT -#define TKBPAHFT2 (*(volatile union un_tkbpahft2 *)0xF02B5).tkbpahft2 -#define TKBPAHFT2_bit (*(volatile union un_tkbpahft2 *)0xF02B5).BIT -#define TKBPAFLG2 (*(volatile union un_tkbpaflg2 *)0xF02B6).tkbpaflg2 -#define TKBPAFLG2_bit (*(volatile union un_tkbpaflg2 *)0xF02B6).BIT -#define TKBPACTL22 (*(volatile union un_tkbpactl22 *)0xF02B7).tkbpactl22 -#define TKBPACTL22_bit (*(volatile union un_tkbpactl22 *)0xF02B7).BIT -#define DTCBAR (*(volatile unsigned char *)0xF02E0) -#define DSCCTL (*(volatile union un_dscctl *)0xF02E5).dscctl -#define DSCCTL_bit (*(volatile union un_dscctl *)0xF02E5).BIT -#define MCKC (*(volatile union un_mckc *)0xF02E6).mckc -#define MCKC_bit (*(volatile union un_mckc *)0xF02E6).BIT -#define DTCEN0 (*(volatile union un_dtcen0 *)0xF02E8).dtcen0 -#define DTCEN0_bit (*(volatile union un_dtcen0 *)0xF02E8).BIT -#define DTCEN1 (*(volatile union un_dtcen1 *)0xF02E9).dtcen1 -#define DTCEN1_bit (*(volatile union un_dtcen1 *)0xF02E9).BIT -#define DTCEN2 (*(volatile union un_dtcen2 *)0xF02EA).dtcen2 -#define DTCEN2_bit (*(volatile union un_dtcen2 *)0xF02EA).BIT -#define DTCEN3 (*(volatile union un_dtcen3 *)0xF02EB).dtcen3 -#define DTCEN3_bit (*(volatile union un_dtcen3 *)0xF02EB).BIT -#define DTCEN4 (*(volatile union un_dtcen4 *)0xF02EC).dtcen4 -#define DTCEN4_bit (*(volatile union un_dtcen4 *)0xF02EC).BIT -#define CRC0CTL (*(volatile union un_crc0ctl *)0xF02F0).crc0ctl -#define CRC0CTL_bit (*(volatile union un_crc0ctl *)0xF02F0).BIT -#define PGCRCL (*(volatile unsigned short *)0xF02F2) -#define CRCD (*(volatile unsigned short *)0xF02FA) -#define PFSEG0 (*(volatile union un_pfseg0 *)0xF0300).pfseg0 -#define PFSEG0_bit (*(volatile union un_pfseg0 *)0xF0300).BIT -#define PFSEG1 (*(volatile union un_pfseg1 *)0xF0301).pfseg1 -#define PFSEG1_bit (*(volatile union un_pfseg1 *)0xF0301).BIT -#define PFSEG2 (*(volatile union un_pfseg2 *)0xF0302).pfseg2 -#define PFSEG2_bit (*(volatile union un_pfseg2 *)0xF0302).BIT -#define PFSEG3 (*(volatile union un_pfseg3 *)0xF0303).pfseg3 -#define PFSEG3_bit (*(volatile union un_pfseg3 *)0xF0303).BIT -#define PFSEG4 (*(volatile union un_pfseg4 *)0xF0304).pfseg4 -#define PFSEG4_bit (*(volatile union un_pfseg4 *)0xF0304).BIT -#define PFSEG5 (*(volatile union un_pfseg5 *)0xF0305).pfseg5 -#define PFSEG5_bit (*(volatile union un_pfseg5 *)0xF0305).BIT -#define PFSEG6 (*(volatile union un_pfseg6 *)0xF0306).pfseg6 -#define PFSEG6_bit (*(volatile union un_pfseg6 *)0xF0306).BIT -#define ISCLCD (*(volatile union un_isclcd *)0xF0308).isclcd -#define ISCLCD_bit (*(volatile union un_isclcd *)0xF0308).BIT -#define SUBCUD (*(volatile unsigned short *)0xF0310) -#define COMPMDR (*(volatile union un_compmdr *)0xF0340).compmdr -#define COMPMDR_bit (*(volatile union un_compmdr *)0xF0340).BIT -#define COMPFIR (*(volatile union un_compfir *)0xF0341).compfir -#define COMPFIR_bit (*(volatile union un_compfir *)0xF0341).BIT -#define COMPOCR (*(volatile union un_compocr *)0xF0342).compocr -#define COMPOCR_bit (*(volatile union un_compocr *)0xF0342).BIT -#define SEG0 (*(volatile unsigned char *)0xF0400) -#define SEG1 (*(volatile unsigned char *)0xF0401) -#define SEG2 (*(volatile unsigned char *)0xF0402) -#define SEG3 (*(volatile unsigned char *)0xF0403) -#define SEG4 (*(volatile unsigned char *)0xF0404) -#define SEG5 (*(volatile unsigned char *)0xF0405) -#define SEG6 (*(volatile unsigned char *)0xF0406) -#define SEG7 (*(volatile unsigned char *)0xF0407) -#define SEG8 (*(volatile unsigned char *)0xF0408) -#define SEG9 (*(volatile unsigned char *)0xF0409) -#define SEG10 (*(volatile unsigned char *)0xF040A) -#define SEG11 (*(volatile unsigned char *)0xF040B) -#define SEG12 (*(volatile unsigned char *)0xF040C) -#define SEG13 (*(volatile unsigned char *)0xF040D) -#define SEG14 (*(volatile unsigned char *)0xF040E) -#define SEG15 (*(volatile unsigned char *)0xF040F) -#define SEG16 (*(volatile unsigned char *)0xF0410) -#define SEG17 (*(volatile unsigned char *)0xF0411) -#define SEG18 (*(volatile unsigned char *)0xF0412) -#define SEG19 (*(volatile unsigned char *)0xF0413) -#define SEG20 (*(volatile unsigned char *)0xF0414) -#define SEG21 (*(volatile unsigned char *)0xF0415) -#define SEG22 (*(volatile unsigned char *)0xF0416) -#define SEG23 (*(volatile unsigned char *)0xF0417) -#define SEG24 (*(volatile unsigned char *)0xF0418) -#define SEG25 (*(volatile unsigned char *)0xF0419) -#define SEG26 (*(volatile unsigned char *)0xF041A) -#define SEG27 (*(volatile unsigned char *)0xF041B) -#define SEG28 (*(volatile unsigned char *)0xF041C) -#define SEG29 (*(volatile unsigned char *)0xF041D) -#define SEG30 (*(volatile unsigned char *)0xF041E) -#define SEG31 (*(volatile unsigned char *)0xF041F) -#define SEG32 (*(volatile unsigned char *)0xF0420) -#define SEG33 (*(volatile unsigned char *)0xF0421) -#define SEG34 (*(volatile unsigned char *)0xF0422) -#define SEG35 (*(volatile unsigned char *)0xF0423) -#define SEG36 (*(volatile unsigned char *)0xF0424) -#define SEG37 (*(volatile unsigned char *)0xF0425) -#define SEG38 (*(volatile unsigned char *)0xF0426) -#define SEG39 (*(volatile unsigned char *)0xF0427) -#define SEG40 (*(volatile unsigned char *)0xF0428) -#define SEG41 (*(volatile unsigned char *)0xF0429) -#define SEG42 (*(volatile unsigned char *)0xF042A) -#define SEG43 (*(volatile unsigned char *)0xF042B) -#define SEG44 (*(volatile unsigned char *)0xF042C) -#define SEG45 (*(volatile unsigned char *)0xF042D) -#define SEG46 (*(volatile unsigned char *)0xF042E) -#define SEG47 (*(volatile unsigned char *)0xF042F) -#define SEG48 (*(volatile unsigned char *)0xF0430) -#define SEG49 (*(volatile unsigned char *)0xF0431) -#define SEG50 (*(volatile unsigned char *)0xF0432) -#define SEG51 (*(volatile unsigned char *)0xF0433) -#define SEG52 (*(volatile unsigned char *)0xF0434) -#define SEG53 (*(volatile unsigned char *)0xF0435) -#define SEG54 (*(volatile unsigned char *)0xF0436) -#define SEG55 (*(volatile unsigned char *)0xF0437) -#define TKBCR00 (*(volatile unsigned short *)0xF0500) -#define TKBCR01 (*(volatile unsigned short *)0xF0502) -#define TKBCR02 (*(volatile unsigned short *)0xF0504) -#define TKBCR03 (*(volatile unsigned short *)0xF0506) -#define TKBTGCR0 (*(volatile unsigned short *)0xF0508) -#define TKBSIR00 (*(volatile unsigned short *)0xF050A) -#define TKBSIR01 (*(volatile unsigned short *)0xF050C) -#define TKBDNR00 (*(volatile unsigned char *)0xF050E) -#define TKBSSR00 (*(volatile unsigned char *)0xF050F) -#define TKBDNR01 (*(volatile unsigned char *)0xF0510) -#define TKBSSR01 (*(volatile unsigned char *)0xF0511) -#define TKBTRG0 (*(volatile union un_tkbtrg0 *)0xF0512).tkbtrg0 -#define TKBTRG0_bit (*(volatile union un_tkbtrg0 *)0xF0512).BIT -#define TKBFLG0 (*(volatile union un_tkbflg0 *)0xF0513).tkbflg0 -#define TKBFLG0_bit (*(volatile union un_tkbflg0 *)0xF0513).BIT -#define TKBCRLD00 (*(volatile unsigned short *)0xF0514) -#define TKBCRLD01 (*(volatile unsigned short *)0xF0516) -#define TKBCNT0 (*(volatile unsigned short *)0xF0520) -#define TKBCTL00 (*(volatile unsigned short *)0xF0522) -#define TKBMFR0 (*(volatile unsigned short *)0xF0524) -#define TKBIOC00 (*(volatile union un_tkbioc00 *)0xF0526).tkbioc00 -#define TKBIOC00_bit (*(volatile union un_tkbioc00 *)0xF0526).BIT -#define TKBCLR0 (*(volatile union un_tkbclr0 *)0xF0527).tkbclr0 -#define TKBCLR0_bit (*(volatile union un_tkbclr0 *)0xF0527).BIT -#define TKBIOC01 (*(volatile union un_tkbioc01 *)0xF0528).tkbioc01 -#define TKBIOC01_bit (*(volatile union un_tkbioc01 *)0xF0528).BIT -#define TKBCTL01 (*(volatile union un_tkbctl01 *)0xF0529).tkbctl01 -#define TKBCTL01_bit (*(volatile union un_tkbctl01 *)0xF0529).BIT -#define TKBPSCS0 (*(volatile unsigned char *)0xF052A) -#define TKBPACTL00 (*(volatile unsigned short *)0xF0530) -#define TKBPACTL01 (*(volatile unsigned short *)0xF0532) -#define TKBPAHFS0 (*(volatile union un_tkbpahfs0 *)0xF0534).tkbpahfs0 -#define TKBPAHFS0_bit (*(volatile union un_tkbpahfs0 *)0xF0534).BIT -#define TKBPAHFT0 (*(volatile union un_tkbpahft0 *)0xF0535).tkbpahft0 -#define TKBPAHFT0_bit (*(volatile union un_tkbpahft0 *)0xF0535).BIT -#define TKBPAFLG0 (*(volatile union un_tkbpaflg0 *)0xF0536).tkbpaflg0 -#define TKBPAFLG0_bit (*(volatile union un_tkbpaflg0 *)0xF0536).BIT -#define TKBPACTL02 (*(volatile union un_tkbpactl02 *)0xF0537).tkbpactl02 -#define TKBPACTL02_bit (*(volatile union un_tkbpactl02 *)0xF0537).BIT -#define D0FIFOD00 (*(volatile unsigned short *)0xF0580) -#define D1FIFOD00 (*(volatile unsigned short *)0xF05C0) -#define SYSCFG (*(volatile unsigned short *)0xF0600) -#define SYSSTS0 (*(volatile unsigned short *)0xF0604) -#define DVSTCTR0 (*(volatile unsigned short *)0xF0608) -#define CFIFOM (*(volatile unsigned short *)0xF0614) -#define CFIFOML (*(volatile unsigned char *)0xF0614) -#define D0FIFOM (*(volatile unsigned short *)0xF0618) -#define D0FIFOML (*(volatile unsigned char *)0xF0618) -#define D1FIFOM (*(volatile unsigned short *)0xF061C) -#define D1FIFOML (*(volatile unsigned char *)0xF061C) -#define CFIFOSEL (*(volatile unsigned short *)0xF0620) -#define CFIFOCTR (*(volatile unsigned short *)0xF0622) -#define D0FIFOSEL (*(volatile unsigned short *)0xF0628) -#define D0FIFOCTR (*(volatile unsigned short *)0xF062A) -#define D1FIFOSEL (*(volatile unsigned short *)0xF062C) -#define D1FIFOCTR (*(volatile unsigned short *)0xF062E) -#define INTENB0 (*(volatile unsigned short *)0xF0630) -#define INTENB1 (*(volatile unsigned short *)0xF0632) -#define BRDYENB (*(volatile unsigned short *)0xF0636) -#define NRDYENB (*(volatile unsigned short *)0xF0638) -#define BEMPENB (*(volatile unsigned short *)0xF063A) -#define SOFCFG (*(volatile unsigned short *)0xF063C) -#define INTSTS0 (*(volatile unsigned short *)0xF0640) -#define INTSTS1 (*(volatile unsigned short *)0xF0642) -#define BRDYSTS (*(volatile unsigned short *)0xF0646) -#define NRDYSTS (*(volatile unsigned short *)0xF0648) -#define BEMPSTS (*(volatile unsigned short *)0xF064A) -#define FRMNUM (*(volatile unsigned short *)0xF064C) -#define USBADDR (*(volatile unsigned short *)0xF0650) -#define USBREQ (*(volatile unsigned short *)0xF0654) -#define USBVAL (*(volatile unsigned short *)0xF0656) -#define USBINDX (*(volatile unsigned short *)0xF0658) -#define USBLENG (*(volatile unsigned short *)0xF065A) -#define DCPCFG (*(volatile unsigned short *)0xF065C) -#define DCPMAXP (*(volatile unsigned short *)0xF065E) -#define DCPCTR (*(volatile unsigned short *)0xF0660) -#define PIPESEL (*(volatile unsigned short *)0xF0664) -#define PIPECFG (*(volatile unsigned short *)0xF0668) -#define PIPEMAXP (*(volatile unsigned short *)0xF066C) -#define PIPE4CTR (*(volatile unsigned short *)0xF0676) -#define PIPE5CTR (*(volatile unsigned short *)0xF0678) -#define PIPE6CTR (*(volatile unsigned short *)0xF067A) -#define PIPE7CTR (*(volatile unsigned short *)0xF067C) -#define PIPE4TRE (*(volatile unsigned short *)0xF069C) -#define PIPE4TRN (*(volatile unsigned short *)0xF069E) -#define PIPE5TRE (*(volatile unsigned short *)0xF06A0) -#define PIPE5TRN (*(volatile unsigned short *)0xF06A2) -#define DTC0PCFG (*(volatile unsigned short *)0xF06A8) -#define DTC1PCFG (*(volatile unsigned short *)0xF06AC) -#define USBBCCTRL0 (*(volatile unsigned short *)0xF06B0) -#define USBBCOPT0 (*(volatile unsigned short *)0xF06B8) -#define USBMC (*(volatile unsigned short *)0xF06CC) - -/* - Sfr bits - */ -#define ADTYP ADM2_bit.no0 -#define AWC ADM2_bit.no2 -#define ADRCK ADM2_bit.no3 -#define TOS0 TOS_bit.no0 -#define DACEN PER1_bit.no0 -#define DTCEN PER1_bit.no3 -#define TKB20EN PER1_bit.no4 -#define CMPEN PER1_bit.no5 -#define TMKAEN PER1_bit.no7 -#define DFLEN DFLCTL_bit.no0 -#define TAU0EN PER0_bit.no0 -#define SAU0EN PER0_bit.no2 -#define SAU1EN PER0_bit.no3 -#define IICA0EN PER0_bit.no4 -#define ADCEN PER0_bit.no5 -#define RTCWEN PER0_bit.no7 -#define RPEF RPECTL_bit.no0 -#define RPERDIS RPECTL_bit.no7 -#define TKB21EN PER2_bit.no0 -#define TKB22EN PER2_bit.no1 -#define SPT0 IICCTL00_bit.no0 -#define STT0 IICCTL00_bit.no1 -#define ACKE0 IICCTL00_bit.no2 -#define WTIM0 IICCTL00_bit.no3 -#define SPIE0 IICCTL00_bit.no4 -#define WREL0 IICCTL00_bit.no5 -#define LREL0 IICCTL00_bit.no6 -#define IICE0 IICCTL00_bit.no7 -#define PRS0 IICCTL01_bit.no0 -#define DFC0 IICCTL01_bit.no2 -#define SMC0 IICCTL01_bit.no3 -#define DAD0 IICCTL01_bit.no4 -#define CLD0 IICCTL01_bit.no5 -#define WUP0 IICCTL01_bit.no7 -#define TKBRDT1 TKBTRG1_bit.no0 -#define TKBRSF1 TKBFLG1_bit.no0 -#define TKBMFF1 TKBFLG1_bit.no1 -#define TKBIEF1 TKBFLG1_bit.no2 -#define TKBIRF1 TKBFLG1_bit.no3 -#define TKBSEF10 TKBFLG1_bit.no4 -#define TKBSEF11 TKBFLG1_bit.no5 -#define TKBSSF10 TKBFLG1_bit.no6 -#define TKBSSF11 TKBFLG1_bit.no7 -#define TKBTOD10 TKBIOC10_bit.no0 -#define TKBTOD11 TKBIOC10_bit.no1 -#define TKBTOL10 TKBIOC10_bit.no2 -#define TKBTOL11 TKBIOC10_bit.no3 -#define TKBCLMF1 TKBCLR1_bit.no1 -#define TKBCLIE1 TKBCLR1_bit.no2 -#define TKBCLIR1 TKBCLR1_bit.no3 -#define TKBCLSE10 TKBCLR1_bit.no4 -#define TKBCLSE11 TKBCLR1_bit.no5 -#define TKBTOE10 TKBIOC11_bit.no0 -#define TKBTOE11 TKBIOC11_bit.no1 -#define TKBCE1 TKBCTL11_bit.no7 -#define TKBPAHTS10 TKBPAHFS1_bit.no0 -#define TKBPAHTS11 TKBPAHFS1_bit.no1 -#define TKBPAHTT10 TKBPAHFT1_bit.no0 -#define TKBPAHTT11 TKBPAHFT1_bit.no1 -#define TKBPAHIF10 TKBPAFLG1_bit.no0 -#define TKBPAFIF10 TKBPAFLG1_bit.no1 -#define TKBPAHIF11 TKBPAFLG1_bit.no2 -#define TKBPAFIF11 TKBPAFLG1_bit.no3 -#define TKBPAHSF10 TKBPAFLG1_bit.no4 -#define TKBPAFSF10 TKBPAFLG1_bit.no5 -#define TKBPAHSF11 TKBPAFLG1_bit.no6 -#define TKBPAFSF11 TKBPAFLG1_bit.no7 -#define TKBPACE10 TKBPACTL12_bit.no0 -#define TKBPACE11 TKBPACTL12_bit.no1 -#define TKBRDT2 TKBTRG2_bit.no0 -#define TKBRSF2 TKBFLG2_bit.no0 -#define TKBMFF2 TKBFLG2_bit.no1 -#define TKBIEF2 TKBFLG2_bit.no2 -#define TKBIRF2 TKBFLG2_bit.no3 -#define TKBSEF20 TKBFLG2_bit.no4 -#define TKBSEF21 TKBFLG2_bit.no5 -#define TKBSSF20 TKBFLG2_bit.no6 -#define TKBSSF21 TKBFLG2_bit.no7 -#define TKBTOD20 TKBIOC20_bit.no0 -#define TKBTOD21 TKBIOC20_bit.no1 -#define TKBTOL20 TKBIOC20_bit.no2 -#define TKBTOL21 TKBIOC20_bit.no3 -#define TKBCLMF2 TKBCLR2_bit.no1 -#define TKBCLIE2 TKBCLR2_bit.no2 -#define TKBCLIR2 TKBCLR2_bit.no3 -#define TKBCLSE20 TKBCLR2_bit.no4 -#define TKBCLSE21 TKBCLR2_bit.no5 -#define TKBTOE20 TKBIOC21_bit.no0 -#define TKBTOE21 TKBIOC21_bit.no1 -#define TKBCE2 TKBCTL21_bit.no7 -#define TKBPAHTS20 TKBPAHFS2_bit.no0 -#define TKBPAHTS21 TKBPAHFS2_bit.no1 -#define TKBPAHTT20 TKBPAHFT2_bit.no0 -#define TKBPAHTT21 TKBPAHFT2_bit.no1 -#define TKBPAHIF20 TKBPAFLG2_bit.no0 -#define TKBPAFIF20 TKBPAFLG2_bit.no1 -#define TKBPAHIF21 TKBPAFLG2_bit.no2 -#define TKBPAFIF21 TKBPAFLG2_bit.no3 -#define TKBPAHSF20 TKBPAFLG2_bit.no4 -#define TKBPAFSF20 TKBPAFLG2_bit.no5 -#define TKBPAHSF21 TKBPAFLG2_bit.no6 -#define TKBPAFSF21 TKBPAFLG2_bit.no7 -#define TKBPACE20 TKBPACTL22_bit.no0 -#define TKBPACE21 TKBPACTL22_bit.no1 -#define CRC0EN CRC0CTL_bit.no7 -#define PFSEG04 PFSEG0_bit.no4 -#define PFSEG05 PFSEG0_bit.no5 -#define PFSEG06 PFSEG0_bit.no6 -#define PFSEG07 PFSEG0_bit.no7 -#define PFSEG08 PFSEG1_bit.no0 -#define PFSEG09 PFSEG1_bit.no1 -#define PFSEG10 PFSEG1_bit.no2 -#define PFSEG11 PFSEG1_bit.no3 -#define PFSEG12 PFSEG1_bit.no4 -#define PFSEG13 PFSEG1_bit.no5 -#define PFSEG14 PFSEG1_bit.no6 -#define PFSEG15 PFSEG1_bit.no7 -#define PFSEG16 PFSEG2_bit.no0 -#define PFSEG17 PFSEG2_bit.no1 -#define PFSEG18 PFSEG2_bit.no2 -#define PFSEG19 PFSEG2_bit.no3 -#define PFSEG20 PFSEG2_bit.no4 -#define PFSEG21 PFSEG2_bit.no5 -#define PFSEG22 PFSEG2_bit.no6 -#define PFSEG23 PFSEG2_bit.no7 -#define PFSEG24 PFSEG3_bit.no0 -#define PFSEG25 PFSEG3_bit.no1 -#define PFSEG26 PFSEG3_bit.no2 -#define PFSEG27 PFSEG3_bit.no3 -#define PFSEG28 PFSEG3_bit.no4 -#define PFSEG29 PFSEG3_bit.no5 -#define PFSEG30 PFSEG3_bit.no6 -#define PFSEG31 PFSEG3_bit.no7 -#define PFSEG32 PFSEG4_bit.no0 -#define PFSEG33 PFSEG4_bit.no1 -#define PFSEG34 PFSEG4_bit.no2 -#define PFSEG35 PFSEG4_bit.no3 -#define PFSEG36 PFSEG4_bit.no4 -#define PFSEG37 PFSEG4_bit.no5 -#define PFSEG38 PFSEG4_bit.no6 -#define PFSEG39 PFSEG4_bit.no7 -#define PFSEG40 PFSEG5_bit.no0 -#define PFSEG41 PFSEG5_bit.no1 -#define PFSEG42 PFSEG5_bit.no2 -#define PFSEG43 PFSEG5_bit.no3 -#define PFSEG44 PFSEG5_bit.no4 -#define PFSEG45 PFSEG5_bit.no5 -#define PFSEG46 PFSEG5_bit.no6 -#define PFSEG47 PFSEG5_bit.no7 -#define PFSEG48 PFSEG6_bit.no0 -#define PFSEG49 PFSEG6_bit.no1 -#define PFSEG50 PFSEG6_bit.no2 -#define PFSEG51 PFSEG6_bit.no3 -#define PFSEG52 PFSEG6_bit.no4 -#define PFSEG53 PFSEG6_bit.no5 -#define PFSEG54 PFSEG6_bit.no6 -#define PFSEG55 PFSEG6_bit.no7 -#define C0ENB COMPMDR_bit.no0 -#define C0MON COMPMDR_bit.no3 -#define C1ENB COMPMDR_bit.no4 -#define C1MON COMPMDR_bit.no7 -#define C0IE COMPOCR_bit.no0 -#define C0OE COMPOCR_bit.no1 -#define C0OP COMPOCR_bit.no2 -#define C1IE COMPOCR_bit.no4 -#define C1OE COMPOCR_bit.no5 -#define C1OP COMPOCR_bit.no6 -#define SPDMD COMPOCR_bit.no7 -#define TKBRDT0 TKBTRG0_bit.no0 -#define TKBRSF0 TKBFLG0_bit.no0 -#define TKBMFF0 TKBFLG0_bit.no1 -#define TKBIEF0 TKBFLG0_bit.no2 -#define TKBIRF0 TKBFLG0_bit.no3 -#define TKBSEF00 TKBFLG0_bit.no4 -#define TKBSEF01 TKBFLG0_bit.no5 -#define TKBSSF00 TKBFLG0_bit.no6 -#define TKBSSF01 TKBFLG0_bit.no7 -#define TKBTOD00 TKBIOC00_bit.no0 -#define TKBTOD01 TKBIOC00_bit.no1 -#define TKBTOL00 TKBIOC00_bit.no2 -#define TKBTOL01 TKBIOC00_bit.no3 -#define TKBCLMF0 TKBCLR0_bit.no1 -#define TKBCLIE0 TKBCLR0_bit.no2 -#define TKBCLIR0 TKBCLR0_bit.no3 -#define TKBCLSE00 TKBCLR0_bit.no4 -#define TKBCLSE01 TKBCLR0_bit.no5 -#define TKBTOE00 TKBIOC01_bit.no0 -#define TKBTOE01 TKBIOC01_bit.no1 -#define TKBCE0 TKBCTL01_bit.no7 -#define TKBPAHTS00 TKBPAHFS0_bit.no0 -#define TKBPAHTS01 TKBPAHFS0_bit.no1 -#define TKBPAHTT00 TKBPAHFT0_bit.no0 -#define TKBPAHTT01 TKBPAHFT0_bit.no1 -#define TKBPAHIF00 TKBPAFLG0_bit.no0 -#define TKBPAFIF00 TKBPAFLG0_bit.no1 -#define TKBPAHIF01 TKBPAFLG0_bit.no2 -#define TKBPAFIF01 TKBPAFLG0_bit.no3 -#define TKBPAHSF00 TKBPAFLG0_bit.no4 -#define TKBPAFSF00 TKBPAFLG0_bit.no5 -#define TKBPAHSF01 TKBPAFLG0_bit.no6 -#define TKBPAFSF01 TKBPAFLG0_bit.no7 -#define TKBPACE00 TKBPACTL02_bit.no0 -#define TKBPACE01 TKBPACTL02_bit.no1 - -/* - Interrupt vector addresses - */ -#endif