rtlegacy.h 931 B

123456789101112131415161718192021222324252627282930313233343536373839
  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-11-14 Meco Man the first version
  9. */
  10. #ifndef __RT_LEGACY_H__
  11. #define __RT_LEGACY_H__
  12. #include <rtconfig.h>
  13. #include <rtdef.h>
  14. /* rtdef.h */
  15. /* legacy version macros (<5.0.0) */
  16. #define RT_VERSION RT_VERSION_MAJOR /**< major version number */
  17. #define RT_SUBVERSION RT_VERSION_MINOR /**< minor version number */
  18. #define RT_REVISION RT_VERSION_PATCH /**< revise version number */
  19. /* legacy attributes define (<5.0.0) */
  20. #define RT_SECTION rt_section
  21. #define RT_WEAK rt_weak
  22. #define RT_USED rt_used
  23. #ifndef ALIGN
  24. #define ALIGN rt_align
  25. #endif
  26. /* IPC */
  27. #ifdef RT_USING_DEVICE_IPC
  28. #include "ipc/workqueue_legacy.h"
  29. #endif /* RT_USING_DEVICE_IPC */
  30. /* FinSH */
  31. #endif /* __RT_LEGACY_H__ */