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

crg.c File Reference


Detailed Description

Provides CRG (Clocks and Resets Generator) routines for BeeOS.

Based on information provided in S12CRGV2.pdf by Motorola, Inc. V02.07.

See also:
../include/crg.h

Definition in file crg.c.

#include "../include/beeos.h"
#include "../include/crg.h"
#include "../include/asm/ports.h"

Include dependency graph for crg.c:

Include dependency graph

Go to the source code of this file.

Functions

void rti_init (void)


Function Documentation

void rti_init void   ) 
 

Definition at line 30 of file crg.c.

References CRG_RTIE, CRG_RTIF, CRGFLG, CRGINT, and RTICTL.

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:11 2004 for BeeOS by doxygen 1.3.6-20040222