Commit 031eb91e authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

Added FreeRTOS assert and linked it to NMEA_ASSERT()

parent 5e867565
......@@ -43,9 +43,11 @@
#if !defined(NDEBUG) && !defined(NMEA_CE)
# include <assert.h>
# define NMEA_ASSERT(x) assert(x)
# include <FreeRTOS.h>
# define NMEA_ASSERT(x) configASSERT(x)
#else
# define NMEA_ASSERT(x)
# include <FreeRTOS.h>
# define NMEA_ASSERT(x) configASSERT(x)
#endif
#endif /* __NMEA_CONFIG_H__ */
......@@ -157,6 +157,9 @@ extern "C" {
#define configKERNEL_INTERRUPT_PRIORITY ( 255 )
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 191 ) /* equivalent to 0xa0, or priority 5. */
/* Assert macro */
#define configASSERT(x) if (x == 0) Assert_Handler()
/* Optional functions - most linkers will remove unused functions anyway. */
#define INCLUDE_vTaskPrioritySet ( 1 )
#define INCLUDE_uxTaskPriorityGet ( 1 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment