Embedded Xinu Operating System
An ongoing research project and educational operating system.
|
#include <kernel.h>
#include <device.h>
#include <flash.h>
Functions | |
devcall | flashControl (device *devptr, ushort func, long arg1, long arg2) |
Provides various control functions for Flash memory.
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).
*devptr | Pointer to flash device structure |
func | function to use |
arg1 | first argument if needed in function |
arg2 | second argument if needed in function |