// Copyright 2025 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.

// Define ports used by the I2S frame-based master functionality in lib_i2s.
// The XN file for the XK-EVK-XU316 shows the association between the native
//   port names and these initialisation constants.
// The datasheet for the XU316-1024-FB265 shows how the ports connect through
//   signals to balls on the device.
// The schematic for the XK-EVK-XU316 board shows the connection between the
//   signals and other parts on the board.
on tile[1]: in port p_mclk =                                PORT_MCLK_IN;
on tile[1]: buffered out port:32 p_lrclk =                  PORT_I2S_LRCLK;
on tile[1]: out port p_bclk =                               PORT_I2S_BCLK;
on tile[1]: buffered out port:32 p_dac[NUM_I2S_LINES] =     {PORT_I2S_DAC_DATA};
on tile[1]: buffered in port:32 p_adc[NUM_I2S_LINES] =      {PORT_I2S_ADC_DATA};
