VOIDEDRV

所属分类:VxWorks
开发工具:C/C++
文件大小:6KB
下载次数:100
上传日期:2006-05-26 09:56:33
上 传 者larsar
说明:  VXWORKS操作系统下的S3C2440声卡驱动源程序
(VxWorks operating system under the 65,000-driven sound source)

文件列表:
毕设模板\ac97.c (4910, 2006-04-09)
毕设模板\ac97.h (1081, 2006-03-27)
毕设模板\pac97.c (3324, 2006-03-21)
毕设模板\pac97.h (106, 2006-03-20)
毕设模板\ps3c2440.h (2502, 2006-03-16)
毕设模板 (0, 2006-04-19)

/* 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);

近期下载者

相关文件


收藏者