Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
flashControl.c File Reference
#include <kernel.h>
#include <device.h>
#include <flash.h>

Functions

devcall flashControl (device *devptr, ushort func, long arg1, long arg2)
 

Detailed Description

Provides various control functions for Flash memory.

Function Documentation

devcall flashControl ( device *  devptr,
ushort  func,
long  arg1,
long  arg2 
)

Control parameters to a FLASH device. Currently supports FLASH_MODE (which returns the mode of the device) and FLASH_STATUS (which will return the value in the status register).

Parameters
*devptrPointer to flash device structure
funcfunction to use
arg1first argument if needed in function
arg2second argument if needed in function
Returns
dependent on function called