My design is referenced by xCORE-200 Multichannel Audio Platform. Now I use a pin on tile 1 for an output. I know the XUD module is on tile 1 and no more than six cores shall execute on it. So I add my code like this in main.xc file in usb_audio_core() function
Code: Select all
/* USB Packet buffering Core */
{
unsigned x;
thread_speed();
//my code
other_chip_conf();
/* Uses same clock-block as I2S */
asm("ldw %0, dp[clk_audio_mclk]":"=r"(x));
asm("setclk res[%0], %1"::"r"(p_for_mclk_count), "r"(x));
//:buffer
buffer(....omit....);
//:
}
Code: Select all
void other_chip_conf(void)
{
/*Right Channel Digital High-Pass Filter Configuration*/
set_gpio_bit(pGpio11a, PT_GPIO_HPFDR, HPFD_ENABLE);
}