Use the new ARCH_NIGHTTEST.
[bertos.git] / bertos / cpu / arm / hw / crtat91sam7_rom.S
index c7706d73ffbaa9135af0751d6e7c4d67ec47b3d1..ee00f7c8651e5d6eb0d296028dc91a022812222f 100644 (file)
 
 #include "hw/hw_cpu.h"
 #include <cpu/detect.h>
+#include <cfg/cfg_arch.h>
 
 
 #if CLOCK_FREQ != 48023000L
-#error Clock registers set for 48MHz operation, revise following code if you want a different clock.
+       /* Avoid errors on nightly test */
+       #if !defined(ARCH_NIGHTTEST) || !(ARCH & ARCH_NIGHTTEST)
+               #error Clock registers set for 48MHz operation, revise following code if you want a different clock.
+       #endif
 #endif