- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
mtk平台驱动调试指导(MTK platform driver debugging guidance)
mtk平台驱动调试指导(MTK platform driver debugging guidance)
MTK platform driver debugging guide
GPIO settings section
First, GPIO related functions
1. GPIO_ModeSetup:
Function prototype: void GPIO_ModeSetup (kal_uint16, pin, kal_uint16, conf_dada)
Function: sets the GPIO mode of operation as GPIO or as a proprietary function interface.
Parameter:
Pin:GPIOs pin pin corresponds to the GPIO label on the MTK62XX master CPU chip on the schematic
Conf_dada: the value is 0~3. 0 of these are represented as GPIO patterns, and others are set according to proprietary features.
2. GPO_InitIO
Function prototype: void GPIO_InitIO (char, direction, char, port)
Function: initializes the direction of the GPIO as input or as output
Parameter:
Direction: direction of work, 0 means input, and 1 means output
Pin feet of port:GPIO
3. GPIO_ReadIO
Function prototype: char GPIO_ReadIO (char port)
Function: read data from GPIO
Parameter:
Pin feet of port:GPIO
4. GPIO_WriteIO
Function prototype: void GPIO_WriteIO (kal_char, data, kal_char, port)
Function: write data to GPIO
Parameter:
The data:1 is indicated to the high level, and 0 to the low level
Pin feet of port:GPIO
Note: these functions can be found in Gpio.C.
Two, GPIO mode settings
GPIO in power system when there is a default high level, there is a default low level, this is the MCU internal decision, software can not be changed, but in the system boot process, will be initialized to GPIO, there are several GPIO mode initialization register MCU, through the GPIO register to set the initial mode.
For example, the following register is used to set the die operating mode of No. 0-7 GPIO.
This initialization process is in function GPIO_init () in Gpio_Drv.C. When the project starts, check that the schema settings for this part are correct.
Three, the GPIO settings of each function module
1. LCD backlight motors
Some LCD backlight is controlled by GPIO, while others are controlled by PMIC. But no matter how that method is controlled, you only need
您可能关注的文档
- 7财产清查(1-3)(7 property inventory (1-3)).doc
- 83-金水沟特大桥泵送混凝土施工裂缝的控制(Control of cracks in pumping concrete construction of 83- Jinshui Super Bridge).doc
- 86-一矿员工必读(86- mine staff must read).doc
- 7.11-7.17时事(7.11-7.17 current affairs).doc
- 6名90后志愿者献爱心开豪车进山被指是在炫富(6 90 volunteers love to open a luxury car into the mountains are called in the show).doc
- 70-宁波市2008年初中毕业生学业考试(70- Ningbo 2008 junior high school graduates' academic examination).doc
- 90-把麒麟文化打造成知名的齐鲁文化品牌(90- has made kylin culture a well-known brand of Qilu Culture).doc
- 8月思想(August thought).doc
- 98-精练九 分子动理论、热和功、气体(98- refining nine molecules, kinetic theory, heat, work, gas).doc
- 91-星设施营办商及(91- star facility operators and).doc
- mtk平台软件调试方法与技巧(Debugging methods and skills of MTK platform software).doc
- myanmar residents in japan take part in a protest in front of the ...(日本的缅甸居民参加了抗议活动…).doc
- myeclipse搭建ssh环境(Myeclipse搭建ssh环境).doc
- mysqldump详解(Mysqldump explain).doc
- mysql导入sqlserver(MySQL import sqlserver).doc
- meiwen1(meiwen1).doc
- mysql里面的子查询(Subquery inside MySQL).doc
- m开头函数详解(M start function detailed).doc
- n73使用方法(N73 usage).doc
- mysql更改密码(MySQL change password).doc
最近下载
- 员工心态培训ppt课件.pptx VIP
- 直肠癌的外科治疗及进展.ppt VIP
- 2025年上海证券交易所招聘笔试预测试题及答案.doc VIP
- 料账管理课件.pptx VIP
- 能量密度指数(EII)计算方法.ppt VIP
- 红十字校本课程教学设计.docx VIP
- (正式版)Y-S-T 1700-2024 银矿采选业绿色工厂评价要求.docx VIP
- 2025年上海证券交易所招聘笔试专项练习含答案.doc VIP
- TCECA-G 0344—2025《零碳园区评价技术规范》.pdf VIP
- 第2课 春秋战国的历史巨变课件(共41张PPT)-中职高一上学期高教版(2025)中国历史全一册(含音频+视频).pptx VIP
文档评论(0)