摘要: #include "rng.h"void RNG_Config(void){ RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_RNG,ENABLE); RNG_Cmd(ENABLE);}uint32_t GetRandNum(void){ uint32_t rand; while(!RNG_GetFlagStatus(RNG_FLAG_DRDY)); rand=RNG_... 阅读全文
posted @ 2014-03-02 15:57 tofixer 阅读(956) 评论(0) 推荐(0) 编辑