From ae9d184f884cf7206d0658dbc6776b51b05151d5 Mon Sep 17 00:00:00 2001 From: Branislav Petrovsk Date: Thu, 16 Jun 2005 13:14:41 +0000 Subject: [PATCH] 2005-06-16 Branislav Petrovsky * h8/h8s2357/mcu.h (SBYCR, SYSCR, SCKCR, MDCR, MSTPCRH, MSTPCRL) (SYSCR2): Added assembly alternatives to C register names defines. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@646 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/ChangeLog | 5 +++++ include/h8/h8s2357/mcu.h | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/include/ChangeLog b/include/ChangeLog index 623d24a0..3f38bc0f 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2005-06-16 Branislav Petrovsky + + * h8/h8s2357/mcu.h (SBYCR, SYSCR, SCKCR, MDCR, MSTPCRH, MSTPCRL) + (SYSCR2): Added assembly alternatives to C register names defines. + 2005-06-10 Branislav Petrovsky * h8/h83048/itu.h: Replaced 8 bit register pairs with 16 bit registers diff --git a/include/h8/h8s2357/mcu.h b/include/h8/h8s2357/mcu.h index e32428ba..274a6ec3 100644 --- a/include/h8/h8s2357/mcu.h +++ b/include/h8/h8s2357/mcu.h @@ -81,6 +81,16 @@ typedef volatile struct MCU_registers { #define MSTPCRL_OFFSET 0x05 #define SYSCR2_OFFSET 0x0a +#if LANGUAGE == ASM +#define SBYCR (MCU_BASE + SBYCR_OFFSET) +#define SYSCR (MCU_BASE + SYSCR_OFFSET) +#define SCKCR (MCU_BASE + SCKCR_OFFSET) +#define MDCR (MCU_BASE + MDCR_OFFSET) +#define MSTPCRH (MCU_BASE + MSTPCRH_OFFSET) +#define MSTPCRL (MCU_BASE + MSTPCRL_OFFSET) +#define SYSCR2 (MCU_BASE + SYSCR2_OFFSET) +#endif /* LANGUAGE == ASM */ + /* SBYCR bits */ #define SBYCR_SSBY bit(7) #define SBYCR_STS_MASK bits(6,4)