Skip to content

Commit

Permalink
re-enable the configASSERT
Browse files Browse the repository at this point in the history
this required turning off a pointer compare warning in this project
  • Loading branch information
pwittich committed May 15, 2019
1 parent 8281f04 commit 0896bd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/project2/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */

/* Normal assert() semantics without relying on the provision of an assert.h
header file. */
//#define configASSERT( x ) if( ( x ) == 0UL ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
#define configASSERT( x ) if( ( x ) == 0UL ) { taskDISABLE_INTERRUPTS(); for( ;; ); }

// for the CLI
#define configCOMMAND_INT_MAX_OUTPUT_SIZE 256


// non-standard, park this here for now
#define CLI_UART UART4_BASE

Expand Down
1 change: 1 addition & 0 deletions projects/project2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ FREERTOS_PLUS_ROOT?=../../../FreeRTOSv10.2.0/FreeRTOS-Plus/Source
#
include ${ROOT}/makedefs

CFLAGS+=-Wno-pointer-compare ## for configASSERT macro
#
# Where to find source files that do not live in this directory.
#
Expand Down

0 comments on commit 0896bd4

Please sign in to comment.