REF_OSC is a 32-bit number, not 64-bit number

This commit is contained in:
maralvira 2010-11-07 14:22:51 +00:00
parent 745e7b5ac2
commit 11ac20a361

View file

@ -30,7 +30,7 @@
* This file is part of libmc1322x: see http://mc1322x.devl.org * This file is part of libmc1322x: see http://mc1322x.devl.org
* for details. * for details.
* *
* $Id: crm.h,v 1.2 2010/11/07 14:21:33 maralvira Exp $ * $Id: crm.h,v 1.3 2010/11/07 14:22:51 maralvira Exp $
*/ */
#ifndef CRM_H #ifndef CRM_H
@ -270,7 +270,7 @@ static const int ROSC_EN = 0;
#define ring_osc_on() (set_bit(*CRM_RINGOSC_CNTL,ROSC_EN)) #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_off() (clear_bit(*CRM_RINGOSC_CNTL,ROSC_EN))
#define REF_OSC 24000000ULL /* reference osc. frequency */ #define REF_OSC 24000000UL /* reference osc. frequency */
#define NOMINAL_RING_OSC_SEC 2000 /* nominal ring osc. frequency */ #define NOMINAL_RING_OSC_SEC 2000 /* nominal ring osc. frequency */
extern uint32_t cal_rtc_secs; /* calibrated 2khz rtc seconds */ extern uint32_t cal_rtc_secs; /* calibrated 2khz rtc seconds */