*
*/
-#include "hw_cpu.h"
+#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