drv_comm.h 450 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-08-23 lianzhian first implementation.
  9. */
  10. #ifndef __DRV_COMM_H__
  11. #define __DRV_COMM_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef ARRAY_SIZE
  16. #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
  17. #endif
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* __DRV_HWTIMER_H__ */