- RCC->GCCR |= ((uint32_t)RCC_GCCR_HSIEN);
-
- /* Wait till HSE is ready and if Time out is reached exit */
- do
- {
- HIEStatus = RCC->GCCR & RCC_GCCR_HSISTB;
- StartUpCounter++;
- } while((HIEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT));
-
- if ((RCC->GCCR & RCC_GCCR_HSISTB) != RESET)
- {
- HIEStatus = (uint32_t)0x01;
- }
- else
- {
- HIEStatus = (uint32_t)0x00;
- }
|