Search
lxdream.org :: lxdream/src/clock.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/clock.h
changeset 19:9da7a8e38f9d
next23:1ec3acd0594d
author nkeynes
date Thu Dec 22 07:38:12 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Implement 95% of the SCIF serial interface
Implement basic load_bin_file function to try to load demos directly
Update TMU to run all 3 timers, start on general timing
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/clock.h Thu Dec 22 07:38:12 2005 +0000
1.3 @@ -0,0 +1,41 @@
1.4 +/**
1.5 + * $Id: clock.h,v 1.1 2005-12-22 07:38:06 nkeynes Exp $
1.6 + * External interface to the dreamcast serial port, implemented by
1.7 + * sh4/scif.c
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +#ifndef dream_clock_H
1.22 +#define dream_clock_H 1
1.23 +
1.24 +#include <stdint.h>
1.25 +
1.26 +#ifdef __cplusplus
1.27 +extern "C" {
1.28 +#endif
1.29 +
1.30 +#define MHZ * 1000000
1.31 +
1.32 +#define SH4_BASE_RATE 200 MHZ
1.33 +#define ARM_BASE_RATE 33 MHZ
1.34 +
1.35 + extern uint32_t sh4_freq;
1.36 + extern uint32_t sh4_peripheral_freq;
1.37 + extern uint32_t sh4_bus_freq;
1.38 + extern uint32_t arm_freq;
1.39 +
1.40 +#ifdef __cplusplus
1.41 +}
1.42 +#endif
1.43 +
1.44 +#endif
.