examples/benchmark/kernel-only_arm/hw/hw_dataflash.c File Reference

Dataflash HW control routines. More...

#include "hw/hw_dataflash.h"
#include <cfg/compiler.h>
#include <cfg/module.h>
#include <cfg/macros.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.

Version:
Id
hw_dataflash.c 2926 2009-09-10 12:45:28Z lottaviano
Author:
Francesco Sacchi <batt@develer.com>

Definition in file examples/benchmark/kernel-only_arm/hw/hw_dataflash.c.


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 examples/benchmark/kernel-only_arm/hw/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 examples/benchmark/kernel-only_arm/hw/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 examples/benchmark/kernel-only_arm/hw/hw_dataflash.c.