Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/drivers/flash/flash.c File Reference

#include <config.h>
#include <mc68332.h>
#include <cubeos.h>
#include <stdio.h>
#include <flash.h>

Include dependency graph for flash.c:

Go to the source code of this file.

Defines

#define WAIT   100000

Functions

int FLASH_init ()
 verify the presence of a flash rom in the system. More...

int FLASH_bcopy (void *s1, void *s2, size_t n)
 rewrites the flash with data. More...

int FLASH_CSInfo (unsigned short br, unsigned short or)
 print the contents of a 68332 SIM ChipSelect register set. More...


Variables

unsigned short FLASH_MID
unsigned short FLASH_DID


Detailed Description

Definition in file flash.c.


Define Documentation

#define WAIT   100000
 

Definition at line 22 of file flash.c.

Referenced by FLASH_bcopy.


Function Documentation

int FLASH_bcopy void *    s1,
void *    s2,
size_t    n
 

rewrites the flash with data.

Parameters:
s1  is the source pointer
s2  is the destination pointer
n  is the number of bytes to write

Definition at line 108 of file flash.c.

References LED_OFF, LED_ON, readshort, WAIT, and writeshort.

int FLASH_CSInfo unsigned short    br,
unsigned short    or
 

print the contents of a 68332 SIM ChipSelect register set.

Parameters:
br  is the content of the base address register
or  is the content of the option register

Definition at line 209 of file flash.c.

int FLASH_init  
 

verify the presence of a flash rom in the system.

Parameters:
none 

Definition at line 37 of file flash.c.

References FLASH_CSInfo, FLASH_DID, FLASH_MID, readshort, SIM_CSBARBT, SIM_CSORBT, and writeshort.


Variable Documentation

unsigned short FLASH_DID
 

Definition at line 30 of file flash.c.

Referenced by FLASH_init.

unsigned short FLASH_MID
 

Definition at line 29 of file flash.c.

Referenced by FLASH_init.


Generated on Thu Feb 20 15:38:47 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002