#include "delay.h" #include "sys.h"
int main(void) { RCC->CR|=0x00000003; RCC->CFGR&=0xFFFFFFF0; RCC->AHBENR|=0x1<<17; // RCC->APB2ENR|=RCC_APB2ENR_SYSCFGEN; GPIOA->CRH&=0XFFFFFF0F; GPIOA->CRH|=0X90; //PA9 GPIOA->AFRH=0X50; //AF5 RCC->CFGR |= (uint32_t)RCC_CFGR_MCO_SYSCLK ; while(1); }
|