/* * Copyright (c) 2019 Arm Limited. All rights reserved. * * Licensed under the Apache License Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing software * distributed under the License is distributed on an "AS IS" BASIS * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * \file device_definition.h * \brief The structure definitions in this file are exported based on the * peripheral definitions from device_cfg.h. * This file is meant to be used as a helper for baremetal * applications and/or as an example of how to configure the generic * driver structures. */ #ifndef __DEVICE_DEFINITION_H__ #define __DEVICE_DEFINITION_H__ #include "device_cfg.h" #ifdef __cplusplus extern "C" { #endif /* ======= Defines peripheral configuration structures ======= */ /* UART CMSDK driver structures */ #ifdef UART0_CMSDK_S #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART0_DEV_S; #endif #ifdef UART0_CMSDK_NS #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART0_DEV_NS; #endif #ifdef UART1_CMSDK_S #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART1_DEV_S; #endif #ifdef UART1_CMSDK_NS #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART1_DEV_NS; #endif #ifdef UART2_CMSDK_S #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART2_DEV_S; #endif #ifdef UART2_CMSDK_NS #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART2_DEV_NS; #endif #ifdef UART3_CMSDK_S #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART3_DEV_S; #endif #ifdef UART3_CMSDK_NS #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART3_DEV_NS; #endif #ifdef UART4_CMSDK_S #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART4_DEV_S; #endif #ifdef UART4_CMSDK_NS #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART4_DEV_NS; #endif #ifdef UART5_CMSDK_S #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART5_DEV_S; #endif #ifdef UART5_CMSDK_NS #include "uart_cmsdk_drv.h" extern struct uart_cmsdk_dev_t ARM_UART5_DEV_NS; #endif /* ARM PPC driver structures */ #ifdef AHB_PPC0_S #include "ppc_sse200_drv.h" extern struct ppc_sse200_dev_t AHB_PPC0_DEV_S; #endif #ifdef AHB_PPCEXP0_S #include "ppc_sse200_drv.h" extern struct ppc_sse200_dev_t AHB_PPCEXP0_DEV_S; #endif #ifdef APB_PPC0_S #include "ppc_sse200_drv.h" extern struct ppc_sse200_dev_t APB_PPC0_DEV_S; #endif #ifdef APB_PPC1_S #include "ppc_sse200_drv.h" extern struct ppc_sse200_dev_t APB_PPC1_DEV_S; #endif #ifdef APB_PPCEXP0_S #include "ppc_sse200_drv.h" extern struct ppc_sse200_dev_t APB_PPCEXP0_DEV_S; #endif #ifdef APB_PPCEXP1_S #include "ppc_sse200_drv.h" extern struct ppc_sse200_dev_t APB_PPCEXP1_DEV_S; #endif #ifdef APB_PPCEXP2_S #include "ppc_sse200_drv.h" extern struct ppc_sse200_dev_t APB_PPCEXP2_DEV_S; #endif /* CMSDK Timer driver structures */ #ifdef CMSDK_TIMER0_S #include "timer_cmsdk_drv.h" extern struct timer_cmsdk_dev_t CMSDK_TIMER0_DEV_S; #endif #ifdef CMSDK_TIMER0_NS #include "timer_cmsdk_drv.h" extern struct timer_cmsdk_dev_t CMSDK_TIMER0_DEV_NS; #endif #ifdef CMSDK_TIMER1_S #include "timer_cmsdk_drv.h" extern struct timer_cmsdk_dev_t CMSDK_TIMER1_DEV_S; #endif #ifdef CMSDK_TIMER1_NS #include "timer_cmsdk_drv.h" extern struct timer_cmsdk_dev_t CMSDK_TIMER1_DEV_NS; #endif /* ARM MPC SSE 200 driver structures */ #ifdef MPC_ISRAM0_S #include "mpc_sie200_drv.h" extern struct mpc_sie200_dev_t MPC_ISRAM0_DEV_S; #endif #ifdef MPC_ISRAM1_S #include "mpc_sie200_drv.h" extern struct mpc_sie200_dev_t MPC_ISRAM1_DEV_S; #endif #ifdef MPC_ISRAM2_S #include "mpc_sie200_drv.h" extern struct mpc_sie200_dev_t MPC_ISRAM2_DEV_S; #endif #ifdef MPC_ISRAM3_S #include "mpc_sie200_drv.h" extern struct mpc_sie200_dev_t MPC_ISRAM3_DEV_S; #endif #ifdef MPC_BRAM_S #include "mpc_sie200_drv.h" extern struct mpc_sie200_dev_t MPC_BRAM_DEV_S; #endif #ifdef MPC_QSPI_S #include "mpc_sie200_drv.h" extern struct mpc_sie200_dev_t MPC_QSPI_DEV_S; #endif #ifdef MPC_DDR4_S #include "mpc_sie200_drv.h" extern struct mpc_sie200_dev_t MPC_DDR4_DEV_S; #endif #ifdef MPS3_IO_S #include "arm_mps3_io_drv.h" extern struct arm_mps3_io_dev_t MPS3_IO_DEV_S; #endif #ifdef MPS3_IO_NS #include "arm_mps3_io_drv.h" extern struct arm_mps3_io_dev_t MPS3_IO_DEV_NS; #endif #ifdef __cplusplus } #endif #endif /* __DEVICE_DEFINITION_H__ */