/* * Copyright (c) 2016-2023 ARM Limited * * 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 platform_retarget_dev.h * \brief The structure definitions in this file are exported based on the peripheral * definitions from device_cfg.h. * This retarget 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 __M2354_RETARGET_DEV_H__ #define __M2354_RETARGET_DEV_H__ #include "device_cfg.h" /* ======= Defines peripheral configuration structures ======= */ /* ======= and includes generic driver headers if necessary ======= */ /* ARM UART driver structures */ #ifdef ARM_UART0_S #include "arm_uart_drv.h" extern struct arm_uart_dev_t ARM_UART0_DEV_S; #endif #ifdef ARM_UART0_NS #include "arm_uart_drv.h" extern struct arm_uart_dev_t ARM_UART0_DEV_NS; #endif /* CMSDK Timer driver structures */ #ifdef CMSDK_TIMER0_S #include "timer_cmsdk.h" extern struct cmsdk_timer_dev_t CMSDK_TIMER0_DEV_S; #endif #ifdef CMSDK_TIMER0_NS #include "timer_cmsdk.h" extern struct cmsdk_timer_dev_t CMSDK_TIMER0_DEV_NS; #endif #ifdef CMSDK_TIMER1_S #include "timer_cmsdk.h" extern struct cmsdk_timer_dev_t CMSDK_TIMER1_DEV_S; #endif #ifdef CMSDK_TIMER1_NS #include "timer_cmsdk.h" extern struct cmsdk_timer_dev_t CMSDK_TIMER1_DEV_NS; #endif #endif /* __M2354_RETARGET_DEV_H__ */