diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-07-17 10:03:21 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-07-17 10:03:21 +0000 |
commit | 6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7 (patch) | |
tree | b97e05eca5439bb88d7816178a13c908fd9fb148 /demos/SPC5 | |
parent | 1272fdce1e9e8d55e5fddf3ae79019ca7836c770 (diff) | |
download | ChibiOS-6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7.tar.gz ChibiOS-6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7.tar.bz2 ChibiOS-6fd6d0670e8e639eb1909ccdb8e1d509db02d6f7.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7039 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/SPC5')
-rw-r--r-- | demos/SPC5/NIL-SPC560D-EVB/main.c | 12 | ||||
-rw-r--r-- | demos/SPC5/NIL-SPC560D-EVB/nilconf.h | 4 |
2 files changed, 7 insertions, 9 deletions
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
/** @} */
|