arm_cpu.h
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #ifndef ARM_CPU_H
10 #define ARM_CPU_H
11 
12 #include <stdint.h>
13 #include "VIC.h"
14 #include "arm7_common.h"
15 
16 #ifdef __cplusplus
17  extern "C" {
18 #endif
19 
20 #define NEW_TASK_CPSR 0x1F
21 #define WORDSIZE 32
22 
23 uint32_t get_system_speed(void);
24 void cpu_clock_scale(uint32_t source, uint32_t target, uint32_t *prescale);
25 
26 void arm_reset(void);
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 
32 #endif /* ARM_CPU_H */
ARM7 CPU common declarations.
void cpu_clock_scale(uint32_t source, uint32_t target, uint32_t *prescale)
Configure the CPU's clock system.