15,9 → 15,10 |
// SPI port definitions // Adjust this according to the |
#define SPI_PxSEL P1SEL // MSP430 device being used. |
#define SPI_PxSEL2 P1SEL2 // Adjust the values for the chosen |
#define SPI_PxDIR P1DIR // interfaces, according to the pin |
#define SPI_PxIN P1IN // assignments indicated in the |
#define SPI_PxOUT P1OUT // chosen MSP430 device datasheet. |
#define SPI_PxREN P1REN // interfaces, according to the pin |
#define SPI_PxDIR P1DIR // assignments indicated in the |
#define SPI_PxIN P1IN // chosen MSP430 device datasheet. |
#define SPI_PxOUT P1OUT |
#define SPI_SIMO BIT7 |
#define SPI_SOMI BIT6 |
#define SPI_UCLK BIT5 |
49,6 → 50,9 |
#define MMC_CS_LOW() MMC_CS_PxOUT &= ~MMC_CS // Card Select |
#define MMC_CS_HIGH() while(!halSPITXDONE); MMC_CS_PxOUT |= MMC_CS // Card Deselect |
|
// Chip Detect |
#define MMC_CD_STAT() MMC_CD_PxIN & MMC_CD |
|
//---------------------------------------------------------------------------- |
// VS10XX port selections. Select which port will be used for the interface |
//---------------------------------------------------------------------------- |