SJSU One API
Main Page
Modules
Namespaces
Data Structures
Files
File List
Globals
firmware
default
lib
L4_IO
fat
disk
sd_defines.h
Go to the documentation of this file.
1
#ifndef DISIODEFINES_H_
2
#define DISIODEFINES_H_
3
4
#include "
ssp1.h
"
5
#include "
bio.h
"
6
7
8
9
#define SD_SELECT() board_io_sd_cs()
10
#define SD_DESELECT() board_io_sd_ds()
11
#define SD_PRESENT() (!board_io_sd_card_cd_sig())
/* Low means card is present */
12
#define FCLK_SLOW() ssp1_set_max_clock(1)
/* Set slow SPI clock (100k-400k) */
13
#define FCLK_FAST() ssp1_set_max_clock(24)
/* Set fast SPI clock (depends on the CSD) */
14
15
#define xmit_spi(dat) ssp1_exchange_byte(dat)
16
#define rcvr_spi() ssp1_exchange_byte(0xff)
17
18
19
#endif
/* DISIODEFINES_H_ */
bio.h
Provides the map of all Board Pins, and initializes all connected signals of the board.
ssp1.h
Generated by
1.8.11