mtk

mtk
采用联发科技的MT6205、MT6217、MT6218、MT6219、MT6226、MT6227、MT6228基带芯片,芯片均采用ARM7的核。
MT6305、MT6305B为电源管理芯片
MT6129为RF芯片
RF3146(7×7mm)、RF3146D(双频)、RF3166(6×6mm)为RFMD的PA集成度较高 成本低
目前市场上主流的平台有TI、摩托罗拉、飞利浦、MTK、ADI、展讯、英飞凌、凯明等。我个人意见是TI平台占有率最高,而MTK平台开发最容易。目前市场上飞利浦平台在功耗上相对有优势,TI平台和MTK平台在手机成本上有着相对的优势。服务方面所有手机平台没有特别大的差别
中国台湾的MTK公司的产品因为集成较多的多媒体功能和较低的价格在大陆手机公司和手机设计公司得到广泛的应用

 

Mtk platform summarize

 

1.       global variable use

1.1   assure one application one entry and one exit function, so the memory can easily manager

1.2   one application has one global struct (cconv_context_struct *g_cconv_cntx = NULL;), once malloc and once free, not waste time, and also avoid too many global variable

1.3   because the stack is limits to 2k, so you can define the big array in the struct, it can be convenience

1.4   you can define the data which you must use in the application in the struct, so your application do not need to define other data, it is convenience

1.5   avoid some frequent occurring memory problem 

1.6   you must add as prefix *g_snmp_cntx before your global variable, it mean a global module context pointer

1.7   you need add comment after each member of the struct, so the program can be easily understood by others

1.8   you must assign it to null in your definition (*g_cconv_cntx = NULL;), so to avoid other people use is before malloc it

 

 

2.       code file manager 

2.1   in header(.h) file

2.1.1          /* Define (void)*/

2.1.2          /* Typedef  (enum) */

2.1.3          /* Extern Global Variable (void) */

2.1.4          /* Extern Global Function (export) */

 

2.2   In implement(.c) file

2.2.1          /* Include: MMI header file */

2.2.2          /* Define (app local define)*/

2.2.3          /* Typedef  (global struct) */

2.2.4          /* Local Variable (void) */

2.2.5          /* Local Function (declare) */

2.2.6          /* Global Variable (local and extern) */

2.2.7          /* Global Function (extern)*/

2.2.8          /* local function implement */

 

 

3.       header file

3.1 eg.

#ifndef _MMI_CURRENCYCONV_H

#define _MMI_CURRENCYCONV_H

#include "MMI_features.h"

#ifdef __MMI_EXTENDED_CURRENCY_CONVERTER__

#include "PixtelDataTypes.h"

3.2 #ifndef #define to avoid redefine header file

3.3 #include "MMI_features.h" to include feature of the project

3.4 #ifdef __MMI_EXTENDED_CURRENCY_CONVERTER__ to control if this app code should be compiled to reduce the project code weight

3.5 #include "PixtelDataTypes.h" to define common data type

 

4.       file manager

When you open a file, you must close it after use, if you do not do that, it will be memory leak, after about 10 – 30 times the functions executing, the memory overflow, and the mobile reboot.

Open (&file) && Close (&file) must match

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/libo_163/archive/2006/10/24/1349439.aspx

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值