📄 mp3_drv.lst
字号:
C51 COMPILER V7.50 MP3_DRV 09/20/2005 21:47:36 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE MP3_DRV
OBJECT MODULE PLACED IN mp3_drv.obj
COMPILER INVOKED BY: e:\Keil\C51\BIN\C51.EXE lib_mcu\mp3\mp3_drv.c OPTIMIZE(7,SPEED) BROWSE INCDIR(.\modules\system;.\;.
-\;.\lib_refd) DEFINE(KEIL) DEBUG OBJECTEXTEND PRINT(.\mp3_drv.lst) OBJECT(mp3_drv.obj)
line level source
1 /*C**************************************************************************
2 * NAME: mp3_drv.c
3 *----------------------------------------------------------------------------
4 * Copyright (c) 2003 Atmel.
5 *----------------------------------------------------------------------------
6 * RELEASE: snd1c-refd-nf-4_0_3
7 * REVISION: 1.7
8 *----------------------------------------------------------------------------
9 * PURPOSE:
10 * This file contains the MP3 driver routines
11 *
12 * NOTES:
13 * Driver Configuration:
14 * - MP3_CRC_SKIP in config.h define as:
15 * TRUE: to skip frames with CRC errors
16 * FALSE: to play frame with CRC errors
17 * Global Variables:
18 * - None
19 *****************************************************************************/
20
21 /*_____ I N C L U D E S ____________________________________________________*/
22
23 #include "config.h" /* system configuration */
24 #include "mp3_drv.h" /* mp3 driver definition */
25
26
27 /*_____ M A C R O S ________________________________________________________*/
28
29
30 /*_____ D E F I N I T I O N ________________________________________________*/
31
32
33 /*_____ D E C L A R A T I O N ______________________________________________*/
34
35
36 /*F**************************************************************************
37 * NAME: mp3_init
38 *----------------------------------------------------------------------------
39 * PARAMS:
40 *
41 * return:
42 *----------------------------------------------------------------------------
43 * PURPOSE:
44 * MP3 decoder initialisation
45 *----------------------------------------------------------------------------
46 * EXAMPLE:
47 *----------------------------------------------------------------------------
48 * NOTE:
49 *----------------------------------------------------------------------------
50 * REQUIREMENTS:
51 * ram/xram:
52 * cycle:
53 * stack:
54 * code:
C51 COMPILER V7.50 MP3_DRV 09/20/2005 21:47:36 PAGE 2
55 *****************************************************************************/
56 void mp3_init (void)
57 {
58 1 #if MP3_CRC_SKIP == TRUE
Mp3_skip_crc_error(); /* skip frames with crc error */
#else
61 1 Mp3_play_crc_error(); /* play frames with crc error */
62 1 #endif
63 1 Mp3_enable(); /* MP3 enable */
64 1 }
65
66
67 /*F**************************************************************************
68 * NAME: mp3_set_prio
69 *----------------------------------------------------------------------------
70 * PARAMS:
71 *
72 * return:
73 *----------------------------------------------------------------------------
74 * PURPOSE:
75 * Set the MP3 decoder priority interrupt
76 *----------------------------------------------------------------------------
77 * EXAMPLE:
78 *----------------------------------------------------------------------------
79 * NOTE:
80 *----------------------------------------------------------------------------
81 * REQUIREMENTS:
82 * ram/xram:
83 * cycle:
84 * stack:
85 * code:
86 *****************************************************************************/
87 void mp3_set_prio (Byte priority)
88 {
89 1 if ((priority == 1) || (priority == 3)) /* set LSB priority bit */
90 1 {
91 2 IPL0 |= MSK_EMP3;
92 2 }
93 1 if ((priority == 2) || (priority == 3)) /* set MSB priority bit */
94 1 {
95 2 IPH0 |= MSK_EMP3;
96 2 }
97 1 }
98
99
100 /*F**************************************************************************
101 * NAME: mp3_stop
102 *----------------------------------------------------------------------------
103 * PARAMS:
104 *
105 * return:
106 *----------------------------------------------------------------------------
107 * PURPOSE:
108 * Close the MP3 decoder
109 *----------------------------------------------------------------------------
110 * EXAMPLE:
111 *----------------------------------------------------------------------------
112 * NOTE:
113 *----------------------------------------------------------------------------
114 * REQUIREMENTS:
115 * ram/xram:
116 * cycle:
C51 COMPILER V7.50 MP3_DRV 09/20/2005 21:47:36 PAGE 3
117 * stack:
118 * code:
119 *****************************************************************************/
120 void mp3_stop (void)
121 {
122 1 Mp3_disable_int(); /* disable MP3 IT */
123 1 Mp3_disable(); /* disable decoding */
124 1 Mp3_ack_int(); /* clear pending interrupt */
125 1 }
126
127
128 /*F**************************************************************************
129 * NAME: mp3_restart
130 *----------------------------------------------------------------------------
131 * PARAMS:
132 *
133 * return:
134 *----------------------------------------------------------------------------
135 * PURPOSE:
136 * MP3 decoder restart
137 *----------------------------------------------------------------------------
138 * EXAMPLE:
139 *----------------------------------------------------------------------------
140 * NOTE:
141 *----------------------------------------------------------------------------
142 * REQUIREMENTS:
143 * ram/xram:
144 * cycle:
145 * stack:
146 * code:
147 *****************************************************************************/
148 void mp3_restart (void)
149 {
150 1 Mp3_disable();
151 1 Mp3_enable();
152 1 }
153
154
155
156
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 45 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -