#include "cfg/cfg_arch.h"
-#if CPU_FREQ != 48023000L
+#if CPU_FREQ != 48054857L
/* Avoid errors on nightly test */
#if !defined(ARCH_NIGHTTEST) || !(ARCH & ARCH_NIGHTTEST)
- #warning Clock registers set for 48.023MHz operation, revise following code if you want a different clock.
+ #warning Clock registers set for 48.055MHz operation, revise following code if you want a different clock.
#endif
#endif
#if CPU_ARM_SAM7S_LARGE || CPU_ARM_SAM7X
/*
- * With a 18.420MHz cristal, master clock is:
- * (((18.420 * PLL_MUL_VAL + 1) / PLL_DIV_VAL) / AT91MCK_PRES) = 48.023MHz
+ * With a 18.432MHz cristal, master clock is:
+ * (((18.432 * (PLL_MUL_VAL + 1)) / PLL_DIV_VAL) / AT91MCK_PRES) = 48.055MHz
*/
#define PLL_MUL_VAL 72 /**< Real multiplier value is PLL_MUL_VAL + 1! */
#define PLL_DIV_VAL 14
#define USE_FIXED_PLL 1
-#define XTAL_FREQ 18420000UL
+#define XTAL_FREQ 18432000UL
#if USE_FIXED_PLL
- #if CPU_FREQ != 48023000L
+ #if CPU_FREQ != 48054857L
/* Avoid errors on nightly test */
#if !defined(ARCH_NIGHTTEST) || !(ARCH & ARCH_NIGHTTEST)
- #warning Clock registers set for 48.023MHz operation, revise following code if you want a different clock.
+ #warning Clock registers set for 48.055MHz operation, revise following code if you want a different clock.
#endif
#endif
/*
- * With a 18.420MHz cristal, master clock is:
- * (((18.420 * PLL_MUL_VAL + 1) / PLL_DIV_VAL) / AT91MCK_PRES) = 48.023MHz
+ * With a 18.432MHz cristal, master clock is:
+ * (((18.432 * (PLL_MUL_VAL + 1)) / PLL_DIV_VAL) / AT91MCK_PRES) = 48.055MHz
*/
#define PLL_MUL_VAL 72 /**< Real multiplier value is PLL_MUL_VAL + 1! */
#define PLL_DIV_VAL 14
int main(int argc, char *argv[])
{
int32_t m, d, k;
- PLL_CALC(18420000, 48023000, &m, &d, &k);
+ PLL_CALC(18432000, 48054857, &m, &d, &k);
if (__builtin_constant_p(m) && __builtin_constant_p(k) && __builtin_constant_p(d))
printf("SUCCESS -- compile time evaluation\n");
MK_CPU = CORE_CPU
# CPU default clock frequency
-CPU_DEFAULT_FREQ = "48023000UL"
+CPU_DEFAULT_FREQ = "48054857UL"
# Special CPU related tags.
CPU_TAGS = ["at91", CORE_CPU, TOOLCHAIN]