aboutsummaryrefslogtreecommitdiffstats
path: root/demos/nil/NIL-STM32F051-DISCOVERY
diff options
context:
space:
mode:
Diffstat (limited to 'demos/nil/NIL-STM32F051-DISCOVERY')
-rw-r--r--demos/nil/NIL-STM32F051-DISCOVERY/main.c6
-rw-r--r--demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h7
2 files changed, 8 insertions, 5 deletions
diff --git a/demos/nil/NIL-STM32F051-DISCOVERY/main.c b/demos/nil/NIL-STM32F051-DISCOVERY/main.c
index b27cd5911..d4c17e90a 100644
--- a/demos/nil/NIL-STM32F051-DISCOVERY/main.c
+++ b/demos/nil/NIL-STM32F051-DISCOVERY/main.c
@@ -79,9 +79,9 @@ THD_FUNCTION(Thread3, arg) {
* match NIL_CFG_NUM_THREADS.
*/
THD_TABLE_BEGIN
- THD_TABLE_ENTRY("blinker1", Thread1, NULL, waThread1, sizeof(waThread1))
- THD_TABLE_ENTRY("blinker2", Thread2, NULL, waThread2, sizeof(waThread2))
- THD_TABLE_ENTRY("hello", Thread3, NULL, waThread3, sizeof(waThread3))
+ THD_TABLE_ENTRY(waThread1, "blinker1", Thread1, NULL)
+ THD_TABLE_ENTRY(waThread2, "blinker2", Thread2, NULL)
+ THD_TABLE_ENTRY(waThread3, "hello", Thread3, NULL)
THD_TABLE_END
/*
diff --git a/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h b/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h
index 2805beb50..5276a3f2a 100644
--- a/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h
+++ b/demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h
@@ -59,9 +59,7 @@
*
* @note The default is @p TRUE.
*/
-#if !defined(NIL_CFG_USE_EVENTS) || defined(__DOXYGEN__)
#define NIL_CFG_USE_EVENTS TRUE
-#endif
/**
* @brief System assertions.
@@ -69,6 +67,11 @@
#define NIL_CFG_ENABLE_ASSERTS FALSE
/**
+ * @brief Stack check.
+ */
+#define NIL_CFG_ENABLE_STACK_CHECK FALSE
+
+/**
* @brief Threads descriptor structure extension.
* @details User fields added to the end of the @p thread_t structure.
*/