From e2c9602b282106466fa2b29792ce232d4c3c1485 Mon Sep 17 00:00:00 2001 From: Branislav Petrovsk Date: Thu, 2 Jun 2005 14:30:07 +0000 Subject: [PATCH] 2005-06-02 Branislav Petrovsky * h8/h8s2357/tpu.h: Added bit names for TIER registers. * h8/h8s2357/ports.h: Fixed newline at end of file. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@641 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/ChangeLog | 5 +++++ include/h8/h8s2357/ports.h | 1 - include/h8/h8s2357/tpu.h | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/include/ChangeLog b/include/ChangeLog index a28f7751..4223f626 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2005-06-02 Branislav Petrovsky + + * h8/h8s2357/tpu.h: Added bit names for TIER registers. + * h8/h8s2357/ports.h: Fixed newline at end of file. + 2005-06-02 Branislav Petrovsky * h8/h8s2357/timer.h: Added prefix TIMER to registers constants - fixed diff --git a/include/h8/h8s2357/ports.h b/include/h8/h8s2357/ports.h index 94cbf5c4..d28b7d73 100644 --- a/include/h8/h8s2357/ports.h +++ b/include/h8/h8s2357/ports.h @@ -617,4 +617,3 @@ typedef struct DDR_registers { #define PGDDR_PG0DDR bit(0) #endif /* H8S2357_PORTS_H */ - \ No newline at end of file diff --git a/include/h8/h8s2357/tpu.h b/include/h8/h8s2357/tpu.h index 500501a3..9edb0b26 100644 --- a/include/h8/h8s2357/tpu.h +++ b/include/h8/h8s2357/tpu.h @@ -206,6 +206,15 @@ typedef struct TPU_common_registers { #define TIORL_IOC(x) bits_val(3,0,x) #define get_TIORL_IOC(x) bits_get(3,0,x) +/* TIER bits */ +#define TIER_TTGE bit(7) +#define TIER_TCIEU bit(5) /* only for TPU1, TPU2, TPU4, TPU5 */ +#define TIER_TCIEV bit(4) +#define TIER_TGIED bit(3) /* only for TPU0 and TPU3 */ +#define TIER_TGIEC bit(2) /* only for TPU0 and TPU3 */ +#define TIER_TGIEB bit(1) +#define TIER_TGIEA bit(0) + /* TSR bits */ #define TSR_TCFD bit(7) /* only for TPU1, TPU2, TPU4, TPU5 */ #define TSR_TCFU bit(5) /* only for TPU1, TPU2, TPU4, TPU5 */