From 6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 17 Jul 2014 10:03:21 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7039 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/SPC5/NIL-SPC560D-EVB/main.c | 12 +++++------- demos/SPC5/NIL-SPC560D-EVB/nilconf.h | 4 ++-- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'demos/SPC5') diff --git a/demos/SPC5/NIL-SPC560D-EVB/main.c b/demos/SPC5/NIL-SPC560D-EVB/main.c index 46d96b5ee..98b2b5dba 100644 --- a/demos/SPC5/NIL-SPC560D-EVB/main.c +++ b/demos/SPC5/NIL-SPC560D-EVB/main.c @@ -14,11 +14,9 @@ limitations under the License. */ -#include "ch.h" -#include "hal.h" -#include "test.h" -#include "shell.h" -#include "chprintf.h" +#include "nil.h" +//#include "hal.h" +//#include "test.h" #if 0 #define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(1024) @@ -92,7 +90,7 @@ static const ShellConfig shell_cfg1 = { * LEDs blinker thread, times are in milliseconds. */ static THD_WORKING_AREA(waThread1, 128); -static msg_t Thread1(void *arg) { +static THD_FUNCTION(Thread1, arg) { (void)arg; @@ -179,7 +177,7 @@ int main(void) { * - Kernel initialization, the main() function becomes a thread and the * RTOS is active. */ - halInit(); +// halInit(); chSysInit(); /* This is now the idle thread loop, you may perform here a low priority diff --git a/demos/SPC5/NIL-SPC560D-EVB/nilconf.h b/demos/SPC5/NIL-SPC560D-EVB/nilconf.h index 54fb32ca4..ff54fbe41 100644 --- a/demos/SPC5/NIL-SPC560D-EVB/nilconf.h +++ b/demos/SPC5/NIL-SPC560D-EVB/nilconf.h @@ -60,7 +60,7 @@ /** * @brief System tick frequency. */ -#define NIL_CFG_ST_FREQUENCY 50000 +#define NIL_CFG_ST_FREQUENCY 1000 /** * @brief Time delta constant for the tick-less mode. @@ -70,7 +70,7 @@ * The value one is not valid, timeouts are rounded up to * this value. */ -#define NIL_CFG_ST_TIMEDELTA 2 +#define NIL_CFG_ST_TIMEDELTA 0 /** @} */ -- cgit v1.2.3