/* * Copyright (c) 2020 AIIT XUOS Lab * XiUOS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ /** * @file device.h * @brief support to include RESOURCES of all drivers * @version 1.0 * @author AIIT XUOS Lab * @date 2021-04-24 */ #ifndef DEVICE_H #define DEVICE_H #include #include #include #include #include #include #ifdef RESOURCES_RTC #include #include #endif #ifdef RESOURCES_SPI #include #include #endif #ifdef RESOURCES_TOUCH #include #include #endif #ifdef RESOURCES_LCD #include #include #endif #ifdef RESOURCES_USB #include #include #ifdef RESOURCES_USB_HOST #ifdef BSP_USING_STM32_USBH #include #endif #endif #endif #ifdef RESOURCES_SERIAL #include #include void InstallConsole(const char *bus_name, const char *drv_name, const char *dev_name); HardwareDevType ObtainConsole(void); #endif #ifdef RESOURCES_I2C #include #include #endif #ifdef RESOURCES_WDT #include #include #endif #ifdef RESOURCES_SDIO #include #include #endif #ifdef RESOURCES_PIN #include #include #endif #ifdef RESOURCES_CAN #include #include #endif #ifdef RESOURCES_HWTIMER #include #include #endif #ifdef RESOURCES_ADC #include #include #endif #ifdef RESOURCES_DAC #include #include #endif #ifdef RESOURCES_CAMERA #include #include #endif #ifdef RESOURCES_KPU #include #include #endif #endif