no-OS
app_clocking.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __APP_CLOCKING_H
40 #define __APP_CLOCKING_H
41 
42 #include <stdint.h>
43 #include "adi_hal.h"
44 
45 #if defined(ZU11EG) || defined(FMCOMMS8_ZCU102)
46 #define DEV_REFCLK_A 0
47 #define DEV_SYSREF_A 1
48 #define DEV_REFCLK_B 2
49 #define DEV_SYSREF_B 3
50 #define JESD_REFCLK_TX_OBS_AB 4
51 #define JESD_REFCLK_RX_AB 5
52 #if defined(ZU11EG)
53 #define CORE_CLK_TX_OBS_AB 6
54 #define CORE_CLK_RX_AB 7
55 #define FPGA_SYSREF_TX_OBS_AB 8
56 #define FPGA_SYSREF_RX_AB 9
57 #elif defined(FMCOMMS8_ZCU102)
58 #define FPGA_SYSREF_TX_OBS_AB 6
59 #define FPGA_SYSREF_RX_AB 7
60 #define CORE_CLK_TX_OBS_AB 8
61 #define CORE_CLK_RX_AB 9
62 #endif
63 #else
64 #define DEV_CLK 13
65 #define FMC_CLK 1
66 #define DEV_SYSREF 12
67 #define FMC_SYSREF 3
68 #endif
69 
70 adiHalErr_t clocking_init(uint32_t rx_div40_rate_hz,
71  uint32_t tx_div40_rate_hz,
72  uint32_t rx_os_div40_rate_hz,
73  uint32_t device_clock_khz,
74  uint32_t lmfc_rate_hz);
75 
76 void clocking_deinit(void);
77 
78 extern struct ad9528_dev* ad9528_device;
79 
80 #endif /* __APP_CLOCKING_H */
adi_hal.h
Contains Talise ADI HAL function prototypes type definitions for adi_hal.c.
clocking_init
adiHalErr_t clocking_init(uint32_t rx_div40_rate_hz, uint32_t tx_div40_rate_hz, uint32_t rx_os_div40_rate_hz, uint32_t device_clock_khz, uint32_t lmfc_rate_hz)
Definition: app_clocking.c:99
ad9528_device
struct ad9528_dev * ad9528_device
ad9528_dev
Definition: ad9528.h:480
clocking_deinit
void clocking_deinit(void)
Definition: app_clocking.c:728
adiHalErr_t
adiHalErr_t
Enum of possible Errors Detected by HAL layer to be communicated to ADI APIs.
Definition: adi_hal.h:35