File tree Expand file tree Collapse file tree
generic_stm32f103c/wirish
generic_stm32f103r8/wirish
generic_stm32f103r/wirish
generic_stm32f103t/wirish
generic_stm32f103v/wirish
generic_stm32f103z/wirish Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace wirish {
8787 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_OUTPUT_PP);
8888 gpio_write_bit (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit ,0 );
8989
90- for (volatile unsigned int i=0 ;i<256 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
90+ for (volatile unsigned int i=0 ;i<512 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
9191 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_INPUT_FLOATING);
9292#endif
9393 Serial.begin ();// Roger Clark. Changed SerialUSB to Serial for Arduino sketch compatibility
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace wirish {
8787 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_OUTPUT_PP);
8888 gpio_write_bit (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit ,0 );
8989
90- for (volatile unsigned int i=0 ;i<256 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
90+ for (volatile unsigned int i=0 ;i<512 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
9191 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_INPUT_FLOATING);
9292#endif
9393
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace wirish {
8787 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_OUTPUT_PP);
8888 gpio_write_bit (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit ,0 );
8989
90- for (volatile unsigned int i=0 ;i<256 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
90+ for (volatile unsigned int i=0 ;i<512 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
9191 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_INPUT_FLOATING);
9292#endif
9393 Serial.begin ();// Roger Clark. Changed SerialUSB to Serial for Arduino sketch compatibility
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace wirish {
8787 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_OUTPUT_PP);
8888 gpio_write_bit (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit ,0 );
8989
90- for (volatile unsigned int i=0 ;i<256 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
90+ for (volatile unsigned int i=0 ;i<512 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
9191 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_INPUT_FLOATING);
9292#endif
9393 Serial.begin ();// Roger Clark. Changed SerialUSB to Serial for Arduino sketch compatibility
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ namespace wirish {
8888 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_OUTPUT_PP);
8989 gpio_write_bit (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit ,0 );
9090
91- for (volatile unsigned int i=0 ;i<256 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
91+ for (volatile unsigned int i=0 ;i<512 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
9292 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_INPUT_FLOATING);
9393#endif
9494 Serial.begin ();// Roger Clark. Changed SerialUSB to Serial for Arduino sketch compatibility
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ namespace wirish {
8989 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_OUTPUT_PP);
9090 gpio_write_bit (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit ,0 );
9191
92- for (volatile unsigned int i=0 ;i<256 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
92+ for (volatile unsigned int i=0 ;i<512 ;i++);// Only small delay seems to be needed, and USB pins will get configured in Serial.begin
9393 gpio_set_mode (PIN_MAP[PA12].gpio_device , PIN_MAP[PA12].gpio_bit , GPIO_INPUT_FLOATING);
9494#endif
9595
You can’t perform that action at this time.
0 commit comments