5 Kasım 2020 Perşembe

STM32F072RB - RCC Clock Ayarları (48 MHz)

 

void RCC_Init()
{	
	RCC->CFGR	|= RCC_CFGR_MCOPRE_DIV1 | RCC_CFGR_MCO_HSI48 | RCC_CFGR_PPRE_DIV1  | RCC_CFGR_SW_HSI48 | RCC_CFGR_SWS_HSI48;
	RCC->CR2	|= RCC_CR2_HSI48ON;
	while(!RCC->CR2 & RCC_CR2_HSI48RDY);	
}