mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Sansa ASM: clock-target.h needs to know the CPU
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24521 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12af2926e5
commit
f0d53ea8d6
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@
|
||||||
#ifndef CLOCK_TARGET_H
|
#ifndef CLOCK_TARGET_H
|
||||||
#define CLOCK_TARGET_H
|
#define CLOCK_TARGET_H
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include "cpu.h"
|
||||||
|
|
||||||
/* returns clock divider, given maximal target frequency and clock reference */
|
/* returns clock divider, given maximal target frequency and clock reference */
|
||||||
#define CLK_DIV(ref, target) ((ref + target - 1) / target)
|
#define CLK_DIV(ref, target) ((ref + target - 1) / target)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue