
4 Programming Guide
IN THIS CHAPTER
· Getting Started
· Code Structure
· A USB Audio Application (walkthrough)
· Adding Custom Code
The following sections provide a guide on how to program the USB audio software
platform including instructions for building and running programs and creating
your own custom USB audio applications.
4.1 Getting Started
To build, select the
app_usb_aud_l1
or
app_usb_aud_l2
project in the Project Ex-
plorer and click the Build icon.
To install the software, open the XDE (XMOS Development Tools) and follow these
steps:
1. Choose File · Import.
2. Choose General · Existing Projects into Workspace and click Next.
3. Click Browse next to Select archive file and select the file firmware ZIP file.
4.
Make sure the projects you want to import are ticked in the Projects list. Import
all the components and whichever applications you are interested in.
5. Click Finish.
To build, select the
app_usb_aud_l1
or
app_usb_aud_l2
project in the Project Ex-
plorer and click the Build icon.
From the command line, you can follow these steps:
1. To install, unzip the package zip.
2.
To build, change into the
app_usb_aud_l1
or
app_usb_aud_l2
directory and
execute the command:
xmake all
The main Makefile for the project is in the
app_usb_aud_l1
or
app_usb_aud_l2
direc-
tory. This file specifies build options and used modules. The Makefile uses the com-
REV 6.1
Kommentare zu diesen Handbüchern