forked from PAWPAW-Mirror/lib_xua
Tidy defines
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
// Copyright 2024 XMOS LIMITED.
|
// Copyright 2024 XMOS LIMITED.
|
||||||
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||||
|
|
||||||
|
#ifndef _SW_PLL_WRAPPPER_H_
|
||||||
|
#define _SW_PLL_WRAPPPER_H_
|
||||||
|
|
||||||
/* By default we use SW_PLL for Digital Rx configs running on XCORE-AI */
|
/* By default we use SW_PLL for Digital Rx configs running on XCORE-AI */
|
||||||
/* Note: Not yet implemented for Synchronous mode */
|
/* Note: Not yet implemented for Synchronous mode */
|
||||||
#ifdef __XS3A__
|
#ifdef __XS3A__
|
||||||
@@ -11,7 +14,7 @@
|
|||||||
#define USE_SW_PLL 0
|
#define USE_SW_PLL 0
|
||||||
#endif /* __XS3A__ */
|
#endif /* __XS3A__ */
|
||||||
|
|
||||||
|
#if USE_SW_PLL
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include "sw_pll.h"
|
#include "sw_pll.h"
|
||||||
@@ -56,3 +59,6 @@ void do_sw_pll_phase_frequency_detector_dig_rx( unsigned short mclk_time_stamp,
|
|||||||
* \param mClk The current nominal mClk frequency.
|
* \param mClk The current nominal mClk frequency.
|
||||||
*/
|
*/
|
||||||
unsigned InitSWPLL(sw_pll_state_t &sw_pll, unsigned mClk);
|
unsigned InitSWPLL(sw_pll_state_t &sw_pll, unsigned mClk);
|
||||||
|
|
||||||
|
#endif /* USE_SW_PLL */
|
||||||
|
#endif /* _SW_PLL_WRAPPPER_H_ */
|
||||||
@@ -5,12 +5,9 @@
|
|||||||
#include <print.h>
|
#include <print.h>
|
||||||
|
|
||||||
#include "sw_pll_wrapper.h"
|
#include "sw_pll_wrapper.h"
|
||||||
|
#include "xua.h"
|
||||||
|
|
||||||
#if USE_SW_PLL
|
#if USE_SW_PLL
|
||||||
extern "C"
|
|
||||||
{
|
|
||||||
#include "sw_pll.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Pointer to sw_pll struct to allow it to be used in separate SDM thread */
|
/* Pointer to sw_pll struct to allow it to be used in separate SDM thread */
|
||||||
unsafe
|
unsafe
|
||||||
@@ -212,4 +209,4 @@ void disable_sigma_delta(chanend c_sigma_delta)
|
|||||||
inuint(c_sigma_delta); /* Wait for ACK so we know reg write is complete */
|
inuint(c_sigma_delta); /* Wait for ACK so we know reg write is complete */
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* USE_SW_PLL */
|
||||||
|
|||||||
Reference in New Issue
Block a user