init.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EXTERN   extern
#define PLLLOCK   0x08
#define PLLSELOFF   0x7F
#define PLLSELON   0x80
#define PLLOFF   0xBF
#define PLLON   0x40
#define PLLDIVISOR   0x03
#define PLLMULTIPLIER   0x09
#define PRDIV8   0x40

Functions

EXTERN void init (void) FPAGE_FE
 The main top level init.


Detailed Description

Definition in file init.h.


Define Documentation

#define EXTERN   extern

Definition at line 71 of file init.h.

#define PLLDIVISOR   0x03

Definition at line 91 of file init.h.

Referenced by initPLL().

#define PLLLOCK   0x08

Definition at line 86 of file init.h.

Referenced by initPLL().

#define PLLMULTIPLIER   0x09

Definition at line 92 of file init.h.

Referenced by initPLL().

#define PLLOFF   0xBF

Definition at line 89 of file init.h.

Referenced by initPLL().

#define PLLON   0x40

Definition at line 90 of file init.h.

Referenced by initPLL().

#define PLLSELOFF   0x7F

Definition at line 87 of file init.h.

Referenced by initPLL().

#define PLLSELON   0x80

Definition at line 88 of file init.h.

Referenced by initPLL().

#define PRDIV8   0x40

Definition at line 95 of file init.h.


Function Documentation

EXTERN void init ( void   ) 

The main top level init.

The main init function to be called from main.c before entering the main loop. This function is simply a delegator to the finer grained special purpose init functions.

Author:
Fred Cooke

Definition at line 63 of file init.c.

References ATOMIC_END, ATOMIC_START, initAllPagedRAM(), initConfiguration(), initECTTimer(), initFlash(), initInterrupts(), initIO(), initPITTimer(), initPLL(), initSCIStuff(), and initVariables().

Referenced by main().

00063            {
00064     ATOMIC_START();             /* Disable ALL interrupts while we configure the board ready for use */
00065     initPLL();                  /* Set up the PLL and use it */
00066     initIO();                   /* TODO make this config dependent. Set up all the pins and modules to be in low power harmless states */
00067     initAllPagedRAM();          /* Copy table and config blocks of data from flash to the paged ram blocks for fast data lookup */
00068     initVariables();            /* Initialise the rest of the running variables etc */
00069     initFlash();                /* TODO, finalise this */
00070     initECTTimer();             /* TODO move this to inside config in an organised way. Set up the timer module and its various aspects */
00071     initPITTimer();             /* TODO ditto... */
00072     initSCIStuff();             /* Setup the sci module(s) that we will use. */
00073     initConfiguration();        /* TODO Set user/feature/config up here! */
00074     initInterrupts();           /* still last, reset timers, enable interrupts here TODO move this to inside config in an organised way. Set up the rest of the individual interrupts */
00075     ATOMIC_END();               /* Re-enable any configured interrupts */
00076 }

Here is the call graph for this function:


Generated on Wed May 26 03:59:56 2010 for FreeEMS by  doxygen 1.5.6