stm32 USB的CDC类传输掉数据
【MCU实战经验】基于STM32F103C8T6的hart总线调试器设计
求教STM32F103进入STOP模式后用外部中断唤醒的问题
基于STM32F103RCT6的无源蜂鸣器音乐播放(生日快乐歌)
STM32F103c8t6有没有DAC 功能?
STM32F103x中文数据手册
新手求教,为何在我电脑上找不到STM32F1Xx.h文件
金龙107例程汇总(STM32F107)
万利STM32F107VC 原理图
STM32F103 ADC多通道检测必须要DMA吗?
RE:STM32F105 USB HID RCC設定
void RCC_Configuration(void)
{
RCC_DeInit(); // RCC system reset(for debug purpose)
RCC_HSEConfig(RCC_HSE_ON); // Enable HSE
while(RCC_GetFlagStatus(RCC_FLAG_HSERDY) == 0); // wait until the HSI is ready
RCC_SYSCLKConfig(RCC_SYSCLKSource_HSE);
RCC_PREDIV1Config(RCC_PREDIV1_Source_HSE, RCC_PREDIV1_Div2);
RCC_PLLConfig(RCC_PLLSource_PREDIV1, RCC_PLLMul_9);
RCC_PLLCmd(ENABLE);
while(RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == 0); // wait until the PLL is ready
RCC_HCLKConfig(RCC_SYSCLK_Div1); // HCLK = SYSCLK
RCC_PCLK1Config(RCC_HCLK_Div2); // PCLK1 = HCLK/2
RCC_PCLK2Config(RCC_HCLK_Div1); // PCLK2 = HCLK
RCC_ADCCLKConfig(RCC_PCLK2_Div8); // ADCCLK = PCLK2/8
FLASH_SetLatency(FLASH_Latency_2);
FLASH_HalfCycleAccessCmd(FLASH_HalfCycleAccess_Disable);
FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable);
RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK); // Select PLL as system clock source
RCC_PREDIV2Config(RCC_PREDIV2_Div4); // 16MHz / 4 = 4MHz
RCC_PLL2Config(RCC_PLL2Mul_10); // 4MHz * 10 = 40MHz
RCC_PLL2Cmd(ENABLE);
while(RCC_GetFlagStatus(RCC_FLAG_PLL2RDY) == RESET);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_CAN1, ENABLE);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_CAN2, ENABLE);
RCC_OTGFSCLKConfig(RCC_OTGFSCLKSource_PLLVCO_Div3); // Select USBCLK source
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_OTG_FS, ENABLE) ; // Enable the USB clock
RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);
}
RE:STM32F105 USB HID RCC設定