Browse Source

Update main.c

nousb
Piotr Wilkoń 2 years ago
committed by GitHub
parent
commit
06a55e5143
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions
  1. +0
    -10
      Src/main.c

+ 0
- 10
Src/main.c View File

@ -213,16 +213,6 @@ int main(void)
SysTick_init();
//force usb re-enumeration after reset
RCC->APB2ENR |= RCC_APB2ENR_IOPAEN; //pull D+ to ground for a moment
GPIOA->CRH |= GPIO_CRH_MODE12_1;
GPIOA->CRH &= ~GPIO_CRH_CNF12;
GPIOA->BSRR = GPIO_BSRR_BR12;
uint32_t t = ticks + 10;
while(t > ticks);;
GPIOA->CRH &= ~GPIO_CRH_MODE12;
GPIOA->CRH |= GPIO_CRH_CNF12_0;
/* USER CODE END SysInit */


Loading…
Cancel
Save