/* * Copyright (c) 2020-2022, CQ 100ask Development Team * * Change Logs: * Date Author Notes * 2022-05-29 Alen first version */ #ifndef __DRV_COMMON_H__ #define __DRV_COMMON_H__ #include #include #include #include #include #include #ifdef RT_USING_PIN #include #include #include #endif #ifdef RT_USING_SERIAL #include #endif #ifdef RT_USING_SPI #include #endif #ifdef RT_USING_DEVICE #include #endif #ifdef __cplusplus extern "C" { #endif void _Error_Handler(char *s, int num); #ifndef Error_Handler #define Error_Handler() _Error_Handler(__FILE__, __LINE__) #endif #define DMA_NOT_AVAILABLE ((DMA_INSTANCE_TYPE *)0xFFFFFFFFU) #ifdef __cplusplus } #endif #endif