ARRAY_LAST_PIO,
};
-const struct pio_config mmc_spi_pins[] = {
- /* SPI : uSD card */
- { LPC_SSP0_SCLK_PIO_0_14, LPC_IO_DIGITAL },
- { LPC_SSP0_MOSI_PIO_0_17, LPC_IO_DIGITAL },
- { LPC_SSP0_MISO_PIO_0_16, LPC_IO_DIGITAL },
- ARRAY_LAST_PIO,
-};
-
-const struct pio_config mmc_init_pins[] = {
- { LPC_GPIO_0_14, LPC_IO_DIGITAL },
- { LPC_GPIO_0_17, LPC_IO_DIGITAL },
- { LPC_GPIO_0_16, LPC_IO_DIGITAL },
- ARRAY_LAST_PIO,
-};
-
const struct pio status_led_green = LPC_GPIO_1_4;
const struct pio status_led_red = LPC_GPIO_1_5;
.card_type = MMC_CARDTYPE_UNKNOWN,
.block_size = 64,
.chip_select = LPC_GPIO_0_15,
- .sclk = LPC_GPIO_0_14,
- .mosi = LPC_GPIO_0_17,
- .miso = LPC_GPIO_0_16,
- .pin_cfg_mode_spi = (struct pio_config*)mmc_spi_pins,
- .pin_cfg_mode_gpio = (struct pio_config*)mmc_init_pins,
};
#define MMC_BUF_SIZE 512
uint8_t mmc_data[MMC_BUF_SIZE];