📄 readme.txt
字号:
/*
1, These are some definitions for 2440'registers, which are related
to ac97.you should add them to intigrator.h
*/
#define rAC_PCMDATA (*(volatile unsigned *) 0x5b000018)
#define frCLKCON (*(volatile unsigned *) 0x4c00000c)
#define rAC_GLBCTRL (*(volatile unsigned *) 0x5b000000)
#define rAC_GLBSTA (*(volatile unsigned *) 0x5b000004)
#define frGPECON (*(volatile unsigned *) 0x56000040)
#define frGPEUP (*(volatile unsigned *) 0x56000048)
#define rAC_CODEC_CMD (*(volatile unsigned *) 0x5b000008)
#define rAC_CODEC_STAT (*(volatile unsigned *) 0x5b00000c)
#define AC_MICDATA (*(volatile unsigned *) 0x5b00001c)
/*2, The following prog should be taken place of sb16'driver in usrconfig.c*/
#if defined (INCLUDE_SOUND) && defined(INCLUDE_ac97)
ac97Drv( ); /* install sound driver ac97 */
/******在此处安装声卡驱动******/
sb16DevCreate ("/sound");
#endif /* INCLUDE_SOUND && INCLUDE_ac97 */
/*Notice:INCLUDE_SOUND,INCLUDE_ac97 should be defined in configall.h*/
replace:
#if defined (INCLUDE_SOUND) && defined(INCLUDE_SB16)
sb16Drv (); /* install sound driver SB16 */
/******在此处安装声卡驱动******/
sb16DevCreate ("/sound", 0x220, 5, 1, 5);
#endif /* INCLUDE_SOUND && INCLUDE_SB16 */
/*************************************************************************/
/*3, The following prog is initializing interrupt registers related to ac97
and connect interrupt.
It should be added to syshwinit2(),which is inclueded in syslib.c
*/
(*(volatile unsigned *)0x4a00001c) &= 0xffffbffe; /*INTSUBMSK 0x4a00001c*/
(*(volatile unsigned *)0x4a000008) &= 0xef7ff0ff;
(void) intConnect (0x9,audio_send_int,0);
intEnable (9);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -