From 15a54ae359d342b296b7740dcfaf0580d606b3c6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 5 Sep 2013 14:54:24 +0000 Subject: Nil working on M3/M4. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6265 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/nil/NIL-STM32F051-DISCOVERY/main.c | 6 +++--- demos/nil/NIL-STM32F051-DISCOVERY/nilconf.h | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'demos/nil/NIL-STM32F051-DISCOVERY') 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,15 +59,18 @@ * * @note The default is @p TRUE. */ -#if !defined(NIL_CFG_USE_EVENTS) || defined(__DOXYGEN__) #define NIL_CFG_USE_EVENTS TRUE -#endif /** * @brief System assertions. */ #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. -- cgit v1.2.3