lib_udsp-card_board_support contains board specific hardware configuration code and simple bring-up sequence for the uDSP-Card development board, based on the XMOS XU316. For detailed hardware information, schematics, and PCB files, see the hardware repository: hw_udsp-card
This repository accompanies the blog post "uDSP-Card: XCORE.AI Development Board for Portable Applications".
Add this library to your XMOS project by including it in your CMakeLists.txt:
# Add module and set hardware target
set(APP_DEPENDENT_MODULES "..."
"lib_udsp_card_board_support(1.0.0)"
"...")
set(APP_HW_TARGET udsp-card.xn)Simple bring-up example within a main.xc file:
#include <xs1.h>„
#include <platform.h>
#include "udsp_board_board.h"
int main() {
// Distribute threads
par{
// Tile 0
on tile[0]: {
// Initialize the board on thread 0!
udsp_card_devices_init();
}
// Tile 1
on tile[1]: {
// Handle some audio I2S app on thread 1
some_audio_app();
}
}
}- XMOS XTC Tools: 15.3.1 or later
lib_logging: Logging and debug utilitieslib_sw_pll: Software PLL for audio clock generationlib_io_i2c: C based I²C library
This project is licensed under the GNU General Public License v3.0.