*
* $Log: cy2239x.c,v $
* Revision 1.3 2006/01/23 17:32:11 haraldkipp
* Avoid hang-ups caused by debug leftovers.
*
* Revision 1.2 2006/01/05 16:51:06 haraldkipp
* Several new functions added to query and modify the clock settings.
*
* Revision 1.1 2005/10/24 10:21:57 haraldkipp
* Initial check in.
*
*
*
|
Defines |
|
#define | I2C_SLA_PLL 0x69 |
| | I2C address.
|
| #define | NUT_PLL_FREF 25000000UL |
| | Base frequency.
|
Functions |
| int | Cy2239xGetPll (int clk) |
| | Get the PLL connected to the specified output.
|
| int | Cy2239xSetPll (int clk, int pll) |
| | Connect a specified PLL to a specified output.
|
| int | Cy2239xGetDivider (int clk, int fctrl) |
| | Get the current divider value of the specified output.
|
| int | Cy2239xSetDivider (int clk, int sel, int val) |
| | Set the divider value of the specified output.
|
| int | Cy2239xPllEnable (int pll, int fctrl, int ena) |
| | Enable or disable a specified PLL.
|
| u_long | Cy2239xPllGetFreq (int pll, int fctrl) |
| | Get the current frequency of a specified PLL.
|
| int | Cy2239xPllSetFreq (int pll, int fctrl, u_int pval, u_int poff, u_int qval, u_int fval) |
| | Set the frequency of a specified PLL.
|
| u_long | Cy2239xGetFreq (int clk, int fctrl) |
| | Get the frequency of a specified output.
|