MTK最新驱动总结1.配置GPIO 并初始化 • gpio_drv.c内的void GPIO_init(void) 进行初始化 1. DRV_WriteReg(GPIO_MODE1,0x0000) 设置模式 2. DRV_Reg(GPIO_DIR1) |= 0x00FF 设置方向 0 GPIOs are configured as input 1. GPIOs are configured as output2.audio_pa配置 音频对应Driver部分主要需要留意以下三支档案: afe.c audcoeff.c 首先需要注意是的output channel的配置,配置错误将出现没有声音的现象。(见audio_驱动.pdf) nvram_default_audio.c 此文件主要配置各音阶的音量 AUD_VOLUME_CTN :call waiting tone, error tone, warning tone AUD_VOLUME_KEY :keypad tone] AUD_VOLUME_MIC :microphone input AUD_VOLUME_FMR :FM radio sound AUD_VOLUME_SPH :speech sound (during phone call) AUD_VOLUME_SID :side tone (sound loop-back) AUD_VOLUME_MEDIA :music 1. 设置模式,方向,上拉 gpio_drv.c 里配置 2. afe.c 文件里void AFE_SwitchExtAmplifier( char sw_on )设置 ……
猜您喜欢
推荐内容
开源项目推荐 更多
热门活动
热门器件
用户搜过
随便看看
热门下载
评论