Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: frdm_k64f_freertos_lib
src/include/projdefs.h@0:62cd296ba2a7, 2017-05-31 (annotated)
- Committer:
- fep
- Date:
- Wed May 31 02:27:10 2017 +0000
- Revision:
- 0:62cd296ba2a7
FreeRTOS v9.0.0 for Cortex-M4F (FRDM-K64F and others...)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| fep | 0:62cd296ba2a7 | 1 | /* |
| fep | 0:62cd296ba2a7 | 2 | FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. |
| fep | 0:62cd296ba2a7 | 3 | All rights reserved |
| fep | 0:62cd296ba2a7 | 4 | |
| fep | 0:62cd296ba2a7 | 5 | VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. |
| fep | 0:62cd296ba2a7 | 6 | |
| fep | 0:62cd296ba2a7 | 7 | This file is part of the FreeRTOS distribution. |
| fep | 0:62cd296ba2a7 | 8 | |
| fep | 0:62cd296ba2a7 | 9 | FreeRTOS is free software; you can redistribute it and/or modify it under |
| fep | 0:62cd296ba2a7 | 10 | the terms of the GNU General Public License (version 2) as published by the |
| fep | 0:62cd296ba2a7 | 11 | Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception. |
| fep | 0:62cd296ba2a7 | 12 | |
| fep | 0:62cd296ba2a7 | 13 | *************************************************************************** |
| fep | 0:62cd296ba2a7 | 14 | >>! NOTE: The modification to the GPL is included to allow you to !<< |
| fep | 0:62cd296ba2a7 | 15 | >>! distribute a combined work that includes FreeRTOS without being !<< |
| fep | 0:62cd296ba2a7 | 16 | >>! obliged to provide the source code for proprietary components !<< |
| fep | 0:62cd296ba2a7 | 17 | >>! outside of the FreeRTOS kernel. !<< |
| fep | 0:62cd296ba2a7 | 18 | *************************************************************************** |
| fep | 0:62cd296ba2a7 | 19 | |
| fep | 0:62cd296ba2a7 | 20 | FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY |
| fep | 0:62cd296ba2a7 | 21 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| fep | 0:62cd296ba2a7 | 22 | FOR A PARTICULAR PURPOSE. Full license text is available on the following |
| fep | 0:62cd296ba2a7 | 23 | link: http://www.freertos.org/a00114.html |
| fep | 0:62cd296ba2a7 | 24 | |
| fep | 0:62cd296ba2a7 | 25 | *************************************************************************** |
| fep | 0:62cd296ba2a7 | 26 | * * |
| fep | 0:62cd296ba2a7 | 27 | * FreeRTOS provides completely free yet professionally developed, * |
| fep | 0:62cd296ba2a7 | 28 | * robust, strictly quality controlled, supported, and cross * |
| fep | 0:62cd296ba2a7 | 29 | * platform software that is more than just the market leader, it * |
| fep | 0:62cd296ba2a7 | 30 | * is the industry's de facto standard. * |
| fep | 0:62cd296ba2a7 | 31 | * * |
| fep | 0:62cd296ba2a7 | 32 | * Help yourself get started quickly while simultaneously helping * |
| fep | 0:62cd296ba2a7 | 33 | * to support the FreeRTOS project by purchasing a FreeRTOS * |
| fep | 0:62cd296ba2a7 | 34 | * tutorial book, reference manual, or both: * |
| fep | 0:62cd296ba2a7 | 35 | * http://www.FreeRTOS.org/Documentation * |
| fep | 0:62cd296ba2a7 | 36 | * * |
| fep | 0:62cd296ba2a7 | 37 | *************************************************************************** |
| fep | 0:62cd296ba2a7 | 38 | |
| fep | 0:62cd296ba2a7 | 39 | http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading |
| fep | 0:62cd296ba2a7 | 40 | the FAQ page "My application does not run, what could be wrong?". Have you |
| fep | 0:62cd296ba2a7 | 41 | defined configASSERT()? |
| fep | 0:62cd296ba2a7 | 42 | |
| fep | 0:62cd296ba2a7 | 43 | http://www.FreeRTOS.org/support - In return for receiving this top quality |
| fep | 0:62cd296ba2a7 | 44 | embedded software for free we request you assist our global community by |
| fep | 0:62cd296ba2a7 | 45 | participating in the support forum. |
| fep | 0:62cd296ba2a7 | 46 | |
| fep | 0:62cd296ba2a7 | 47 | http://www.FreeRTOS.org/training - Investing in training allows your team to |
| fep | 0:62cd296ba2a7 | 48 | be as productive as possible as early as possible. Now you can receive |
| fep | 0:62cd296ba2a7 | 49 | FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers |
| fep | 0:62cd296ba2a7 | 50 | Ltd, and the world's leading authority on the world's leading RTOS. |
| fep | 0:62cd296ba2a7 | 51 | |
| fep | 0:62cd296ba2a7 | 52 | http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products, |
| fep | 0:62cd296ba2a7 | 53 | including FreeRTOS+Trace - an indispensable productivity tool, a DOS |
| fep | 0:62cd296ba2a7 | 54 | compatible FAT file system, and our tiny thread aware UDP/IP stack. |
| fep | 0:62cd296ba2a7 | 55 | |
| fep | 0:62cd296ba2a7 | 56 | http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate. |
| fep | 0:62cd296ba2a7 | 57 | Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS. |
| fep | 0:62cd296ba2a7 | 58 | |
| fep | 0:62cd296ba2a7 | 59 | http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High |
| fep | 0:62cd296ba2a7 | 60 | Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS |
| fep | 0:62cd296ba2a7 | 61 | licenses offer ticketed support, indemnification and commercial middleware. |
| fep | 0:62cd296ba2a7 | 62 | |
| fep | 0:62cd296ba2a7 | 63 | http://www.SafeRTOS.com - High Integrity Systems also provide a safety |
| fep | 0:62cd296ba2a7 | 64 | engineered and independently SIL3 certified version for use in safety and |
| fep | 0:62cd296ba2a7 | 65 | mission critical applications that require provable dependability. |
| fep | 0:62cd296ba2a7 | 66 | |
| fep | 0:62cd296ba2a7 | 67 | 1 tab == 4 spaces! |
| fep | 0:62cd296ba2a7 | 68 | */ |
| fep | 0:62cd296ba2a7 | 69 | |
| fep | 0:62cd296ba2a7 | 70 | #ifndef PROJDEFS_H |
| fep | 0:62cd296ba2a7 | 71 | #define PROJDEFS_H |
| fep | 0:62cd296ba2a7 | 72 | |
| fep | 0:62cd296ba2a7 | 73 | /* |
| fep | 0:62cd296ba2a7 | 74 | * Defines the prototype to which task functions must conform. Defined in this |
| fep | 0:62cd296ba2a7 | 75 | * file to ensure the type is known before portable.h is included. |
| fep | 0:62cd296ba2a7 | 76 | */ |
| fep | 0:62cd296ba2a7 | 77 | typedef void (*TaskFunction_t)( void * ); |
| fep | 0:62cd296ba2a7 | 78 | |
| fep | 0:62cd296ba2a7 | 79 | /* Converts a time in milliseconds to a time in ticks. This macro can be |
| fep | 0:62cd296ba2a7 | 80 | overridden by a macro of the same name defined in FreeRTOSConfig.h in case the |
| fep | 0:62cd296ba2a7 | 81 | definition here is not suitable for your application. */ |
| fep | 0:62cd296ba2a7 | 82 | #ifndef pdMS_TO_TICKS |
| fep | 0:62cd296ba2a7 | 83 | #define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) ) |
| fep | 0:62cd296ba2a7 | 84 | #endif |
| fep | 0:62cd296ba2a7 | 85 | |
| fep | 0:62cd296ba2a7 | 86 | #define pdFALSE ( ( BaseType_t ) 0 ) |
| fep | 0:62cd296ba2a7 | 87 | #define pdTRUE ( ( BaseType_t ) 1 ) |
| fep | 0:62cd296ba2a7 | 88 | |
| fep | 0:62cd296ba2a7 | 89 | #define pdPASS ( pdTRUE ) |
| fep | 0:62cd296ba2a7 | 90 | #define pdFAIL ( pdFALSE ) |
| fep | 0:62cd296ba2a7 | 91 | #define errQUEUE_EMPTY ( ( BaseType_t ) 0 ) |
| fep | 0:62cd296ba2a7 | 92 | #define errQUEUE_FULL ( ( BaseType_t ) 0 ) |
| fep | 0:62cd296ba2a7 | 93 | |
| fep | 0:62cd296ba2a7 | 94 | /* FreeRTOS error definitions. */ |
| fep | 0:62cd296ba2a7 | 95 | #define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ( -1 ) |
| fep | 0:62cd296ba2a7 | 96 | #define errQUEUE_BLOCKED ( -4 ) |
| fep | 0:62cd296ba2a7 | 97 | #define errQUEUE_YIELD ( -5 ) |
| fep | 0:62cd296ba2a7 | 98 | |
| fep | 0:62cd296ba2a7 | 99 | /* Macros used for basic data corruption checks. */ |
| fep | 0:62cd296ba2a7 | 100 | #ifndef configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES |
| fep | 0:62cd296ba2a7 | 101 | #define configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES 0 |
| fep | 0:62cd296ba2a7 | 102 | #endif |
| fep | 0:62cd296ba2a7 | 103 | |
| fep | 0:62cd296ba2a7 | 104 | #if( configUSE_16_BIT_TICKS == 1 ) |
| fep | 0:62cd296ba2a7 | 105 | #define pdINTEGRITY_CHECK_VALUE 0x5a5a |
| fep | 0:62cd296ba2a7 | 106 | #else |
| fep | 0:62cd296ba2a7 | 107 | #define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL |
| fep | 0:62cd296ba2a7 | 108 | #endif |
| fep | 0:62cd296ba2a7 | 109 | |
| fep | 0:62cd296ba2a7 | 110 | /* The following errno values are used by FreeRTOS+ components, not FreeRTOS |
| fep | 0:62cd296ba2a7 | 111 | itself. */ |
| fep | 0:62cd296ba2a7 | 112 | #define pdFREERTOS_ERRNO_NONE 0 /* No errors */ |
| fep | 0:62cd296ba2a7 | 113 | #define pdFREERTOS_ERRNO_ENOENT 2 /* No such file or directory */ |
| fep | 0:62cd296ba2a7 | 114 | #define pdFREERTOS_ERRNO_EINTR 4 /* Interrupted system call */ |
| fep | 0:62cd296ba2a7 | 115 | #define pdFREERTOS_ERRNO_EIO 5 /* I/O error */ |
| fep | 0:62cd296ba2a7 | 116 | #define pdFREERTOS_ERRNO_ENXIO 6 /* No such device or address */ |
| fep | 0:62cd296ba2a7 | 117 | #define pdFREERTOS_ERRNO_EBADF 9 /* Bad file number */ |
| fep | 0:62cd296ba2a7 | 118 | #define pdFREERTOS_ERRNO_EAGAIN 11 /* No more processes */ |
| fep | 0:62cd296ba2a7 | 119 | #define pdFREERTOS_ERRNO_EWOULDBLOCK 11 /* Operation would block */ |
| fep | 0:62cd296ba2a7 | 120 | #define pdFREERTOS_ERRNO_ENOMEM 12 /* Not enough memory */ |
| fep | 0:62cd296ba2a7 | 121 | #define pdFREERTOS_ERRNO_EACCES 13 /* Permission denied */ |
| fep | 0:62cd296ba2a7 | 122 | #define pdFREERTOS_ERRNO_EFAULT 14 /* Bad address */ |
| fep | 0:62cd296ba2a7 | 123 | #define pdFREERTOS_ERRNO_EBUSY 16 /* Mount device busy */ |
| fep | 0:62cd296ba2a7 | 124 | #define pdFREERTOS_ERRNO_EEXIST 17 /* File exists */ |
| fep | 0:62cd296ba2a7 | 125 | #define pdFREERTOS_ERRNO_EXDEV 18 /* Cross-device link */ |
| fep | 0:62cd296ba2a7 | 126 | #define pdFREERTOS_ERRNO_ENODEV 19 /* No such device */ |
| fep | 0:62cd296ba2a7 | 127 | #define pdFREERTOS_ERRNO_ENOTDIR 20 /* Not a directory */ |
| fep | 0:62cd296ba2a7 | 128 | #define pdFREERTOS_ERRNO_EISDIR 21 /* Is a directory */ |
| fep | 0:62cd296ba2a7 | 129 | #define pdFREERTOS_ERRNO_EINVAL 22 /* Invalid argument */ |
| fep | 0:62cd296ba2a7 | 130 | #define pdFREERTOS_ERRNO_ENOSPC 28 /* No space left on device */ |
| fep | 0:62cd296ba2a7 | 131 | #define pdFREERTOS_ERRNO_ESPIPE 29 /* Illegal seek */ |
| fep | 0:62cd296ba2a7 | 132 | #define pdFREERTOS_ERRNO_EROFS 30 /* Read only file system */ |
| fep | 0:62cd296ba2a7 | 133 | #define pdFREERTOS_ERRNO_EUNATCH 42 /* Protocol driver not attached */ |
| fep | 0:62cd296ba2a7 | 134 | #define pdFREERTOS_ERRNO_EBADE 50 /* Invalid exchange */ |
| fep | 0:62cd296ba2a7 | 135 | #define pdFREERTOS_ERRNO_EFTYPE 79 /* Inappropriate file type or format */ |
| fep | 0:62cd296ba2a7 | 136 | #define pdFREERTOS_ERRNO_ENMFILE 89 /* No more files */ |
| fep | 0:62cd296ba2a7 | 137 | #define pdFREERTOS_ERRNO_ENOTEMPTY 90 /* Directory not empty */ |
| fep | 0:62cd296ba2a7 | 138 | #define pdFREERTOS_ERRNO_ENAMETOOLONG 91 /* File or path name too long */ |
| fep | 0:62cd296ba2a7 | 139 | #define pdFREERTOS_ERRNO_EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ |
| fep | 0:62cd296ba2a7 | 140 | #define pdFREERTOS_ERRNO_ENOBUFS 105 /* No buffer space available */ |
| fep | 0:62cd296ba2a7 | 141 | #define pdFREERTOS_ERRNO_ENOPROTOOPT 109 /* Protocol not available */ |
| fep | 0:62cd296ba2a7 | 142 | #define pdFREERTOS_ERRNO_EADDRINUSE 112 /* Address already in use */ |
| fep | 0:62cd296ba2a7 | 143 | #define pdFREERTOS_ERRNO_ETIMEDOUT 116 /* Connection timed out */ |
| fep | 0:62cd296ba2a7 | 144 | #define pdFREERTOS_ERRNO_EINPROGRESS 119 /* Connection already in progress */ |
| fep | 0:62cd296ba2a7 | 145 | #define pdFREERTOS_ERRNO_EALREADY 120 /* Socket already connected */ |
| fep | 0:62cd296ba2a7 | 146 | #define pdFREERTOS_ERRNO_EADDRNOTAVAIL 125 /* Address not available */ |
| fep | 0:62cd296ba2a7 | 147 | #define pdFREERTOS_ERRNO_EISCONN 127 /* Socket is already connected */ |
| fep | 0:62cd296ba2a7 | 148 | #define pdFREERTOS_ERRNO_ENOTCONN 128 /* Socket is not connected */ |
| fep | 0:62cd296ba2a7 | 149 | #define pdFREERTOS_ERRNO_ENOMEDIUM 135 /* No medium inserted */ |
| fep | 0:62cd296ba2a7 | 150 | #define pdFREERTOS_ERRNO_EILSEQ 138 /* An invalid UTF-16 sequence was encountered. */ |
| fep | 0:62cd296ba2a7 | 151 | #define pdFREERTOS_ERRNO_ECANCELED 140 /* Operation canceled. */ |
| fep | 0:62cd296ba2a7 | 152 | |
| fep | 0:62cd296ba2a7 | 153 | /* The following endian values are used by FreeRTOS+ components, not FreeRTOS |
| fep | 0:62cd296ba2a7 | 154 | itself. */ |
| fep | 0:62cd296ba2a7 | 155 | #define pdFREERTOS_LITTLE_ENDIAN 0 |
| fep | 0:62cd296ba2a7 | 156 | #define pdFREERTOS_BIG_ENDIAN 1 |
| fep | 0:62cd296ba2a7 | 157 | |
| fep | 0:62cd296ba2a7 | 158 | #endif /* PROJDEFS_H */ |
| fep | 0:62cd296ba2a7 | 159 | |
| fep | 0:62cd296ba2a7 | 160 | |
| fep | 0:62cd296ba2a7 | 161 | |
| fep | 0:62cd296ba2a7 | 162 |