Tidy defines

This commit is contained in:
Ed
2024-01-09 09:10:14 +00:00
parent 3003ce7241
commit 87a105d8f6
2 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,9 @@
// Copyright 2024 XMOS LIMITED.
// 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 */
/* Note: Not yet implemented for Synchronous mode */
#ifdef __XS3A__
@@ -11,7 +14,7 @@
#define USE_SW_PLL 0
#endif /* __XS3A__ */
#if USE_SW_PLL
extern "C"
{
#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.
*/
unsigned InitSWPLL(sw_pll_state_t &sw_pll, unsigned mClk);
#endif /* USE_SW_PLL */
#endif /* _SW_PLL_WRAPPPER_H_ */

View File

@@ -5,12 +5,9 @@
#include <print.h>
#include "sw_pll_wrapper.h"
#include "xua.h"
#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 */
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 */
}
#endif
#endif /* USE_SW_PLL */