forked from PAWPAW-Mirror/lib_xua
Fixes for sync mode related build warnings/errors
This commit is contained in:
@@ -10,9 +10,6 @@
|
|||||||
#include "xud.h"
|
#include "xud.h"
|
||||||
#include "testct_byref.h"
|
#include "testct_byref.h"
|
||||||
|
|
||||||
on tile[0] : out port p_test = XS1_PORT_1A;
|
|
||||||
int tog = 0;
|
|
||||||
|
|
||||||
#if XUA_HID_ENABLED
|
#if XUA_HID_ENABLED
|
||||||
#include "xua_hid_report.h"
|
#include "xua_hid_report.h"
|
||||||
#include "user_hid.h"
|
#include "user_hid.h"
|
||||||
@@ -576,8 +573,6 @@ void XUA_Buffer_Ep(register chanend c_aud_out,
|
|||||||
asm volatile("getts %0, res[%1]" : "=r" (mclk_pt) : "r" (p_off_mclk));
|
asm volatile("getts %0, res[%1]" : "=r" (mclk_pt) : "r" (p_off_mclk));
|
||||||
outuint(c_swpll_update, mclk_pt);
|
outuint(c_swpll_update, mclk_pt);
|
||||||
outct(c_swpll_update, XS1_CT_END);
|
outct(c_swpll_update, XS1_CT_END);
|
||||||
p_test <: tog;
|
|
||||||
tog = !tog;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -292,16 +292,18 @@ int SoftPllUpdate(tileref tile, unsigned short mclk_pt, unsigned short mclk_pt_l
|
|||||||
#endif
|
#endif
|
||||||
void XUA_SoftPll(tileref tile, server interface SoftPll_if i_softPll, chanend c_update)
|
void XUA_SoftPll(tileref tile, server interface SoftPll_if i_softPll, chanend c_update)
|
||||||
{
|
{
|
||||||
|
#if (XUA_SYNCMODE == XUA_SYNCMODE_SYNC)
|
||||||
unsigned ds_out;
|
unsigned ds_out;
|
||||||
timer tmr;
|
timer tmr;
|
||||||
int time;
|
int time;
|
||||||
unsigned mclk_pt;
|
unsigned mclk_pt;
|
||||||
unsigned short mclk_pt_last;
|
unsigned short mclk_pt_last;
|
||||||
|
tmr :> time;
|
||||||
|
#endif
|
||||||
struct SoftPllState pllState;
|
struct SoftPllState pllState;
|
||||||
int running = 0;
|
int running = 0;
|
||||||
int firstUpdate = 1;
|
int firstUpdate = 1;
|
||||||
|
|
||||||
tmr :> time;
|
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -598,7 +598,9 @@ int main()
|
|||||||
#endif /* XUA_USB_EN */
|
#endif /* XUA_USB_EN */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if(XUA_USE_APP_PLL)
|
||||||
on tile[AUDIO_IO_TILE]: XUA_SoftPll(tile[0], i_softPll, c_swpll_update);
|
on tile[AUDIO_IO_TILE]: XUA_SoftPll(tile[0], i_softPll, c_swpll_update);
|
||||||
|
#endif
|
||||||
on tile[AUDIO_IO_TILE]:
|
on tile[AUDIO_IO_TILE]:
|
||||||
{
|
{
|
||||||
/* Audio I/O task, includes mixing etc */
|
/* Audio I/O task, includes mixing etc */
|
||||||
|
|||||||
Reference in New Issue
Block a user