From: Nathael Pajani Date: Thu, 10 Nov 2022 11:17:08 +0000 (+0100) Subject: Update uSD card example X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=f17b4c9a1b3493fff51fa2c07cf07f2db8668605;p=soft%2Flpc122x%2Fexamples Update uSD card example --- diff --git a/usd_card/main.c b/usd_card/main.c index 170c3fe..84e4cac 100644 --- a/usd_card/main.c +++ b/usd_card/main.c @@ -76,21 +76,6 @@ const struct pio_config common_pins[] = { 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; @@ -122,11 +107,6 @@ struct sdmmc_card micro_sd = { .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];