summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-12-11 10:19:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-12-11 10:19:47 +0000
commit3129783ce42613029a57ff218ca4208421e25122 (patch)
tree21d91d8c881cf3d39544fba4a433b49ae6e8ecd6 /c
parent#include <bspopts.h>. (diff)
downloadrtems-3129783ce42613029a57ff218ca4208421e25122.tar.bz2
Receive LPC24XX_OSCILLATOR_RTC, LPC24XX_OSCILLATOR_MAIN through bspopts.h.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/arm/lpc24xx/misc/system-clocks.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/arm/lpc24xx/misc/system-clocks.c b/c/src/lib/libbsp/arm/lpc24xx/misc/system-clocks.c
index 3b5e15f86d..8ff367c27e 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/misc/system-clocks.c
+++ b/c/src/lib/libbsp/arm/lpc24xx/misc/system-clocks.c
@@ -28,18 +28,12 @@
*/
#define LPC24XX_OSCILLATOR_INTERNAL 4000000U
-#ifdef LPC2478
- /**
- * @brief Main oscillator frequency in [Hz].
- */
- #define LPC24XX_OSCILLATOR_MAIN 12000000U
-
- /**
- * @brief RTC oscillator frequency in [Hz].
- */
- #define LPC24XX_OSCILLATOR_RTC 32768
-#else
- #error Unknown oscillator frequencies
+#if !defined(LPC24XX_OSCILLATOR_MAIN)
+#error unknown main oscillator frequency
+#endif
+
+#if !defined(LPC24XX_OSCILLATOR_RTC)
+#error unknown rtc oscillator frequency
#endif
/**