Skip to content

Commit d750173

Browse files
authored
Only check for stream buffer dependencies, if configUSE_STREAM_BUFFERS==1. (#1109)
Signed-off-by: Daniel Otte <d.otte@wut.de>
1 parent 3d935e8 commit d750173

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

stream_buffer.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@
3939
#include "task.h"
4040
#include "stream_buffer.h"
4141

42-
#if ( configUSE_TASK_NOTIFICATIONS != 1 )
43-
#error configUSE_TASK_NOTIFICATIONS must be set to 1 to build stream_buffer.c
44-
#endif
45-
46-
#if ( INCLUDE_xTaskGetCurrentTaskHandle != 1 )
47-
#error INCLUDE_xTaskGetCurrentTaskHandle must be set to 1 to build stream_buffer.c
48-
#endif
49-
5042
/* The MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined
5143
* for the header files above, but not in this file, in order to generate the
5244
* correct privileged Vs unprivileged linkage and placement. */
@@ -58,6 +50,14 @@
5850
* configUSE_STREAM_BUFFERS is set to 1 in FreeRTOSConfig.h. */
5951
#if ( configUSE_STREAM_BUFFERS == 1 )
6052

53+
#if ( configUSE_TASK_NOTIFICATIONS != 1 )
54+
#error configUSE_TASK_NOTIFICATIONS must be set to 1 to build stream_buffer.c
55+
#endif
56+
57+
#if ( INCLUDE_xTaskGetCurrentTaskHandle != 1 )
58+
#error INCLUDE_xTaskGetCurrentTaskHandle must be set to 1 to build stream_buffer.c
59+
#endif
60+
6161
/* If the user has not provided application specific Rx notification macros,
6262
* or #defined the notification macros away, then provide default implementations
6363
* that uses task notifications. */

0 commit comments

Comments
 (0)