evmdm642_apll.c
来自「ti dm642 board library, good for dm642 d」· C语言 代码 · 共 28 行
C
28 行
/*
* Copyright 2004 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evmdm642_apll.c ========
* Analog PLL control for the EVMDM642
*/
#include <csl.h>
#include "evmdm642.h"
#include "evmdm642_apll.h"
/* Write to the configuration register on the analog PLL */
void EVMDM642_APLL_rset(Uint16 data)
{
/* Force a clear of the transmit complete bit */
EVMDM642_rset(EVMDM642_ISR, 0x20);
/* Write data to the APLL */
*((volatile Uint32 *)(EVMDM642_SYNC_BASE + 4)) = data;
/* Wait for transmission to complete */
while ((EVMDM642_rget(EVMDM642_ISR) & 0x20) == 0);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?