summaryrefslogtreecommitdiffstats
path: root/bsps/arm/imxrt/nxp
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2020-10-16 13:15:47 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2020-11-20 08:53:18 +0100
commit8abf858cf583f535b7e44c63ea40f1d30bbb5e7b (patch)
treef9dd79534d121557fd9ef080853af751e9bf47bd /bsps/arm/imxrt/nxp
parent48f6a6c302a3e1a3f8915e2503d0fe618d1af285 (diff)
downloadrtems-8abf858cf583f535b7e44c63ea40f1d30bbb5e7b.tar.bz2
bsp/imxrt: Fix warnings for imported files
Update #4180
Diffstat (limited to 'bsps/arm/imxrt/nxp')
-rw-r--r--bsps/arm/imxrt/nxp/boards/evkbimxrt1050/pin_mux.c4
-rw-r--r--bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_dcp.c4
-rw-r--r--bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_spdif.c2
3 files changed, 10 insertions, 0 deletions
diff --git a/bsps/arm/imxrt/nxp/boards/evkbimxrt1050/pin_mux.c b/bsps/arm/imxrt/nxp/boards/evkbimxrt1050/pin_mux.c
index 8e3021afcb..25ca313926 100644
--- a/bsps/arm/imxrt/nxp/boards/evkbimxrt1050/pin_mux.c
+++ b/bsps/arm/imxrt/nxp/boards/evkbimxrt1050/pin_mux.c
@@ -217,7 +217,11 @@ pin_labels:
#include "fsl_common.h"
#include "fsl_iomuxc.h"
+#ifndef __rtems__
#include "pin_mux.h"
+#else /* __rtems__ */
+#include "fsl_pin_mux.h"
+#endif /* __rtems__ */
/* FUNCTION ************************************************************************************************************
*
diff --git a/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_dcp.c b/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_dcp.c
index 4477406a73..fff5e6fe35 100644
--- a/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_dcp.c
+++ b/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_dcp.c
@@ -1212,8 +1212,12 @@ status_t DCP_HASH_Init(DCP_Type *base, dcp_handle_t *handle, dcp_hash_ctx_t *ctx
status_t status;
dcp_hash_ctx_internal_t *ctxInternal;
+#ifndef __rtems__
/* compile time check for the correct structure size */
BUILD_ASSURE(sizeof(dcp_hash_ctx_t) >= sizeof(dcp_hash_ctx_internal_t), dcp_hash_ctx_t_size);
+#else /* __rtems__ */
+ assert(sizeof(dcp_hash_ctx_t) >= sizeof(dcp_hash_ctx_internal_t));
+#endif /* __rtems__ */
uint32_t i;
status = dcp_hash_check_input_args(base, ctx, algo);
diff --git a/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_spdif.c b/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_spdif.c
index ef06114dd6..e03c28b6a0 100644
--- a/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_spdif.c
+++ b/bsps/arm/imxrt/nxp/devices/MIMXRT1052/drivers/fsl_spdif.c
@@ -811,6 +811,7 @@ void SPDIF_TransferRxHandleIRQ(SPDIF_Type *base, spdif_handle_t *handle)
}
}
+#ifndef __rtems__
#if defined(SPDIF)
void SPDIF_DriverIRQHandler(void)
{
@@ -826,3 +827,4 @@ void SPDIF_DriverIRQHandler(void)
SDK_ISR_EXIT_BARRIER;
}
#endif
+#endif /* __rtems__ */