Run-Time Interfaces/Integration Guide
I-A-71
3.4
EDMA3 Driver Initialization
EDMA3 Driver should be initialized first before it can be used by the
peripheral drivers or application. During initialization, EDMA3 driver
object is created first and then a region specific EDMA3 driver
instance is opened. Following are the APIs which are used for the
initialization:
/* EDMA3 Driver Object Creation */
EDMA3_DRV_Result EDMA3_DRV_create (unsigned int
phyCtrllerInstId, const EDMA3_DRV_GblConfigParams
*gblCfgParams, const void *param)
/* EDMA3 Driver Instance Opening */
EDMA3_DRV_Result EDMA3_DRV_open (unsigned int
phyCtrllerInstId, const EDMA3_DRV_InitConfig *initCfg,
EDMA3_DRV_Result *errorCode)
These APIs should be mandatorily called once by the global
initialization routine or by the user itself, for EDMA3 driver
functioning. Also, they can be called further for other usage.
Note 1:
During the initialization sequence, EDMA3 Driver, being an
OS independent module, doesn’t register various interrupt handlers
with the underlying OS. The application which is using the EDMA3
Driver should register the various Interrupt Handlers (ISRs in
Resource Manager) with the underlying OS on which it is running.
Similarly, the application should un-register the previously
registered Interrupt Handlers when the Driver instance is no more
required.
Note 2:
While un-registering the interrupt handlers, it should be
taken care by the application that no other applications, using the
interrupt functionality, are functioning. Otherwise, the un-
registration done by one application may stop other applications.
The un-registration should be done only when no more
applications, using the interrupt functionality, are functioning.
Содержание EDMA3
Страница 1: ...November 2009 Anuj Aggarwal Document Version 01 11 00 XX EDMA3 Driver U s e r s G u i d e User Guide ...
Страница 12: ......
Страница 17: ...EDMA3 Driver Introduction I 1 5 ...
Страница 20: ......
Страница 40: ...Run Time Interfaces Integration Guide A 12 EDMA3_DRV_IOCTL_MAX_IOCTL Max IOCTL ...
Страница 75: ...Run Time Interfaces Integration Guide I A 47 Errors EDMA3_DRV_E_INVALID_PARAM ...
Страница 107: ...Run Time Interfaces Integration Guide I A 79 ...