Decrease sleep time on boot for USB CDC targets (#126)
- Following nanoframework/nf-interpreter#1635. ***ALL***
This commit is contained in:
Родитель
4fc299d152
Коммит
e1a6ccdb46
|
@ -55,7 +55,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset.
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset.
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset.
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset.
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset.
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ int main(void) {
|
|||
// Activates the USB driver and then the USB bus pull-up on D+.
|
||||
// Note, a delay is inserted in order to not have to disconnect the cable after a reset
|
||||
usbDisconnectBus(serusbcfg.usbp);
|
||||
chThdSleepMilliseconds(1500);
|
||||
chThdSleepMilliseconds(100);
|
||||
usbStart(serusbcfg.usbp, &usbcfg);
|
||||
usbConnectBus(serusbcfg.usbp);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче