Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
031eb91e
Commit
031eb91e
authored
Oct 02, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FreeRTOS assert and linked it to NMEA_ASSERT()
parent
5e867565
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
config.h
sw/common/drivers/gps/nmealib/include/nmea/config.h
+4
-2
FreeRTOSConfig.h
sw/freertos/src/FreeRTOSConfig.h
+3
-0
No files found.
sw/common/drivers/gps/nmealib/include/nmea/config.h
View file @
031eb91e
...
...
@@ -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__ */
sw/freertos/src/FreeRTOSConfig.h
View file @
031eb91e
...
...
@@ -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 )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment