diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-20 07:40:01 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-20 07:40:01 +0000 |
commit | 29226ecec7052b72ba82e8ba2eedb4c91d27ff28 (patch) | |
tree | 325cbe745a82059e7c5682c2d03889c157ff3637 /os/kernel/include | |
parent | fef1911a8f6329ad97e4112965e004d21bffef73 (diff) | |
download | ChibiOS-29226ecec7052b72ba82e8ba2eedb4c91d27ff28.tar.gz ChibiOS-29226ecec7052b72ba82e8ba2eedb4c91d27ff28.tar.bz2 ChibiOS-29226ecec7052b72ba82e8ba2eedb4c91d27ff28.zip |
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
Diffstat (limited to 'os/kernel/include')
-rw-r--r-- | os/kernel/include/ch.h | 13 | ||||
-rw-r--r-- | os/kernel/include/chsys.h | 3 |
2 files changed, 13 insertions, 3 deletions
diff --git a/os/kernel/include/ch.h b/os/kernel/include/ch.h index 6f783c00c..3641c826f 100644 --- a/os/kernel/include/ch.h +++ b/os/kernel/include/ch.h @@ -88,8 +88,21 @@ #include "chqueues.h"
#include "chstreams.h"
#include "chioch.h"
+#include "chfiles.h"
#include "chdebug.h"
+#if !defined(__DOXYGEN__)
+extern WORKING_AREA(_idle_thread_wa, IDLE_THREAD_STACK_SIZE);
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void _idle_thread(void *p);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _CH_H_ */
/** @} */
diff --git a/os/kernel/include/chsys.h b/os/kernel/include/chsys.h index ae013d7c7..2f94c5209 100644 --- a/os/kernel/include/chsys.h +++ b/os/kernel/include/chsys.h @@ -178,12 +178,9 @@ */
#define CH_FAST_IRQ_HANDLER(id) PORT_FAST_IRQ_HANDLER(id)
-extern WORKING_AREA(_idle_thread_wa, IDLE_THREAD_STACK_SIZE);
-
#ifdef __cplusplus
extern "C" {
#endif
- void _idle_thread(void *p);
void chSysInit(void);
void chSysTimerHandlerI(void);
#if CH_USE_NESTED_LOCKS && !CH_OPTIMIZE_SPEED
|