The "GR-PEACH_Audio_Playback_7InchLCD_Sample" is a sample code that can provides high-resolution audio playback of FLAC format files. It also allows the user to audio-playback control functions such as play, pause, and stop by manipulating key switches.

Dependencies:   GR-PEACH_video R_BSP TLV320_RBSP USBHost_custom

Fork of GR-PEACH_Audio_Playback_Sample by Renesas

Note

For a sample program of without LCD Board, please refer to GR-PEACH_Audio_Playback_Sample.

Introduction

The "GR-PEACH_Audio_Playback_7InchLCD_Sample" is a sample code that can provides high-resolution audio playback of FLAC format files. It also allows the user to audio-playback control functions such as play, pause, and stop by manipulating key switches.

1. Overview of the Sample Code

1.1 Software Block Diagram

Figure 1.1 shows the software block diagram.

/media/uploads/1050186/lcd_figure1_1.png

1.2 Pin Definitions

Table 1.1 shows the pins used in this sample code.

/media/uploads/1050186/lcd_table1_1.png

2. Sample Code Operating Environment

In order to operate this sample code, GR-PEACH, Audio Camera Shield and 7.1 inch LCD Shield must be needed. For details on Audio Camera Shield and 7.1 inch LCD Shield, please refer to the following links, respectively:

In this section, it is described that how board is configured and to control audio playback via command line and touch screen.

2.1 Operating Environment

Figure 2.1 shows the overview of the operating environment for this sample code.

/media/uploads/1050186/lcd_figure2_1.png

Figure 2.2 and 2.3 show how to configure GR-PEACH, Audio Camera Shield and 7.1 inch LCD shield when using USB0 and USB1, respectively.

/media/uploads/1050186/lcd_figure2_2.png /media/uploads/1050186/lcd_figure2_3.png

Table 2.1 lists the overview of Graphical User Interface (GUI) of this sample code.

/media/uploads/1050186/lcd_table2_1.png

2.2 List of User Operations

Table 2.2 shows the relationship among Audio Playback, Command Line and Onboard Switch.

/media/uploads/1050186/lcd_table2_2.png

3. Function Outline

Table 3.1, 3.2 and 3.3 shows the overview of functions implemented in this sample code.

/media/uploads/1050186/lcd_table3_1.png /media/uploads/1050186/lcd_table3_2.png /media/uploads/1050186/lcd_table3_3.png /media/uploads/1050186/lcd_figure3_1.png

3.1 Playback Control

This sample program supports the operation "play", "pause", "stop", "play next song" and "play previous song".

3.2 Trick Play Control

In order to enable/disable Repeat Mode, user need to type "repeat" on command line or click the corresponding icon shown in Table 2.2. By derault, Repeat Mode is enabled. When Repeat Mode is enabled, the first song is played back after the playback of the last song is finished. Otherwise, the playback is shopped when finishing to play back the last song.

3.3 How to see Song Information

The information of the song being played back can be seen by typing playinfo on command line. Table 3.4 lists the items user can see on the terminal.

/media/uploads/dkato/audioplayback_table3_4.png

3.4 How to analyze the folder structure in USB stick

In this sample code, the folder structure in USB stick is analyzed in the breadth-first order. Table 3.5 shows how the files in USB stick are numbered.

/media/uploads/dkato/audioplayback_table3_5.png

4.Others

4.1 Serial Communication Setting

With respect to the default serial communication related setting on mbed, please refer to the follwing link:
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication
Please set up the terminal software you would like to use on your PC in consideration of the above. For example, 9600 should be specified for the baud rate on the terminal in order to control this sample via command line.

4.2 Necessary modification when using GCC ARM Embedded

If you would like to use GCC ARM Embedded, you must revise the following linker script incorporated in mbed OS 5 package as follows:

  • Linker Script to be modified
    $(PROJECT_ROOT)/mbed-os/targets/TARGET_RENESAS/TARGET_RZ_A1H/device/TOOLCHAIN_GCC_ARM/RZA1H.ld

    Please note that $(PROJECT_ROOT) in the above denotes the root directory of this sample code

  • Before Modification

RZA1H.ld

