Contiki 2.5
Macros | Functions
flash-microSD.h File Reference

    MicroSD Card interface definitions
More...

#include "../drv/mspi-drv.h"
#include <stdio.h>
#include <util/delay.h>

Go to the source code of this file.

Macros

#define MICRO_SD_CS   5
 

Functions

uint8_t microSD_init (void)
 Powers on and initialize the microSD / SD-Card. More...
 
uint8_t microSD_read_block (uint32_t addr, uint8_t *buffer)
 This function will read one block (512Byte) of the SD-Card. More...
 
uint8_t microSD_write_block (uint32_t addr, uint8_t *buffer)
 This function will write one block (512Byte) of the SD-Card. More...
 
uint8_t microSD_write_cmd (uint8_t *cmd)
 This function sends a command via SPI to the SD-Card. More...
 

Detailed Description

    MicroSD Card interface definitions
Author
Original Source Code: Ulrich Radig Modified by: Ulf Kulau kulau.nosp@m.@ibr.nosp@m..cs.t.nosp@m.u-bs.nosp@m..de

Definition in file flash-microSD.h.