lz过时啦,新的例程就这这么写的,哈哈
- /**
- * [url=home.php?mod=space&uid=247401]@brief[/url] Unlock the protected registers
- *
- * @details To unlock the protected register to allow write access
- *
- */
- static __INLINE void SYS_UnlockReg(void)
- {
- do
- {
- SYS->REGWRPROT = 0x59;
- SYS->REGWRPROT = 0x16;
- SYS->REGWRPROT = 0x88;
- }while(SYS->REGWRPROT == 0);
- }
|