From d8e7e65658dba20b3eb1ed453dba8720140f9dd2 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Fri, 11 Oct 2002 08:45:11 +0000 Subject: [PATCH] Replaced constants with macros. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@165 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/arm/pxa2x0/cm.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/arm/pxa2x0/cm.h b/include/arm/pxa2x0/cm.h index fc3b1f1a..89ce9e72 100644 --- a/include/arm/pxa2x0/cm.h +++ b/include/arm/pxa2x0/cm.h @@ -71,12 +71,12 @@ typedef volatile struct CM_registers { /* CCCR bits - see Table 3-20 in [1] */ -#define CCCR_N_MASK 0x380 -#define CCCR_N(x) ((x << 7) & CCCR_N_MASK) -#define CCCR_M_MASK 0x060 -#define CCCR_M(x) ((x << 5) & CCCR_M_MASK) -#define CCCR_L_MASK 0x01F -#define CCCR_L(x) (x & CCCR_L_MASK) +#define CCCR_N_MASK bits(9,7) +#define CCCR_N(x) bits_val(9,7,x) +#define CCCR_M_MASK bits(6,5) +#define CCCR_M(x) bits_val(6,5,x) +#define CCCR_L_MASK bits(4,0) +#define CCCR_L(x) bits_val(4,0,x) #define CCCR_N_1_0 CCCR_N(0x2) #define CCCR_N_1_5 CCCR_N(0x3)