rtconfig_project.h 1.3 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2019, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-03-27 xuzhuoyi the first version
  9. */
  10. #ifndef __RTCONFIG_PROJECT_H__
  11. #define __RTCONFIG_PROJECT_H__
  12. typedef signed char rt_int8_t; /**< 8bit integer type */
  13. typedef signed short rt_int16_t; /**< 16bit integer type */
  14. typedef signed long rt_int32_t; /**< 32bit integer type */
  15. typedef signed long long rt_int64_t; /**< 64bit integer type */
  16. typedef unsigned char rt_uint8_t; /**< 8bit unsigned integer type */
  17. typedef unsigned short rt_uint16_t; /**< 16bit unsigned integer type */
  18. typedef unsigned long rt_uint32_t; /**< 32bit unsigned integer type */
  19. typedef unsigned long long rt_uint64_t; /**< 64bit unsigned integer type */
  20. typedef unsigned long rt_size_t; /**< Type for size number */
  21. /* C28X automatically disable interrupt in interrupt service routine.
  22. * We need to enable manually to allow for interrupt nesting by calling
  23. * this macro at the start of preemptible interrupt service routines*/
  24. #define ALLOW_ISR_PREEMPT() __asm(" CLRC INTM")
  25. #endif