// The algorithm used to search for categories in MTK, and finally obtain the array value corresponding to g_categories_controls_map.
U8 * dm_search_control_set (s32 category_id, S16 ** default_coordinate_set_p)
// Set coordinate_set for the coordinates of categories, which is the same as the search method in the preceding section.
the nvram id, struct data size, and total data size are defined here.
3. nvram_user_config.c fill in the NVRAM structure data content and defult value here
(We recommend using this method to modify NVRAM in MTK)
3. Define in coustom_mmi_default_value.h, common_mmi_cache_config.c
1. The custom_mmi_default_value.h file contains three enumeration types: bytedata, shortdata, and doubledata. 1 byte, 2 byte, and 8 bytes respectively. Define Your nvram id
)
This is to remove the size of all the SP and the version compiled by the acceleration sensor (only keep the value of FM, Bluetooth, traditional, English, and 1000 mobile phone books ). Because the ui of the original version released by MTK is relatively simple, the ROM and RAM can be compiled at the 128 + 32 Resolution, however, the style of the UI that occupies the ROM space is not defined in the UI style defined by the project. Therefore, t
function: Hwpoweronpower-down interface function :hwpowerdownThe following is an example of the VGP6 of PMIC6320. please call Hwpoweron when you want to power on the file # include Hwpoweron (MT65XX_POWER_LDO_VGP6, vol_2800, "ldo_test");bool Hwpowerdown (MT65XX_POWER_LDO_VGP6, "ldo_test");2.3 System boot post-stage configuration:After the normal start of the system, kernel are running up, so the power on/off the operation should be placed in the kernel inside.3 Drive Voltage modification: LCM
interface, can be used to display the printed UART serial port information; B) "Serial tools": download online c) securecrt: download on the network, using the method: connet-> Right-->properties set properties: set Communication type to serial port:protocol:serial Setting the port configuration: Serial:Port:COM147.andori UART Log eng version is also unable to spit analysis the ENG version automatically turns off the UART Log after booting to launcher, which results in a consistent test resul
_) // Portugal# Define pai_mmi_lang_italian (_ on _) // Italy
The following is the man-language family.
# Define pai_mmi_lang_english (_ on __)# Define pai_mmi_lang_german (_ on _) // German
# Define pai_mmi_lang_dutch (_ off _) // Netherlands
To save storage space
MTK of the above two language families combines them into the same font;
The country where the above font library is selected is:# Define pai_mmi_lang_malay (_ on _) // Malaysia# D
The MTK program divides the data into dynamic and static data.Dynamic data is generated dynamically by the program only when the program is running.Static data refers to the fixed data, which can be converted to binary data during program compilation and stored in the burning file.
Static data is called a resource. Common resources include strings, images, menus, font libraries, themes, and sounds.
Three steps are required to add a resource:Raw materi
How to add resources and menus to the MTK Mobile Phone platform
1. Menu modification or addition:The following is an example of how to add a menu:Add a "My Settings" sub-menu under the "Settings" menu in the main menu. "My Settings" has two sub-menus: "I"Set 1 "and" my settings 2 ", open these two menus and display an animation respectively.The procedure is as follows:1. Add the following content to the settingdefs. h file under the ../plutommi/MMI/se
Languages supported by MTK
National Support
Albanian
Albania
Supported
Arabic
Arabic
Supported
Bengali
Bengali
Supported
Bulgarian
Bulgaria
Supported
Canadian French
Canadian French
Supported
Croatian
Yiyu
Supported
C
MTK Android Driver: GPIO, mtkgpio
1. parameter descriptions for each column:1.1.Def.Mode: indicates the initialization mode of the gpio module after startup. Each GPIO pin can have a maximum of seven modes, and MODE0 is always the GPIO mode.
The mode of GPIO after system initialization is determined by the Def. Mode column.
1.2.M0 -- M7: Optional mode for each gpio of the M0-M1-M3-M4-M5-M6-M7.
If some items in the M0-M7 are checked, a macro definit
Use the list control on the MTK platform, search for information online, read the book MMI instance training tutorial written by Fu Gui, and modify the Code as follows:
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Fixed_list_menu my_fixed_list_menu; // list menu frameworkFixed_icontext_menuitem my_fixed_icontext_menuitem_common; // public attribute of the menu item# Define my_fixed_list_n_it
introduction:
1. Battery Charging files: BMT. c chr_parameter.c
2. There are three processes for charging: Pre-charging, constant current charging, and constant voltage charging.
1) When vbat
2) When the battery voltage is less than 3.3v, PMIC (power management chip) cannot provide vcore, VDD, and Other voltages. the CPU is shut down, and the CPU does not work at this time! The mobile phone has no response. In this mode, you only need to set the batdet foot to a lower value through the drop-
Today, we need to modify the flashing frequency of the LED light according to the latest requirements, and change the default 10000 ms to ms. However, after the modification, the result is not expected, but is changed to a constant, finally, I read the fucking code from the upper layer to the bottom layer, and finally found the problem. Next I directly wrote the MTK LED driver code:
#define PMIC_PERIOD_NUM 9// 100 * period, ex: 0.01 Hz -> 0.01 * 100
(Mcameraid, Camcorderprofile.quality_mtk_medium)) {Supported.add (integer.tostring (Camcorderprofile.quality_mtk_medium));}if (Camcorderprofile.hasprofile (Mcameraid, Camcorderprofile.quality_mtk_high)) {Supported.add (integer.tostring (Camcorderprofile.quality_mtk_high));}for (int i = 0; i LOG.E (TAG, "--------------getmtksupportedvideoquality----------i=" +supported.get (i));return supported;} Finished directly compiled./mk-t mm Framework/base/av/media/libmedia, you will get a libmedia.so lib
Environment: win7 laptop
Meta: 6.112.160.0 (the latest version of Internal Relations from Friends)
Mobile Phone platform: mt6252
Software Version: 10a
Connection line: dedicated data cable (non-standard USB download line)
For MTK developers, Meta is an important tool that can solve many problems regardless of hardware and software. It took a long time to get through the entire process. The key steps and precautions were written to avoid detours
customization source.Javaoptgen: Generate the global java options.Ptgen: Generate partition setting header scatter file.Bindergen: Generate binder related information
Sign-image: Sign all the image generated.Encrypt-image: Encrypt all the image generated.Update-api: Android default build action(Be executed if system setting or anything removed from API ).Check-modem: Check modem image consistency.Upadte-modem: Update modem image located in system. img.Modem-info: Show modem versionGen-relkey:
I recently started using C to develop MTK platform games and found many problems!
Or the requirements of Embedded C, as a JAVA programmer, these points of attention are relatively hindered in program development!
1. The variable Declaration must be placed near {
For example
viewplaincopytoclipboardprint?
voidsetFightState(int_fightState)
{
inti=0;
fightState=_fightState;
}
The two lines of code in the method body cannot be change
MTK DevelopmentAdd resources andMenuLearning notes are the content to be introduced in this article, mainly to understandMTK DevelopmentSome of the operations in this section are an article published on the Alibaba Cloud website. Here, I would like to share with you.
By following this process, you can clearly clarify how to add resources andMenuTo know why. The following code is carried out on the 6235 platform. The code names of other platforms may b
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.