Request AudioReQuest N.Series Instrukcja Obsługi Strona 51

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 62
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 50
USB Audio Design Guide 51/61
/* MIDI IO / IAP */
on stdc ore [ AUDIO _ IO_CO R E ]:
{
thre ad_sp e ed ();
# i fde f MIDI
usb _midi ( p_m idi_rx , p_midi_tx , clk_midi , c_midi , 0, null , null , null ,
> n ull ) ;
# else
iAP ( c_iap , null , p_i2c_scl , p_i2c _sda ) ;
# e ndi f
}
# e ndi f
4.4 Adding Custom Code
The flexibility of the USB audio solution means that you can modify the reference
applications to change the feature set or add extra functionality. Any part of the
software can be altered with the exception of the XUD library.
The reference designs have been verified against a variety of host OS types, across
different samples rates. However, modifications to the code may invalidate the
results of this verification and you are strongly encouraged to retest the resulting
software.
The general steps are:
1.
Make a copy of the eclipse project or application directory (
app_usb_aud_l1
or
app_usb_aud_l2
) you wish to base your code on, to a separate directory with a
different name.
2.
Make a copy of any modules you wish to alter (most of the time you probably
do not want to do this). Update the Makefile of your new application to use
these new custom modules.
3.
Make appropriate changes to the code, rebuild and reflash the device for testing.
Once you have made a copy, you need to:
1.
Provide a
.xn
file for your board (updating the TARGET variable in the Makefile
appropriately).
2. Update device_defines.h with the specific defines you wish to set.
3. Update main.xc.
4. Add any custom code in other files you need.
The following sections show some example changes with a high level overview of
how to change the code.
REV 6.1
Przeglądanie stron 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 61 62

Komentarze do niniejszej Instrukcji

Brak uwag