BeRTOS
|
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. |
Dataflash HW control routines.
Definition in file hw_dataflash.c.
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 56 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 81 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 108 of file hw_dataflash.c.