fix port
This commit is contained in:
parent
af0bc91916
commit
b1a9b811ba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue