/* * timers.c - Generic hardware timer support. * * Copyright (C) 1993 Hamish Macdonald * Copyright (C) 1999 D. Jeff Dionne * Copyright (C) 2001 Georges Menie, Ken Desmet * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details.
*/
#ifdefined(CONFIG_DRAGEN2) /* with a 33.16 MHz clock, this will give usec resolution to the time functions */ #define CLOCK_SOURCE TCTL_CLKSOURCE_SYSCLK #define CLOCK_PRE 7 #define TICKS_PER_JIFFY 41450
#elifdefined(CONFIG_XCOPILOT_BUGS) /* * The only thing I know is that CLK32 is not available on Xcopilot * I have little idea about what frequency SYSCLK has on Xcopilot. * The values for prescaler and compare registers were simply * taken from the original source
*/ #define CLOCK_SOURCE TCTL_CLKSOURCE_SYSCLK #define CLOCK_PRE 2 #define TICKS_PER_JIFFY 0xd7e4
#else /* default to using the 32Khz clock */ #define CLOCK_SOURCE TCTL_CLKSOURCE_32KHZ #define CLOCK_PRE 31 #define TICKS_PER_JIFFY 10 #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.