git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15179 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-12-03 08:21:26 +00:00
parent 90d97089df
commit 8320912635
1 changed files with 4 additions and 6 deletions

View File

@ -311,19 +311,17 @@ int main(void) {
/* Board-dependent setup code.*/
portab_setup();
/* Starting a serial port for the shell, initializing other streams too.*/
sdStart(&PORTAB_SD1, NULL);
nullObjectInit(&nullstream);
#if defined(DEMO_USE_FATFS)
/* Activates the SDC driver using default configuration.*/
sdcStart(&PORTAB_SDCD1, NULL);
/* Activates the card insertion monitor.*/
tmr_init(&PORTAB_SDCD1);
#endif
/* Starting a serial port for the shell, initializing other streams too.*/
sdStart(&PORTAB_SD1, NULL);
nullObjectInit(&nullstream);
#if defined(DEMO_USE_FATFS)
/* Initializing an overlay VFS object overlaying a FatFS driver,
no need for names, both are root.*/
drvOverlayObjectInit(&vfs_root, drvFatFSInit(""), "");