Main Page | Modules | Data Structures | File List | Data Fields | Globals

crg.c

Go to the documentation of this file.
00001 /* BeeOS v0.1. Created: 2003/04/04 Modified: 2004/04/04
00002  * Copyright (C) 2004 Paul Harvey - ROMA, Australia.
00003  * csirac@users.sourceforge.net
00004  */
00005 
00006 /*   This program is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  * 
00011  *   This program is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  * 
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with this program; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00026 #include "../include/beeos.h"
00027 #include "../include/crg.h"
00028 #include "../include/asm/ports.h"
00029 
00030 void rti_init(void)
00031 {
00032     RTICTL = 0x10;      /* 2ms with ECLK = 200000 (prescale = 1024, mod = 0) */
00033     CRGFLG |= CRG_RTIF; /* Clear existing RTI interrupt state */
00034     CRGINT |= CRG_RTIE; /* Enable RTI interruts */
00035 }

Generated on Sat Apr 10 17:08:02 2004 for BeeOS by doxygen 1.3.6-20040222