* File Name : stm32f10x_rcc.h
line 220 #define RCC_FLAG_HSIRDY ((u8)0x20) #define RCC_FLAG_HSERDY ((u8)0x31) #define RCC_FLAG_PLLRDY ((u8)0x39)
其中有这样的应用: /* Get the flag position */ tmp = RCC_FLAG & FLAG_Mask;/* FLAG_Mask = 0x1F */ 与上面三个值对应的是: RCC_FLAG_HSIRDY 0x20 &0x1F = 0x00(0); RCC_FLAG_HSERDY 0x31 &0x1F = 0x11(17); RCC_FLAG_PLLRDY 0x39 &0x1F = 0x19(25);
这与reference manual有冲突.看图: 应该是: #define RCC_FLAG_HSIRDY ((u8)0x21)
|