MTK driver development tutorial

Source: Internet
Author: User

MTK driver developmentThe course is the content to be introduced in this article.MTKOfDriver developmentThe article explains this issue in detail. For more information, see this article.

1. Charge Parameters.

1. Related File chr_parameter.c

2. I/O-related settings. In the bmt_custom_chr_def definition, GPIO_CHRCTRL, GPIO_VIBRATOR, define the charging control pin and the Vibrator Control pin respectively.

3. For information about the settings related to the configurations, see the P42 description in the gsm_upls_system_configuration_v1.93.pdf file.

Ii. EINT Parameter External Interrupt

1. Related Files: eint_def.c

2. Set specific pin settings for external interruptions such as AUX_EINT_NO according to the circuit diagram in the file header.

Iii. Key Pad Definition

1. Related File keypad_def.c

2. Enter the keypad_custom_def section and define the buttons based on the definition of the physical buttons. Q: Where are the Power buttons defined?

Iv. UART Parameter

1. Related File uart_def.c

5. Custom driver development Initialization

1. the related file custom_drv_init.c. In the custom_drv_init function, the Init functions such as GPIO, SPI, and LCD are called and corresponding initialization operations must be performed on these corresponding functions.

Description of P98 in lifecycle.

Vi. Custom Equipment Config

1. Related Files: custom_equipment.c and custom_equipment.h

2. Definition of GPIO: Enter the gpio_map_tbl table and modify the definition of GPIO_LABELID_ENUM and netname based on the actual circuit diagram.

3. Modify the custom_cfg_gpio_set_level function according to the definition and settings.

7. Set level information related to driver development, including LCD contrast, volume, battery, pwm, etc.

1. Related Files: custom_hw_default.h and custom_hw_default.c

2. Set relevant parameters, including the default initial time.

8. LED, LCD, and Vibrator mode settings

1. The p71 page provides detailed descriptions of the step-by-step setting mode.

9. NVram Config

1. Related Files: nvram_user_def.h,

2. To add a new storage item, follow these steps:

3. Add the items to be added in the nvram_user_def.h file and in the enum nvram_assist_cust_enum structure.

4. In the nvram_user_def.h file, define is used to define the size and total constants. Note: It must be defined according to the type. For details, refer to the p78 description.

5. In the custom_nvram_editor_data_item.h file, define the version information of the custom data information.

6. In the custom_nvram_editor_data_item.h file, add a function for meta and a function similar to LID_VBIT VER_LID (NVRAM_EF_XXXXXX_LID ).

7. Set the default data information in the file nvram_user_config.c.

8. Set the data information: Size Max <480 Total Max <300 Max Number of user retriable data item <25

10. LCD Config

1. LCD read/write timing settings, processing in the init_ LCD _interface function, and in file LCD. c. For details, refer to the instructions in p88.

2. The steps for LCD settings are described in P96.

11. Flash Config

1. NORFlash Config: Related File FlashConf. c

2. NANDFLash Config: Related File NANDFlashConf. c

3. Question: In FlashConf. c, how do I check the size of the program space to be allocated? That is to say, how can I know if 3 m space is allocated for the program?

12. RF Driver Config

1. Directory of Related Files: D: \ project \ 6219 \ custom \ l1_rf \ T6219_MT6129D

2. For specific parameter settings, see P106 and do not need to be modified.

13. AFE Config Audio Front end/set Audio)

1. Directory of Related Files: D: \ project \ 6219 \ custom \ audio \ T6219_BB.

Summary: DetailsMTK driver developmentThe course content has been introduced. I hope this article will help you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.