forumslader-logger
King Kévin 2016-01-29 11:06:21 +01:00
parent af0bc91916
commit b1a9b811ba
1 changed files with 3 additions and 3 deletions

View File

@ -300,15 +300,15 @@ void cdcacm_setup(void)
rcc_periph_clock_enable(RCC_GPIOA);
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO12);
gpio_clear(GPIOA, GPIO12);
for (uint32_t i = 0; i < 0x800; i++) {
for (uint32_t i = 0; i < 0xa00; i++) {
__asm__("nop");
}
#elif MAPLE_MINI
// disconnect USB D+ using dedicated DISC line/circuit on PB9
rcc_periph_clock_enable(RCC_GPIOB);
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO9);
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO9);
gpio_set(GPIOB, GPIO9);
for (uint32_t i = 0; i < 0x800; i++) {
for (uint32_t i = 0; i < 0xa00; i++) {
__asm__("nop");
}
gpio_clear(GPIOB, GPIO9);