drv_common.h 468 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-08-20 breo.com first version
  9. */
  10. #ifndef __DRV_COMMON_H__
  11. #define __DRV_COMMON_H__
  12. #include <rtthread.h>
  13. #include <rthw.h>
  14. #ifdef RT_USING_DEVICE
  15. #include <rtdevice.h>
  16. #endif
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. void rt_hw_us_delay(rt_uint32_t us);
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif