RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
arm
imxrt
mcux-sdk
drivers
xbarb
fsl_xbarb.h
1
/*
2
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3
* Copyright 2016-2019 NXP
4
* All rights reserved.
5
*
6
* SPDX-License-Identifier: BSD-3-Clause
7
*/
8
9
#ifndef _FSL_XBARB_H_
10
#define _FSL_XBARB_H_
11
12
#include "fsl_common.h"
13
18
19
/*******************************************************************************
20
* Definitions
21
******************************************************************************/
22
23
#define FSL_XBARB_DRIVER_VERSION (MAKE_VERSION(2, 0, 2))
24
25
/* Macros for entire XBARB_SELx register. */
26
#define XBARB_SELx(base, output) (((volatile uint16_t *)(&((base)->SEL0)))[(uint32_t)(output) / 2UL])
27
/* Set the SELx field to a new value. */
28
#define XBARB_WR_SELx_SELx(base, input, output) XBARB_SetSignalsConnection((base), (input), (output))
29
30
/*******************************************************************************
31
* API
32
******************************************************************************/
33
34
#if defined(__cplusplus)
35
extern
"C"
{
36
#endif
/* __cplusplus */
37
42
50
void
XBARB_Init
(
XBARB_Type
*base);
51
59
void
XBARB_Deinit
(
XBARB_Type
*base);
60
72
void
XBARB_SetSignalsConnection
(
XBARB_Type
*base, xbar_input_signal_t input, xbar_output_signal_t output);
73
74
#if defined(__cplusplus)
75
}
76
#endif
/* __cplusplus */
77
79
80
/*!* @} */
81
82
#endif
/* _FSL_XBARB_H_ */
XBARB_SetSignalsConnection
void XBARB_SetSignalsConnection(XBARB_Type *base, xbar_input_signal_t input, xbar_output_signal_t output)
Configures a connection between the selected XBARB_IN[*] input and the XBARB_OUT[*] output signal.
Definition
fsl_xbarb.c:113
XBARB_Deinit
void XBARB_Deinit(XBARB_Type *base)
Shuts down the XBARB module.
Definition
fsl_xbarb.c:94
XBARB_Init
void XBARB_Init(XBARB_Type *base)
Initializes the XBARB module.
Definition
fsl_xbarb.c:79
XBARB_Type
Definition
MIMXRT1052.h:52224
Generated by
1.18.0