Search
lxdream.org :: lxdream/src/clock.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/clock.h
changeset 30:89b30313d757
prev23:1ec3acd0594d
next261:93fdb2a70e18
author nkeynes
date Sun Dec 25 05:57:00 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Change timeslice to nanoseconds (was microseconds)
Generize single step (now steps through active CPU)
Add lots of header blocks
file annotate diff log raw
nkeynes@19
     1
/**
nkeynes@30
     2
 * $Id: clock.h,v 1.3 2005-12-25 05:56:55 nkeynes Exp $
nkeynes@19
     3
 * External interface to the dreamcast serial port, implemented by 
nkeynes@19
     4
 * sh4/scif.c
nkeynes@19
     5
 *
nkeynes@19
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@19
     7
 *
nkeynes@19
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@19
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@19
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@19
    11
 * (at your option) any later version.
nkeynes@19
    12
 *
nkeynes@19
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@19
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@19
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@19
    16
 * GNU General Public License for more details.
nkeynes@19
    17
 */
nkeynes@19
    18
#ifndef dream_clock_H
nkeynes@19
    19
#define dream_clock_H 1
nkeynes@19
    20
nkeynes@19
    21
#include <stdint.h>
nkeynes@19
    22
nkeynes@19
    23
#ifdef __cplusplus
nkeynes@19
    24
extern "C" {
nkeynes@19
    25
#endif
nkeynes@19
    26
nkeynes@23
    27
#define MHZ
nkeynes@19
    28
#define SH4_BASE_RATE 200 MHZ
nkeynes@19
    29
#define ARM_BASE_RATE 33 MHZ
nkeynes@19
    30
nkeynes@23
    31
extern uint32_t sh4_freq;
nkeynes@23
    32
extern uint32_t sh4_peripheral_freq;
nkeynes@23
    33
extern uint32_t sh4_bus_freq;
nkeynes@30
    34
extern uint32_t sh4_cpu_period;
nkeynes@30
    35
extern uint32_t sh4_peripheral_period;
nkeynes@30
    36
extern uint32_t sh4_bus_period;
nkeynes@23
    37
extern uint32_t arm_freq;
nkeynes@19
    38
nkeynes@19
    39
#ifdef __cplusplus
nkeynes@19
    40
}
nkeynes@19
    41
#endif
nkeynes@19
    42
nkeynes@19
    43
#endif
.