projdefs.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. FreeRTOS V7.0.2 - Copyright (C) 2011 Real Time Engineers Ltd.
  3. ***************************************************************************
  4. * *
  5. * FreeRTOS tutorial books are available in pdf and paperback. *
  6. * Complete, revised, and edited pdf reference manuals are also *
  7. * available. *
  8. * *
  9. * Purchasing FreeRTOS documentation will not only help you, by *
  10. * ensuring you get running as quickly as possible and with an *
  11. * in-depth knowledge of how to use FreeRTOS, it will also help *
  12. * the FreeRTOS project to continue with its mission of providing *
  13. * professional grade, cross platform, de facto standard solutions *
  14. * for microcontrollers - completely free of charge! *
  15. * *
  16. * >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
  17. * *
  18. * Thank you for using FreeRTOS, and thank you for your support! *
  19. * *
  20. ***************************************************************************
  21. This file is part of the FreeRTOS distribution.
  22. FreeRTOS is free software; you can redistribute it and/or modify it under
  23. the terms of the GNU General Public License (version 2) as published by the
  24. Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
  25. >>>NOTE<<< The modification to the GPL is included to allow you to
  26. distribute a combined work that includes FreeRTOS without being obliged to
  27. provide the source code for proprietary components outside of the FreeRTOS
  28. kernel. FreeRTOS is distributed in the hope that it will be useful, but
  29. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  30. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  31. more details. You should have received a copy of the GNU General Public
  32. License and the FreeRTOS license exception along with FreeRTOS; if not it
  33. can be viewed here: http://www.freertos.org/a00114.html and also obtained
  34. by writing to Richard Barry, contact details for whom are available on the
  35. FreeRTOS WEB site.
  36. 1 tab == 4 spaces!
  37. http://www.FreeRTOS.org - Documentation, latest information, license and
  38. contact details.
  39. http://www.SafeRTOS.com - A version that is certified for use in safety
  40. critical systems.
  41. http://www.OpenRTOS.com - Commercial support, development, porting,
  42. licensing and training services.
  43. */
  44. #ifndef PROJDEFS_H
  45. #define PROJDEFS_H
  46. /*
  47. * Defines the prototype to which task functions must conform. Defined in this
  48. * file to ensure the type is known before portable.h is included.
  49. */
  50. typedef void (*TaskFunction_t)( void * );
  51. /* Defines the prototype to which task functions must conform. */
  52. typedef void (*pdTASK_CODE)( void * );
  53. #define pdTRUE ( 1 )
  54. #define pdFALSE ( 0 )
  55. #define pdPASS ( 1 )
  56. #define pdFAIL ( 0 )
  57. #define errQUEUE_EMPTY ( 0 )
  58. #define errQUEUE_FULL ( 0 )
  59. /* Error definitions. */
  60. #define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ( -1 )
  61. #define errNO_TASK_TO_RUN ( -2 )
  62. #define errQUEUE_BLOCKED ( -4 )
  63. #define errQUEUE_YIELD ( -5 )
  64. #endif /* PROJDEFS_H */