Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lib_udsp-card_board_support

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".

Getting Started

1. Add to Your Project

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)

2. Basic Usage

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();
        }
    }
}

Required Tools

Required Libraries (Dependencies)

  • lib_logging: Logging and debug utilities
  • lib_sw_pll: Software PLL for audio clock generation
  • lib_io_i2c: C based I²C library

License

This project is licensed under the GNU General Public License v3.0.

Contributors

Languages