The /APPLICATIONS/AUDIO-PLAYER/ contains the following files:
Section 6.4.4 “HMI Communication Task Example” on page
19 for more details.
– . / U S E R _ I N T E R F A C E / C O N T R O L L E R / j o y s t i c k _ c o n t r o l l e r . c : H M I u s i n g a j o y s t i c interface as a controller. k
./USER_INTERFACE/GUI/et024006dhu_gui.c: HMI using a LCD screen as a
the MP3 decoding task.
audio, communication interface, memory and navigation explorer. Please refer to section 6.5 “Project Configuration” on page 25 for more information on the configuration files.
The MP3 decoder source files are located in:
A library of the decoder is provided in /UTILS/LIBS/LIBMAD/AT32UC/. ID3 is supported up to version 2.4. The ID3 reader source is located in:
Audio Player API The Audio Interface API is located in:
The Mass Storage Audio Interface can be found in:
./ai_usb_ms.c,h: Mass Storage Audio interface.
./ai_usb_ms_mp3_support.c,h: add support to the MP3 file format in the audio
– . / h o s t _ m a s s _ s t o r a g e _ t a s k . c , h : U S B h o s t m a s s s t o r a g e t a s k .
Refer to Section 5. “Audio Interface API” on page 5 for more details.
HMI Communication Task Example The included firmware implements an HMI example using a joystick and a SPI-driven LCD:
(source code STORAGE/USER
lo c a t e d
All the HMI is based on a pair of files, com_task.[c|h], which implements all mechanisms used to communicate between the internal APIs of the audio player and the user’s HMI. An abstraction layer is used to attach easily all kinds of controller and graphical user interface to this communi- cation task. It has been done to easily port the application to another board.