From 29226ecec7052b72ba82e8ba2eedb4c91d27ff28 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 20 Aug 2010 07:40:01 +0000 Subject: Small fix to the SPI demo. SPI I/O pins were no initialized as alternate. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2135 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/src/chsys.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'os/kernel/src') diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c index 80d037dd6..d34e7e73a 100644 --- a/os/kernel/src/chsys.c +++ b/os/kernel/src/chsys.c @@ -34,6 +34,10 @@ #include "ch.h" +/** + * @brief Idle thread working area. + * @see IDLE_THREAD_STACK_SIZE + */ WORKING_AREA(_idle_thread_wa, IDLE_THREAD_STACK_SIZE); /** @@ -87,7 +91,7 @@ void chSysInit(void) { /* This thread has the lowest priority in the system, its role is just to serve interrupts in its context while keeping the lowest energy saving mode compatible with the system status.*/ - chThdCreateStatic(idle_thread_wa, sizeof(_idle_thread_wa), IDLEPRIO, + chThdCreateStatic(_idle_thread_wa, sizeof(_idle_thread_wa), IDLEPRIO, (tfunc_t)_idle_thread, NULL); } -- cgit v1.2.3