git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6454 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5b6fb4adf4
commit
ee44b486e5
|
@ -136,6 +136,7 @@ static const ShellConfig shell_cfg1 = {
|
||||||
* Application entry point.
|
* Application entry point.
|
||||||
*/
|
*/
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
static THD_WORKING_AREA(wa_usb_lld_pump, STM32_USB_OTG_THREAD_STACK_SIZE);
|
||||||
thread_t *shelltp = NULL;
|
thread_t *shelltp = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -164,6 +165,8 @@ int main(void) {
|
||||||
* Note, a delay is inserted in order to not have to disconnect the cable
|
* Note, a delay is inserted in order to not have to disconnect the cable
|
||||||
* after a reset.
|
* after a reset.
|
||||||
*/
|
*/
|
||||||
|
chThdCreateStatic(wa_usb_lld_pump, sizeof(wa_usb_lld_pump),
|
||||||
|
STM32_USB_OTG_THREAD_PRIO, usb_lld_pump, serusbcfg.usbp);
|
||||||
usbDisconnectBus(serusbcfg.usbp);
|
usbDisconnectBus(serusbcfg.usbp);
|
||||||
chThdSleepMilliseconds(1000);
|
chThdSleepMilliseconds(1000);
|
||||||
usbStart(serusbcfg.usbp, &usbcfg);
|
usbStart(serusbcfg.usbp, &usbcfg);
|
||||||
|
|
|
@ -24,11 +24,6 @@
|
||||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
<linkedResources>
|
<linkedResources>
|
||||||
<link>
|
|
||||||
<name>board</name>
|
|
||||||
<type>2</type>
|
|
||||||
<locationURI>CHIBIOS/boards/OLIMEX_STM32_E407</locationURI>
|
|
||||||
</link>
|
|
||||||
<link>
|
<link>
|
||||||
<name>os</name>
|
<name>os</name>
|
||||||
<type>2</type>
|
<type>2</type>
|
||||||
|
|
|
@ -457,7 +457,8 @@ static msg_t Thread1(void *arg) {
|
||||||
* Application entry point.
|
* Application entry point.
|
||||||
*/
|
*/
|
||||||
int main(void) {
|
int main(void) {
|
||||||
thread_t *shelltp = NULL;
|
static THD_WORKING_AREA(wa_usb_lld_pump, STM32_USB_OTG_THREAD_STACK_SIZE);
|
||||||
|
thread_t *shelltp = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* System initializations.
|
* System initializations.
|
||||||
|
@ -480,6 +481,8 @@ thread_t *shelltp = NULL;
|
||||||
* Note, a delay is inserted in order to not have to disconnect the cable
|
* Note, a delay is inserted in order to not have to disconnect the cable
|
||||||
* after a reset.
|
* after a reset.
|
||||||
*/
|
*/
|
||||||
|
chThdCreateStatic(wa_usb_lld_pump, sizeof(wa_usb_lld_pump),
|
||||||
|
STM32_USB_OTG_THREAD_PRIO, usb_lld_pump, serusbcfg.usbp);
|
||||||
usbDisconnectBus(serusbcfg.usbp);
|
usbDisconnectBus(serusbcfg.usbp);
|
||||||
chThdSleepMilliseconds(1500);
|
chThdSleepMilliseconds(1500);
|
||||||
usbStart(serusbcfg.usbp, &usbcfg);
|
usbStart(serusbcfg.usbp, &usbcfg);
|
||||||
|
|
Loading…
Reference in New Issue