Derive clock and timer defines from frequency of external source.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28791 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2010-12-11 09:39:33 +00:00
parent 1190165d06
commit e4a233ed9b
2 changed files with 8 additions and 8 deletions

View file

@ -25,7 +25,7 @@
#define REG16_PTR_T volatile uint16_t *
#define REG32_PTR_T volatile uint32_t *
#define TIMER_FREQ 47923200L
#define TIMER_FREQ (1843200 * 4 * 26 / 1 / 4) /* 47923200 Hz */
#define CACHEALIGN_BITS (4) /* 2^4 = 16 bytes */

View file

@ -25,9 +25,9 @@
#include "mmu-arm.h"
#define CPUFREQ_SLEEP 32768
#define CPUFREQ_DEFAULT 47923200
#define CPUFREQ_NORMAL 47923200
#define CPUFREQ_MAX 191692800
#define CPUFREQ_MAX (1843200 * 4 * 26 / 1) /* 191692800 Hz */
#define CPUFREQ_DEFAULT (CPUFREQ_MAX/4) /* 47923200 Hz */
#define CPUFREQ_NORMAL (CPUFREQ_MAX/4)
#define STORAGE_WANTS_ALIGN