方法一: Using bit-band access this function will be coded as follows: void RCC_PLLCmd(FunctionalState NewState) { *(vu32 *) CR_PLLON_BB = (u32)NewState; }
/* Alias word address of PLLON bit */ #define PLLON_BitNumber 0x18 #define CR_PLLON_BB (PERIPH_BB_BASE + (CR_OFFSET * 32) + (PLLON_BitNumber * 4))
文章评论(0条评论)
登录后参与讨论