MTK方案内部培训手册
发布时间:2024-11-02
发布时间:2024-11-02
ARM/D
PGA QSP/F
Q:
Man Machine Interface
313638
71
4
Agenda
ARM
/D
SP
/F
PG
A Q
Q:
313638
71
4
ARM
/D
SP/F
PG
A Q
Q:
313638
71
4
MTK Software Architecture
ARM
/D
SP
/F
PG
A Q
Q:
313638
Software ArchitectureKAL and OSLDate Type
Task Management
71
4
ARM/DSP/FPGA Q
Q:
313638
71
4
Software Architecture
SoftwareArchitecture –abbreviations
ARM
/D
SP
/F
RMI: Remote MMI, i.e., PC side, which uses AT commands to communicate with Protocol stack.
L4: The adaptation layer between MMI/AT and protocol stack.
L4A: Layer 4 Adaptation to translate primitives sent from upper layers to function calls.
L4C: Layer 4 Controller, coordinates all L4 modules to serve upper layers.ATCI: AT Command Interpreter.
UEM: User Equipments module used to abstract basic device drivers like keypad, LED, GPIO.
PHB: Phone Book management.
SMU: Security Management (SIM, STK).
CSM: Call Service Management (bearer capability handling, CSD/FAX service, CC, SS).
RAC: Registration Access Control (GSM/GPRS registration management,PLMN list/selection, RSSI report)
SMSAL: SMS Application Layer (message storage, MO/MT messages, CB). TCM: Terminal Context Management (PDP context profiles, context
activate/deactivate, relay of packet data), interface to PPP/TCPIP/SNDCP.ENG: Engineer Mode to log information.
PG
A Q
Q:
313638
71
4
KAL (Kernel Abstraction Layer)13/FGSM Handset Software
63 PG
87
A
:3
14
XGSM Handset Software Kernel Abstraction Layer (KAL)Test/Debug Facilities
AR
M
/D
SP
Target Real Time Operating System
Target Real Time Operating System
Portability Common design philosophy Test/Debug facilities Easier code integration7
KAL ServicesKAL Services
:3
13
63
87Timer ControlTask-B
/D
SP
/F
PG
A
AR
M
Task-A
14Task management/ communication/ synchronization Resource/ Memory management Test/ Logging/ Simulation facilities Exception handling
Reference: KAL_ProgrammingGuide_20041005.pdf SystemServiceUserManual_20050527.pdf8
OSL:3 A QQ 13N.B. to ensure all programs within MMI task can run correctly on PC, use of OSL APIs is MUST.
63
87
14
AR
M
OSL
PC simulator– simulate the OSL services on Win32 to facilitate development and debugging MMI task on PC.
/D
SPKAL Nucleus, or other RTOS
/F
PG
Data Types
Kal_non_specific_general_types.h
ARM
PixtelDataTypes.h
/D
OSL specific data types used within MMI Tasks:
SP
/F
PG
Kal_release.h
A Q
KAL specific data types and functions’prototypes:
Q:
313638
General data types:
71
4
Task Management & Identification
Defined in “Stack_config.h”
Used to define index of all modules and all tasksDefined in “syscomp_config.c”
Used to map MODULE-ID to TASK-ID
Defined in “syscomp_config.c”
Used to define information of all tasks, e.g., task’s name, task queue’s name, priority, size of external/internal queue, task creation function, whether to use internal http://ed for customer defined modules or tasks.
Global array containing component task information, which will be filled in while calling stack_init_comp_info().
Global array containing component task information, which will be filled in while calling stack_init_module_info().
custom_comp_config_tbl[MAX_CUSTOM_TASKS]
task_info_g[RPS_TOTAL_STACK_TASKS + 1]
module_info_g[MAX_MULTIMOD_TASK_NUM]
ARM
/D
SP
sys_comp_config_tbl[RPS_TOTAL_STACK_TASKS + 1]
/F
PG
A Q
mod_task_g[RPS_TOTAL_STACK_MODULES]
Q:
313638
module_typeandtask_indx_type
71
4
AR M/D SP/F PG A QQ
:3
Task Routines13 63 87 14
Task Communication14App_ltlcom.h App_ltlcom.h Data structure of Data structure of massage used for intermassage used for interlayer communication layer communication
AR
M
/D
SP
/F
PG
A
:3
13
63
87
Stack_ltlcom.h Stack_ltlcom.h Macro and API used to Macro and API used to send/free messages send/free messages
Task Communication– example 114 13To allocate memory from shared To allocate memory from shared memory pool. memory pool. Ctrl_buff_pool.h Ctrl_buff_pool.h Define size and number of Define size and number of control buffer (memory pool) control buffer (memory pool)
AR
M
/D
SP
/F
PG
A
:3
63
87
To initialize specific To initialize specific module’s parameter pointer module’s parameter pointer and peer buffer pointer and peer buffer pointer before use it. before use it. (module_ilm_g[module_id]) (module_ilm_g[module_id])
Send message to other task Send message to other task
Task Communication– example 213 63 87 14To receive message To receive message from external queue from external queue
/D
SP
/F
PG
A
:3
AR
To receive message To receive message from internal queue from internal queue
M
QueueGprot.h QueueGprot.h Usage of OSL send/receive internal/ Usage of OSL send/receive internal/ external msg. external msg.15
ARM/DSP
A Q/FPG
Q:
313638
71
4
上一篇:丧事三鞠躬主持词
下一篇:我国企业采购成本管理的现实分析