Abbreviations and Acronyms
HAL Hardware Abstraction Layer
VAL VIA Abstraction Layer
VTUI VIA Telecom UI
ASL Application Support Layer
PS Protocol Stack
ResEditor Resource Editor
Resgen Resource Generator
MS Mobile Station
cp:各种底层文件的集合,包括协议栈,DSPM/DSPV,L1D/L1A软件。
cp下目录及文件:
ai
app
bm
boot
boot.lnk
build_201c.bat
build_grace.bat
build_muse.bat
build_ourea.bat
build_selle.bat
cat.exe
cp2
cp3
CP.LN
cp2.lnk
cp3.lnk
cpflash.LNK
cpflash_16_4.LNK
cpflash_16_4_NoDS.LNK
cpflash_16_8.LNK
cpflash_16_8_G.LNK
cpflash_16_8_NoDS.LNK
cpflash_16_8_NoDS_G.LNK
cpflash_4_2_NoDS.LNK
cpflash_4_2_NoDS_O.LNK
cpflash_8_4.LNK
cpflash_8_4_NoDS.LNK
cpflash_NoDS.LNK
cpsim.lnk
cpver.c
cust
dbm
exe
fsm
hl
hwd
image
inc
iop
ipc
jt
l1d
lmd
CP_Targets.mak
Makefile
makefile_end
makefile_feature
makefile_feature_def
makefile_hdr
media
mkdate.exe
mon
nu
nucleus
obj
pde
ps
pst
res
resource.bat
rlp
rom
runit.exe
shared
sys
tst
ui
uim
val
下面对代码进行分类:
CP 代码主要有下面一些模块(目录),
1. 协议相关(ai/dbm/hl/l1a/l1d/lmd/ps/rlp/ipc)
2. 应用相关(ui/app/res/val/brew/vaawab)
3. 驱动相关(bm/boot/hwd/media/uim)
4. 文件系统相关(fsm)
5. 操作系统相关(nu/nucleus/sys/exe)
6. 公共头文件(inc)
7. 测试调试相关(pst/tst/jt/mon/iop)
8. 客户化相关(cust)
其他文件
Makefile文件
CP_Targets.mak
Makefile
makefile_end
makefile_feature
makefile_feature_def
makefile_hdr
编译批处理命令
build_201c.bat
build_grace.bat
build_muse.bat
build_ourea.bat
build_selle.bat
201c,grace,muse,ourea,selle是不同的平台,他们的UI配置,Flash类型,LCD尺寸等不同。
FLASH
cpflash.LNK
cpflash_16_4.LNK
cpflash_16_4_NoDS.LNK
cpflash_16_8.LNK
cpflash_16_8_G.LNK
cpflash_16_8_NoDS.LNK
cpflash_16_8_NoDS_G.LNK
cpflash_4_2_NoDS.LNK
cpflash_4_2_NoDS_O.LNK
cpflash_8_4.LNK
cpflash_8_4_NoDS.LNK
cpflash_NoDS.LNK
lnk文件命名规则 cpflash_大小_无数据业务.lnk
三个EXE文件
cat.exe
mkdate.exe
runit.exe
前两个就不用解释了,
runit.exe RunIt Executable with Cat parameter
资源批处理文件
resource.bat
添加新的运用程序,添加一些资源后,要先运行这个脚本。
单一的C文件
cpver.c
不言自明了,定义软件版本号
代码编译完后会生成boot.axf、cp.axf、 boot.rom和cp.rom ,
具体目录会根据CBP硬件版本的不同目录文件名会有不同(如ram_revc2或rom_revd0等)。
boot.axf、cp.axf用于audio等一些调试,boot.rom和cp.rom用于手机或模块。
最后,简单讲下与AT相关的内容。
ai | |- aic
- isotel -|- aie
|- aiw
ai,AT interpret。isotel 是ISOTEL Corp. 大概代码被VIA拿用就是了。
isotel分为三个目录:
aic 是给客户可定制的AT,
aie Ai engine for kerkel process,提供解析AT,数据结构,宏等头文件。
aiw Ai wrapper to interactive with other module.
与AT相关的文件还有 val\ValATCmd.c,常用上报命令默认开关和常用命令的默认设置都在这文件里设置,里面还提供了短信编码相关的函数等。
VIA CDMA也没什么好写的了,人家文档也写的很好,花点时间针对性的看看,就很快能上手。工作1年多,接触了4个手机平台,broncho(我们的项目Linux+gtk,已宣告失败),mtk,via,android,都是从事与AT打交道的活,有时间,该总结一下这方面的设计。
No comments:
Post a Comment