/* Linker script for mbed RZ_A1H */

/* Linker script to configure memory regions. */
MEMORY
{
  ROM   (rx)  : ORIGIN = 0x00000000, LENGTH = 0x02000000
  BOOT_LOADER (rx) : ORIGIN = 0x18000000, LENGTH = 0x00004000 
  SFLASH (rx) : ORIGIN = 0x18004000, LENGTH = 0x07FFC000 
  L_TTB (rw)  : ORIGIN = 0x20000000, LENGTH = 0x00004000 
  RAM (rwx) : ORIGIN = 0x20020000, LENGTH = 0x00700000
  RAM_NC (rwx) : ORIGIN = 0x20900000, LENGTH = 0x00100000
}
(snip)
  • After Modification

RZA1H.ld

/* Linker script for mbed RZ_A1H */

/* Linker script to configure memory regions. */
MEMORY
{
  ROM   (rx)  : ORIGIN = 0x00000000, LENGTH = 0x02000000
  BOOT_LOADER (rx) : ORIGIN = 0x18000000, LENGTH = 0x00004000 
  SFLASH (rx) : ORIGIN = 0x18004000, LENGTH = 0x07FFC000 
  L_TTB (rw)  : ORIGIN = 0x20000000, LENGTH = 0x00004000 
  RAM (rwx) : ORIGIN = 0x20020000, LENGTH = 0x00180000
  RAM_NC (rwx) : ORIGIN = 0x20200000, LENGTH = 0x00680000
}
(snip)
Committer:
Osamu Nakamura
Date:
Tue Apr 11 12:42:10 2017 +0900
Revision:
6:a957aaa284f0
Parent:
4:2672de88a46b
Update R-BSP from rev. cbb9d60c8748 to fb9eda52224e so that this program can be compiled with IAR toolchain.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
1050186 4:2672de88a46b 1 /*******************************************************************************
1050186 4:2672de88a46b 2 * DISCLAIMER
1050186 4:2672de88a46b 3 * This software is supplied by Renesas Electronics Corporation and is only
1050186 4:2672de88a46b 4 * intended for use with Renesas products. No other uses are authorized. This
1050186 4:2672de88a46b 5 * software is owned by Renesas Electronics Corporation and is protected under
1050186 4:2672de88a46b 6 * all applicable laws, including copyright laws.
1050186 4:2672de88a46b 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
1050186 4:2672de88a46b 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
1050186 4:2672de88a46b 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
1050186 4:2672de88a46b 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
1050186 4:2672de88a46b 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
1050186 4:2672de88a46b 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
1050186 4:2672de88a46b 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
1050186 4:2672de88a46b 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
1050186 4:2672de88a46b 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
1050186 4:2672de88a46b 16 * Renesas reserves the right, without notice, to make changes to this software
1050186 4:2672de88a46b 17 * and to discontinue the availability of this software. By using this software,
1050186 4:2672de88a46b 18 * you agree to the additional terms and conditions found by accessing the
1050186 4:2672de88a46b 19 * following link:
1050186 4:2672de88a46b 20 * http://www.renesas.com/disclaimer*
1050186 4:2672de88a46b 21 * Copyright (C) 2015 Renesas Electronics Corporation. All rights reserved.
1050186 4:2672de88a46b 22 *******************************************************************************/
1050186 4:2672de88a46b 23
1050186 4:2672de88a46b 24 #ifndef IMG_TBL_H
1050186 4:2672de88a46b 25 #define IMG_TBL_H
1050186 4:2672de88a46b 26
1050186 4:2672de88a46b 27 #include "r_typedefs.h"
1050186 4:2672de88a46b 28 #include "disp_graphics.h"
1050186 4:2672de88a46b 29
1050186 4:2672de88a46b 30 /*--- Macro definition ---*/
1050186 4:2672de88a46b 31 /* img_audio.cpp */
1050186 4:2672de88a46b 32 #define DSP_IMG_TP_AUDIO (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 33 #define DSP_IMG_WS_AUDIO (192u)
1050186 4:2672de88a46b 34 #define DSP_IMG_HS_AUDIO (45u)
1050186 4:2672de88a46b 35 #define DSP_IMG_SZ_AUDIO (34560u)
1050186 4:2672de88a46b 36
1050186 4:2672de88a46b 37 /* img_audio_bar.cpp */
1050186 4:2672de88a46b 38 #define DSP_IMG_TP_AUDIO_BAR (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 39 #define DSP_IMG_WS_AUDIO_BAR (540u)
1050186 4:2672de88a46b 40 #define DSP_IMG_HS_AUDIO_BAR (14u)
1050186 4:2672de88a46b 41 #define DSP_IMG_SZ_AUDIO_BAR (30240u)
1050186 4:2672de88a46b 42
1050186 4:2672de88a46b 43 /* img_audio_button1.cpp */
1050186 4:2672de88a46b 44 #define DSP_IMG_TP_AUDIO_BUTTON1 (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 45 #define DSP_IMG_WS_AUDIO_BUTTON1 (136u)
1050186 4:2672de88a46b 46 #define DSP_IMG_HS_AUDIO_BUTTON1 (60u)
1050186 4:2672de88a46b 47 #define DSP_IMG_SZ_AUDIO_BUTTON1 (32640u)
1050186 4:2672de88a46b 48
1050186 4:2672de88a46b 49 /* img_audio_button1d.cpp */
1050186 4:2672de88a46b 50 #define DSP_IMG_TP_AUDIO_BUTTON1D (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 51 #define DSP_IMG_WS_AUDIO_BUTTON1D (136u)
1050186 4:2672de88a46b 52 #define DSP_IMG_HS_AUDIO_BUTTON1D (60u)
1050186 4:2672de88a46b 53 #define DSP_IMG_SZ_AUDIO_BUTTON1D (32640u)
1050186 4:2672de88a46b 54
1050186 4:2672de88a46b 55 /* img_audio_button2.cpp */
1050186 4:2672de88a46b 56 #define DSP_IMG_TP_AUDIO_BUTTON2 (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 57 #define DSP_IMG_WS_AUDIO_BUTTON2 (136u)
1050186 4:2672de88a46b 58 #define DSP_IMG_HS_AUDIO_BUTTON2 (60u)
1050186 4:2672de88a46b 59 #define DSP_IMG_SZ_AUDIO_BUTTON2 (32640u)
1050186 4:2672de88a46b 60
1050186 4:2672de88a46b 61 /* img_audio_button2d.cpp */
1050186 4:2672de88a46b 62 #define DSP_IMG_TP_AUDIO_BUTTON2D (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 63 #define DSP_IMG_WS_AUDIO_BUTTON2D (136u)
1050186 4:2672de88a46b 64 #define DSP_IMG_HS_AUDIO_BUTTON2D (60u)
1050186 4:2672de88a46b 65 #define DSP_IMG_SZ_AUDIO_BUTTON2D (32640u)
1050186 4:2672de88a46b 66
1050186 4:2672de88a46b 67 /* img_audio_button3.cpp */
1050186 4:2672de88a46b 68 #define DSP_IMG_TP_AUDIO_BUTTON3 (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 69 #define DSP_IMG_WS_AUDIO_BUTTON3 (136u)
1050186 4:2672de88a46b 70 #define DSP_IMG_HS_AUDIO_BUTTON3 (60u)
1050186 4:2672de88a46b 71 #define DSP_IMG_SZ_AUDIO_BUTTON3 (32640u)
1050186 4:2672de88a46b 72
1050186 4:2672de88a46b 73 /* img_audio_button3d.cpp */
1050186 4:2672de88a46b 74 #define DSP_IMG_TP_AUDIO_BUTTON3D (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 75 #define DSP_IMG_WS_AUDIO_BUTTON3D (136u)
1050186 4:2672de88a46b 76 #define DSP_IMG_HS_AUDIO_BUTTON3D (60u)
1050186 4:2672de88a46b 77 #define DSP_IMG_SZ_AUDIO_BUTTON3D (32640u)
1050186 4:2672de88a46b 78
1050186 4:2672de88a46b 79 /* img_audio_button4.cpp */
1050186 4:2672de88a46b 80 #define DSP_IMG_TP_AUDIO_BUTTON4 (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 81 #define DSP_IMG_WS_AUDIO_BUTTON4 (136u)
1050186 4:2672de88a46b 82 #define DSP_IMG_HS_AUDIO_BUTTON4 (60u)
1050186 4:2672de88a46b 83 #define DSP_IMG_SZ_AUDIO_BUTTON4 (32640u)
1050186 4:2672de88a46b 84
1050186 4:2672de88a46b 85 /* img_audio_button4d.cpp */
1050186 4:2672de88a46b 86 #define DSP_IMG_TP_AUDIO_BUTTON4D (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 87 #define DSP_IMG_WS_AUDIO_BUTTON4D (136u)
1050186 4:2672de88a46b 88 #define DSP_IMG_HS_AUDIO_BUTTON4D (60u)
1050186 4:2672de88a46b 89 #define DSP_IMG_SZ_AUDIO_BUTTON4D (32640u)
1050186 4:2672de88a46b 90
1050186 4:2672de88a46b 91 /* img_audio_window.cpp */
1050186 4:2672de88a46b 92 #define DSP_IMG_TP_AUDIO_WINDOW (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 93 #define DSP_IMG_WS_AUDIO_WINDOW (800u)
1050186 4:2672de88a46b 94 #define DSP_IMG_HS_AUDIO_WINDOW (300u)
1050186 4:2672de88a46b 95 #define DSP_IMG_SZ_AUDIO_WINDOW (960000u)
1050186 4:2672de88a46b 96
1050186 4:2672de88a46b 97 /* Because image size is big, the image is divided into 4. */
1050186 4:2672de88a46b 98 /* The top image is DSP_IMG_ID_AUDIO_WINDOW1. */
1050186 4:2672de88a46b 99 /* The bottom image is DSP_IMG_ID_AUDIO_WINDOW4. */
1050186 4:2672de88a46b 100 #define DSP_IMG_PN_AUDIO_WINDOW (4u)
1050186 4:2672de88a46b 101
1050186 4:2672de88a46b 102 #define DSP_IMG_ST_AUDIO_WINDOW4 (0u)
1050186 4:2672de88a46b 103 #define DSP_IMG_WS_AUDIO_WINDOW4 (DSP_IMG_WS_AUDIO_WINDOW)
1050186 4:2672de88a46b 104 #define DSP_IMG_HS_AUDIO_WINDOW4 (DSP_IMG_HS_AUDIO_WINDOW/DSP_IMG_PN_AUDIO_WINDOW)
1050186 4:2672de88a46b 105
1050186 4:2672de88a46b 106 #define DSP_IMG_ST_AUDIO_WINDOW3 (DSP_IMG_ST_AUDIO_WINDOW4+(DSP_IMG_SZ_AUDIO_WINDOW/DSP_IMG_PN_AUDIO_WINDOW))
1050186 4:2672de88a46b 107 #define DSP_IMG_WS_AUDIO_WINDOW3 (DSP_IMG_WS_AUDIO_WINDOW)
1050186 4:2672de88a46b 108 #define DSP_IMG_HS_AUDIO_WINDOW3 (DSP_IMG_HS_AUDIO_WINDOW/DSP_IMG_PN_AUDIO_WINDOW)
1050186 4:2672de88a46b 109
1050186 4:2672de88a46b 110 #define DSP_IMG_ST_AUDIO_WINDOW2 (DSP_IMG_ST_AUDIO_WINDOW3+(DSP_IMG_SZ_AUDIO_WINDOW/DSP_IMG_PN_AUDIO_WINDOW))
1050186 4:2672de88a46b 111 #define DSP_IMG_WS_AUDIO_WINDOW2 (DSP_IMG_WS_AUDIO_WINDOW)
1050186 4:2672de88a46b 112 #define DSP_IMG_HS_AUDIO_WINDOW2 (DSP_IMG_HS_AUDIO_WINDOW/DSP_IMG_PN_AUDIO_WINDOW)
1050186 4:2672de88a46b 113
1050186 4:2672de88a46b 114 #define DSP_IMG_ST_AUDIO_WINDOW1 (DSP_IMG_ST_AUDIO_WINDOW2+(DSP_IMG_SZ_AUDIO_WINDOW/DSP_IMG_PN_AUDIO_WINDOW))
1050186 4:2672de88a46b 115 #define DSP_IMG_WS_AUDIO_WINDOW1 (DSP_IMG_WS_AUDIO_WINDOW)
1050186 4:2672de88a46b 116 #define DSP_IMG_HS_AUDIO_WINDOW1 (DSP_IMG_HS_AUDIO_WINDOW/DSP_IMG_PN_AUDIO_WINDOW)
1050186 4:2672de88a46b 117
1050186 4:2672de88a46b 118 /* img_back.cpp */
1050186 4:2672de88a46b 119 #define DSP_IMG_TP_BACK (DSP_IMG_FORM_RGB888)
1050186 4:2672de88a46b 120 #define DSP_IMG_WS_BACK (800u)
1050186 4:2672de88a46b 121 #define DSP_IMG_HS_BACK (480u)
1050186 4:2672de88a46b 122 #define DSP_IMG_SZ_BACK (1152000u)
1050186 4:2672de88a46b 123
1050186 4:2672de88a46b 124 /* Because image size is big, the image is divided into 6. */
1050186 4:2672de88a46b 125 /* The top image is DSP_IMG_ID_BACK1. */
1050186 4:2672de88a46b 126 /* The bottom image is DSP_IMG_ID_BACK6. */
1050186 4:2672de88a46b 127 #define DSP_IMG_PN_BACK (6u)
1050186 4:2672de88a46b 128
1050186 4:2672de88a46b 129 #define DSP_IMG_ST_BACK6 (0u)
1050186 4:2672de88a46b 130 #define DSP_IMG_WS_BACK6 (DSP_IMG_WS_BACK)
1050186 4:2672de88a46b 131 #define DSP_IMG_HS_BACK6 (DSP_IMG_HS_BACK / DSP_IMG_PN_BACK)
1050186 4:2672de88a46b 132
1050186 4:2672de88a46b 133 #define DSP_IMG_ST_BACK5 (DSP_IMG_ST_BACK6 + (DSP_IMG_SZ_BACK / DSP_IMG_PN_BACK))
1050186 4:2672de88a46b 134 #define DSP_IMG_WS_BACK5 (DSP_IMG_WS_BACK)
1050186 4:2672de88a46b 135 #define DSP_IMG_HS_BACK5 (DSP_IMG_HS_BACK / DSP_IMG_PN_BACK)
1050186 4:2672de88a46b 136
1050186 4:2672de88a46b 137 #define DSP_IMG_ST_BACK4 (DSP_IMG_ST_BACK5 + (DSP_IMG_SZ_BACK / DSP_IMG_PN_BACK))
1050186 4:2672de88a46b 138 #define DSP_IMG_WS_BACK4 (DSP_IMG_WS_BACK)
1050186 4:2672de88a46b 139 #define DSP_IMG_HS_BACK4 (DSP_IMG_HS_BACK / DSP_IMG_PN_BACK)
1050186 4:2672de88a46b 140
1050186 4:2672de88a46b 141 #define DSP_IMG_ST_BACK3 (DSP_IMG_ST_BACK4 + (DSP_IMG_SZ_BACK / DSP_IMG_PN_BACK))
1050186 4:2672de88a46b 142 #define DSP_IMG_WS_BACK3 (DSP_IMG_WS_BACK)
1050186 4:2672de88a46b 143 #define DSP_IMG_HS_BACK3 (DSP_IMG_HS_BACK / DSP_IMG_PN_BACK)
1050186 4:2672de88a46b 144
1050186 4:2672de88a46b 145 #define DSP_IMG_ST_BACK2 (DSP_IMG_ST_BACK3 + (DSP_IMG_SZ_BACK / DSP_IMG_PN_BACK))
1050186 4:2672de88a46b 146 #define DSP_IMG_WS_BACK2 (DSP_IMG_WS_BACK)
1050186 4:2672de88a46b 147 #define DSP_IMG_HS_BACK2 (DSP_IMG_HS_BACK / DSP_IMG_PN_BACK)
1050186 4:2672de88a46b 148
1050186 4:2672de88a46b 149 #define DSP_IMG_ST_BACK1 (DSP_IMG_ST_BACK2 + (DSP_IMG_SZ_BACK / DSP_IMG_PN_BACK))
1050186 4:2672de88a46b 150 #define DSP_IMG_WS_BACK1 (DSP_IMG_WS_BACK)
1050186 4:2672de88a46b 151 #define DSP_IMG_HS_BACK1 (DSP_IMG_HS_BACK / DSP_IMG_PN_BACK)
1050186 4:2672de88a46b 152
1050186 4:2672de88a46b 153 /* img_bar_left.cpp */
1050186 4:2672de88a46b 154 #define DSP_IMG_TP_BAR_LEFT (DSP_IMG_FORM_RGB888)
1050186 4:2672de88a46b 155 #define DSP_IMG_WS_BAR_LEFT (4u)
1050186 4:2672de88a46b 156 #define DSP_IMG_HS_BAR_LEFT (10u)
1050186 4:2672de88a46b 157 #define DSP_IMG_SZ_BAR_LEFT (120u)
1050186 4:2672de88a46b 158
1050186 4:2672de88a46b 159 /* img_bar_mid.cpp */
1050186 4:2672de88a46b 160 #define DSP_IMG_TP_BAR_MID (DSP_IMG_FORM_RGB888)
1050186 4:2672de88a46b 161 #define DSP_IMG_WS_BAR_MID (12u)
1050186 4:2672de88a46b 162 #define DSP_IMG_HS_BAR_MID (10u)
1050186 4:2672de88a46b 163 #define DSP_IMG_SZ_BAR_MID (360u)
1050186 4:2672de88a46b 164
1050186 4:2672de88a46b 165 /* img_bar_right.cpp */
1050186 4:2672de88a46b 166 #define DSP_IMG_TP_BAR_RIGHT (DSP_IMG_FORM_RGB888)
1050186 4:2672de88a46b 167 #define DSP_IMG_WS_BAR_RIGHT (12u)
1050186 4:2672de88a46b 168 #define DSP_IMG_HS_BAR_RIGHT (10u)
1050186 4:2672de88a46b 169 #define DSP_IMG_SZ_BAR_RIGHT (360u)
1050186 4:2672de88a46b 170
1050186 4:2672de88a46b 171 /* img_mode.cpp */
1050186 4:2672de88a46b 172 #define DSP_IMG_TP_MODE (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 173 #define DSP_IMG_WS_MODE (148u)
1050186 4:2672de88a46b 174 #define DSP_IMG_HS_MODE (92u)
1050186 4:2672de88a46b 175 #define DSP_IMG_SZ_MODE (54464u)
1050186 4:2672de88a46b 176
1050186 4:2672de88a46b 177 /* img_renesas.cpp */
1050186 4:2672de88a46b 178 #define DSP_IMG_TP_RENESAS (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 179 #define DSP_IMG_WS_RENESAS (280u)
1050186 4:2672de88a46b 180 #define DSP_IMG_HS_RENESAS (40u)
1050186 4:2672de88a46b 181 #define DSP_IMG_SZ_RENESAS (44800u)
1050186 4:2672de88a46b 182
1050186 4:2672de88a46b 183 /* img_tv.cpp */
1050186 4:2672de88a46b 184 #define DSP_IMG_TP_TV (DSP_IMG_FORM_ARGB8888)
1050186 4:2672de88a46b 185 #define DSP_IMG_WS_TV (88u)
1050186 4:2672de88a46b 186 #define DSP_IMG_HS_TV (64u)
1050186 4:2672de88a46b 187 #define DSP_IMG_SZ_TV (22528u)
1050186 4:2672de88a46b 188
1050186 4:2672de88a46b 189 /* img_font.cpp */
1050186 4:2672de88a46b 190 #define DSP_IMG_FONT_FG_VAL (1u) /* The value of foreground in the font data. */
1050186 4:2672de88a46b 191 #define DSP_IMG_FONT_BG_VAL (0u) /* The value of background in the font data.*/
1050186 4:2672de88a46b 192
1050186 4:2672de88a46b 193 #define DSP_IMG_FONT_FG_COL (0xFFF0F0F0u) /* The drawing color of foreground in the font data. */
1050186 4:2672de88a46b 194
1050186 4:2672de88a46b 195 #define DSP_IMG_TBL_NUM_FONT30X34 (2)
1050186 4:2672de88a46b 196 #define DSP_IMG_WS_FONT30X34 (30u)
1050186 4:2672de88a46b 197 #define DSP_IMG_HS_FONT30X34 (34u)
1050186 4:2672de88a46b 198
1050186 4:2672de88a46b 199 #define DSP_IMG_TBL_NUM_FONT15X17 (1)
1050186 4:2672de88a46b 200 #define DSP_IMG_WS_FONT15X17 (15u)
1050186 4:2672de88a46b 201 #define DSP_IMG_HS_FONT15X17 (17u)
1050186 4:2672de88a46b 202
1050186 4:2672de88a46b 203 #define DSP_IMG_ID_AUDIO (0)
1050186 4:2672de88a46b 204 #define DSP_IMG_ID_AUDIO_BAR (1)
1050186 4:2672de88a46b 205 #define DSP_IMG_ID_AUDIO_BUTTON1 (2)
1050186 4:2672de88a46b 206 #define DSP_IMG_ID_AUDIO_BUTTON1D (3)
1050186 4:2672de88a46b 207 #define DSP_IMG_ID_AUDIO_BUTTON2 (4)
1050186 4:2672de88a46b 208 #define DSP_IMG_ID_AUDIO_BUTTON2D (5)
1050186 4:2672de88a46b 209 #define DSP_IMG_ID_AUDIO_BUTTON3 (6)
1050186 4:2672de88a46b 210 #define DSP_IMG_ID_AUDIO_BUTTON3D (7)
1050186 4:2672de88a46b 211 #define DSP_IMG_ID_AUDIO_BUTTON4 (8)
1050186 4:2672de88a46b 212 #define DSP_IMG_ID_AUDIO_BUTTON4D (9)
1050186 4:2672de88a46b 213 #define DSP_IMG_ID_AUDIO_WINDOW1 (10)
1050186 4:2672de88a46b 214 #define DSP_IMG_ID_AUDIO_WINDOW2 (11)
1050186 4:2672de88a46b 215 #define DSP_IMG_ID_AUDIO_WINDOW3 (12)
1050186 4:2672de88a46b 216 #define DSP_IMG_ID_AUDIO_WINDOW4 (13)
1050186 4:2672de88a46b 217 #define DSP_IMG_ID_BACK1 (14)
1050186 4:2672de88a46b 218 #define DSP_IMG_ID_BACK2 (15)
1050186 4:2672de88a46b 219 #define DSP_IMG_ID_BACK3 (16)
1050186 4:2672de88a46b 220 #define DSP_IMG_ID_BACK4 (17)
1050186 4:2672de88a46b 221 #define DSP_IMG_ID_BACK5 (18)
1050186 4:2672de88a46b 222 #define DSP_IMG_ID_BACK6 (19)
1050186 4:2672de88a46b 223 #define DSP_IMG_ID_BAR_LEFT (20)
1050186 4:2672de88a46b 224 #define DSP_IMG_ID_BAR_MID (21)
1050186 4:2672de88a46b 225 #define DSP_IMG_ID_BAR_RIGHT (22)
1050186 4:2672de88a46b 226 #define DSP_IMG_ID_MODE (23)
1050186 4:2672de88a46b 227 #define DSP_IMG_ID_RENESAS (24)
1050186 4:2672de88a46b 228 #define DSP_IMG_ID_TV (25)
1050186 4:2672de88a46b 229 #define DSP_IMG_TBL_SIZE (26)
1050186 4:2672de88a46b 230
1050186 4:2672de88a46b 231 /*--- User defined types ---*/
1050186 4:2672de88a46b 232 typedef struct {
1050186 4:2672de88a46b 233 int32_t image_type; /* Format of a bitmap. */
1050186 4:2672de88a46b 234 const uint8_t *p_image; /* Pointer to top address of a bitmap. */
1050186 4:2672de88a46b 235 uint32_t size_x; /* The width of a bitmap. */
1050186 4:2672de88a46b 236 uint32_t size_y; /* The height of a bitmap. */
1050186 4:2672de88a46b 237 } dsp_bmpinf_t;
1050186 4:2672de88a46b 238
1050186 4:2672de88a46b 239 typedef struct {
1050186 4:2672de88a46b 240 const uint32_t *p_font; /* Pointer to top address of the font table. */
1050186 4:2672de88a46b 241 uint32_t start_char; /* The first character in this font table. */
1050186 4:2672de88a46b 242 uint32_t end_char; /* The last character in this font table. */
1050186 4:2672de88a46b 243 } dsp_fntinf_t;
1050186 4:2672de88a46b 244
1050186 4:2672de88a46b 245 extern const uint8_t dsp_img_audio[DSP_IMG_SZ_AUDIO];
1050186 4:2672de88a46b 246 extern const uint8_t dsp_img_audio_bar[DSP_IMG_SZ_AUDIO_BAR];
1050186 4:2672de88a46b 247 extern const uint8_t dsp_img_audio_button1[DSP_IMG_SZ_AUDIO_BUTTON1];
1050186 4:2672de88a46b 248 extern const uint8_t dsp_img_audio_button1d[DSP_IMG_SZ_AUDIO_BUTTON1D];
1050186 4:2672de88a46b 249 extern const uint8_t dsp_img_audio_button2[DSP_IMG_SZ_AUDIO_BUTTON2];
1050186 4:2672de88a46b 250 extern const uint8_t dsp_img_audio_button2d[DSP_IMG_SZ_AUDIO_BUTTON2D];
1050186 4:2672de88a46b 251 extern const uint8_t dsp_img_audio_button3[DSP_IMG_SZ_AUDIO_BUTTON3];
1050186 4:2672de88a46b 252 extern const uint8_t dsp_img_audio_button3d[DSP_IMG_SZ_AUDIO_BUTTON3D];
1050186 4:2672de88a46b 253 extern const uint8_t dsp_img_audio_button4[DSP_IMG_SZ_AUDIO_BUTTON4];
1050186 4:2672de88a46b 254 extern const uint8_t dsp_img_audio_button4d[DSP_IMG_SZ_AUDIO_BUTTON4D];
1050186 4:2672de88a46b 255 extern const uint8_t dsp_img_audio_window[DSP_IMG_SZ_AUDIO_WINDOW];
1050186 4:2672de88a46b 256 extern const uint8_t dsp_img_back[DSP_IMG_SZ_BACK];
1050186 4:2672de88a46b 257 extern const uint8_t dsp_img_bar_left[DSP_IMG_SZ_BAR_LEFT];
1050186 4:2672de88a46b 258 extern const uint8_t dsp_img_bar_mid[DSP_IMG_SZ_BAR_MID];
1050186 4:2672de88a46b 259 extern const uint8_t dsp_img_bar_right[DSP_IMG_SZ_BAR_RIGHT];
1050186 4:2672de88a46b 260 extern const uint8_t dsp_img_mode[DSP_IMG_SZ_MODE];
1050186 4:2672de88a46b 261 extern const uint8_t dsp_img_renesas[DSP_IMG_SZ_RENESAS];
1050186 4:2672de88a46b 262 extern const uint8_t dsp_img_tv[DSP_IMG_SZ_TV];
1050186 4:2672de88a46b 263 extern const dsp_bmpinf_t dsp_bitmap_tbl[DSP_IMG_TBL_SIZE];
1050186 4:2672de88a46b 264 extern const dsp_fntinf_t dsp_img_fonttbl30x34[DSP_IMG_TBL_NUM_FONT30X34];
1050186 4:2672de88a46b 265 extern const dsp_fntinf_t dsp_img_fonttbl15x17[DSP_IMG_TBL_NUM_FONT15X17];
1050186 4:2672de88a46b 266
1050186 4:2672de88a46b 267 #endif /* IMG_TBL_H */