rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
fsl_dmamux.c File Reference

Functions

static uint32_t DMAMUX_GetInstance (DMAMUX_Type *base)
 Get instance number for DMAMUX.
 
void DMAMUX_Init (DMAMUX_Type *base)
 Initializes the DMAMUX peripheral.
 
void DMAMUX_Deinit (DMAMUX_Type *base)
 Deinitializes the DMAMUX peripheral.
 

Variables

static DMAMUX_Type *const s_dmamuxBases [] = DMAMUX_BASE_PTRS
 Array to map DMAMUX instance number to base pointer.
 
static const clock_ip_name_t s_dmamuxClockName [] = DMAMUX_CLOCKS
 Array to map DMAMUX instance number to clock name.
 

Function Documentation

◆ DMAMUX_GetInstance()

static uint32_t DMAMUX_GetInstance ( DMAMUX_Type *  base)
static

Get instance number for DMAMUX.

Parameters
baseDMAMUX peripheral base address.

Definition at line 47 of file fsl_dmamux.c.

48{
49 uint32_t instance;
50
51 /* Find the instance index from base address mappings. */
52 for (instance = 0; instance < ARRAY_SIZE(s_dmamuxBases); instance++)
53 {
54 if (s_dmamuxBases[instance] == base)
55 {
56 break;
57 }
58 }
59
60 assert(instance < ARRAY_SIZE(s_dmamuxBases));
61
62 return instance;
63}
static BenchController instance
static DMAMUX_Type *const s_dmamuxBases[]
Array to map DMAMUX instance number to base pointer.
Definition fsl_dmamux.c:37

Referenced by DMAMUX_Deinit(), and DMAMUX_Init().

Here is the caller graph for this function:

Variable Documentation

◆ s_dmamuxBases

DMAMUX_Type* const s_dmamuxBases[] = DMAMUX_BASE_PTRS
static

Array to map DMAMUX instance number to base pointer.

Definition at line 37 of file fsl_dmamux.c.

Referenced by DMAMUX_GetInstance().

◆ s_dmamuxClockName

const clock_ip_name_t s_dmamuxClockName[] = DMAMUX_CLOCKS
static

Array to map DMAMUX instance number to clock name.

Definition at line 41 of file fsl_dmamux.c.

Referenced by DMAMUX_Deinit(), and DMAMUX_Init().

Go to the source code of this file.