From 77cf0f0f5e629aa962146a68c1841879743f3d8b Mon Sep 17 00:00:00 2001 From: maralvira Date: Sun, 7 Nov 2010 14:42:31 +0000 Subject: [PATCH] update ring_osc_on and _off to the new bit structs --- cpu/mc1322x/lib/include/crm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu/mc1322x/lib/include/crm.h b/cpu/mc1322x/lib/include/crm.h index 501d9e4d9..abf4e201a 100644 --- a/cpu/mc1322x/lib/include/crm.h +++ b/cpu/mc1322x/lib/include/crm.h @@ -30,7 +30,7 @@ * This file is part of libmc1322x: see http://mc1322x.devl.org * for details. * - * $Id: crm.h,v 1.4 2010/11/07 14:24:11 maralvira Exp $ + * $Id: crm.h,v 1.5 2010/11/07 14:42:31 maralvira Exp $ */ #ifndef CRM_H @@ -266,8 +266,8 @@ static const int ROSC_CTUNE = 9; /* 4 bits */ static const int ROSC_FTUNE = 4; /* 4 bits */ static const int ROSC_EN = 0; -#define ring_osc_on() (set_bit(*CRM_RINGOSC_CNTL,ROSC_EN)) -#define ring_osc_off() (clear_bit(*CRM_RINGOSC_CNTL,ROSC_EN)) +#define ring_osc_on() (CRM->RINGOSC_CNTLbits.ROSC_EN = 1) +#define ring_osc_off() (CRM->RINGOSC_CNTLbits.ROSC_EN = 0) #define REF_OSC 24000000UL /* reference osc. frequency */ #define NOMINAL_RING_OSC_SEC 2000 /* nominal ring osc. frequency */