mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 07:19:28 -05:00
Use UM10503 (user manual) suggestion for SD delay config.
This commit is contained in:
parent
56a7b841cb
commit
72cc6569ca
@ -580,6 +580,11 @@ void sdc_lld_start(SDCDriver *sdcp) {
|
|||||||
sdio_reset();
|
sdio_reset();
|
||||||
sdio_reset_card();
|
sdio_reset_card();
|
||||||
|
|
||||||
|
// UM10503 recommendation
|
||||||
|
LPC_SCU->SDDELAY =
|
||||||
|
(0x8 << 0)
|
||||||
|
| (0xf << 8)
|
||||||
|
;
|
||||||
LPC_SDMMC->CTRL =
|
LPC_SDMMC->CTRL =
|
||||||
(1U << 4) /* INT_ENABLE */
|
(1U << 4) /* INT_ENABLE */
|
||||||
| (1U << 25) /* USE_INTERNAL_DMAC */
|
| (1U << 25) /* USE_INTERNAL_DMAC */
|
||||||
|
Loading…
Reference in New Issue
Block a user