RTEMS 6.1-rc6
Loading...
Searching...
No Matches
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
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)
35extern "C" {
36#endif /* __cplusplus */
37
50void XBARB_Init(XBARB_Type *base);
51
59void XBARB_Deinit(XBARB_Type *base);
60
72void 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
80/*!* @} */
81
82#endif /* _FSL_XBARB_H_ */
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
void XBARB_Deinit(XBARB_Type *base)
Shuts down the XBARB module.
Definition: fsl_xbarb.c:94
void XBARB_Init(XBARB_Type *base)
Initializes the XBARB module.
Definition: fsl_xbarb.c:79
Definition: MIMXRT1052.h:52224