git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15179 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
90d97089df
commit
8320912635
|
@ -311,19 +311,17 @@ int main(void) {
|
||||||
/* Board-dependent setup code.*/
|
/* Board-dependent setup code.*/
|
||||||
portab_setup();
|
portab_setup();
|
||||||
|
|
||||||
|
/* Starting a serial port for the shell, initializing other streams too.*/
|
||||||
|
sdStart(&PORTAB_SD1, NULL);
|
||||||
|
nullObjectInit(&nullstream);
|
||||||
|
|
||||||
#if defined(DEMO_USE_FATFS)
|
#if defined(DEMO_USE_FATFS)
|
||||||
/* Activates the SDC driver using default configuration.*/
|
/* Activates the SDC driver using default configuration.*/
|
||||||
sdcStart(&PORTAB_SDCD1, NULL);
|
sdcStart(&PORTAB_SDCD1, NULL);
|
||||||
|
|
||||||
/* Activates the card insertion monitor.*/
|
/* Activates the card insertion monitor.*/
|
||||||
tmr_init(&PORTAB_SDCD1);
|
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,
|
/* Initializing an overlay VFS object overlaying a FatFS driver,
|
||||||
no need for names, both are root.*/
|
no need for names, both are root.*/
|
||||||
drvOverlayObjectInit(&vfs_root, drvFatFSInit(""), "");
|
drvOverlayObjectInit(&vfs_root, drvFatFSInit(""), "");
|
||||||
|
|
Loading…
Reference in New Issue