sd.c File Reference

Function library for secure digital memory. More...

#include "sd.h"
#include "cfg/cfg_fat.h"
#include <kern/kfile.h>
#include <fs/fatfs/diskio.h>
#include "hw/hw_sd.h"
#include <drv/timer.h>
#include <fs/fat.h>
#include <cfg/log.h>
#include <cpu/power.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  CardCSD
 Card Specific Data read directly from the card. More...

Typedefs

typedef struct CardCSD CardCSD
 Card Specific Data read directly from the card.

Functions

bool sd_init (KFile *_fd)
 Initializes the SD driver.

Variables

static KFilefd
 SPI communication channel.
static bool sd_status
 Current SD status.

Detailed Description

Function library for secure digital memory.

Version:
Id
sd.c 2734 2009-07-03 13:51:37Z lottaviano
Author:
Francesco Sacchi <batt@develer.com>

Definition in file sd.c.


Function Documentation

bool sd_init ( KFile _fd  ) 

Initializes the SD driver.

Parameters:
_fd A pointer to a kfile where the SD will read/write to.
Returns:
true if initialization succeds, false otherwise.

Definition at line 343 of file sd.c.