hw_dataflash.h File Reference

Dataflash HW control routines (interface). More...

#include <cfg/compiler.h>

Go to the source code of this file.


Functions

void dataflash_hw_init (void)
 Data flash init function.
void dataflash_hw_setCS (bool enable)
 Chip Select drive.
void dataflash_hw_setReset (bool enable)
 Reset data flash memory.

Detailed Description

Dataflash HW control routines (interface).

Version:
Id
hw_dataflash.h 1312 2008-05-20 16:54:52Z asterix
Author:
Francesco Sacchi <batt@develer.com>

Definition in file hw_dataflash.h.


Function Documentation

void dataflash_hw_init ( void   ) 

Data flash init function.

This function provide to initialize all that needs to drive a dataflash memory. Generaly needs to init pins to drive a CS line and reset line.

Definition at line 57 of file hw_dataflash.c.

void dataflash_hw_setCS ( bool  enable  ) 

Chip Select drive.

This function enable or disable a CS line. You must implement this function comply to a dataflash memory datasheet to allow the drive to enable a memory when enable flag is true, and disable it when is false.

Definition at line 82 of file hw_dataflash.c.

void dataflash_hw_setReset ( bool  enable  ) 

Reset data flash memory.

This function provide to send reset signal to dataflash memory. You must impement it comly to a dataflash memory datasheet to allow the drive to set a reset pin when enable flag is true, and disable it when is false.

Definition at line 109 of file hw_dataflash.c.