git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1417 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
b3dc7043a0
commit
0f8d30486b
|
@ -91,6 +91,7 @@ static void termination_handler(eventid_t id) {
|
||||||
if (shelltp1 && chThdTerminated(shelltp1)) {
|
if (shelltp1 && chThdTerminated(shelltp1)) {
|
||||||
chThdWait(shelltp1);
|
chThdWait(shelltp1);
|
||||||
shelltp1 = NULL;
|
shelltp1 = NULL;
|
||||||
|
chThdSleepMilliseconds(10);
|
||||||
cprint("Init: shell on SD1 terminated\n");
|
cprint("Init: shell on SD1 terminated\n");
|
||||||
chSysLock();
|
chSysLock();
|
||||||
chOQResetI(&SD1.d2.oqueue);
|
chOQResetI(&SD1.d2.oqueue);
|
||||||
|
@ -99,6 +100,7 @@ static void termination_handler(eventid_t id) {
|
||||||
if (shelltp2 && chThdTerminated(shelltp2)) {
|
if (shelltp2 && chThdTerminated(shelltp2)) {
|
||||||
chThdWait(shelltp2);
|
chThdWait(shelltp2);
|
||||||
shelltp2 = NULL;
|
shelltp2 = NULL;
|
||||||
|
chThdSleepMilliseconds(10);
|
||||||
cprint("Init: shell on SD2 terminated\n");
|
cprint("Init: shell on SD2 terminated\n");
|
||||||
chSysLock();
|
chSysLock();
|
||||||
chOQResetI(&SD2.d2.oqueue);
|
chOQResetI(&SD2.d2.oqueue);
|
||||||
|
|
Loading…
Reference in New Issue