aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-02 16:52:18 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-02 16:52:18 +0000
commit1b269aa139ba66288cc2c3f1b463c73821343262 (patch)
treed69e3b0f8016def9da728232fc82f6297f4f70ed /demos
parente4e90fae74549139baaf135034b3be2abcf284a6 (diff)
downloadChibiOS-1b269aa139ba66288cc2c3f1b463c73821343262.tar.gz
ChibiOS-1b269aa139ba66288cc2c3f1b463c73821343262.tar.bz2
ChibiOS-1b269aa139ba66288cc2c3f1b463c73821343262.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@29 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/LPC214x-GCC/chcore.h8
-rw-r--r--demos/Win32-MSVS/ch.vcproj6
-rw-r--r--demos/Win32-MSVS/chcore.h2
3 files changed, 15 insertions, 1 deletions
diff --git a/demos/LPC214x-GCC/chcore.h b/demos/LPC214x-GCC/chcore.h
index bc49994ce..b2091b686 100644
--- a/demos/LPC214x-GCC/chcore.h
+++ b/demos/LPC214x-GCC/chcore.h
@@ -20,6 +20,14 @@
#ifndef _CHCORE_H_
#define _CHCORE_H_
+/*
+ * The following values are implementation dependent. You may change them in
+ * order to match your HW.
+ */
+#define FOSC 12000000
+#define CCLK 48000000
+#define PCLK 12000000
+
typedef void *regarm;
/*
diff --git a/demos/Win32-MSVS/ch.vcproj b/demos/Win32-MSVS/ch.vcproj
index b1619033c..185e65dc1 100644
--- a/demos/Win32-MSVS/ch.vcproj
+++ b/demos/Win32-MSVS/ch.vcproj
@@ -151,6 +151,9 @@
RelativePath="..\..\src\chinit.c">
</File>
<File
+ RelativePath="..\..\src\chlists.c">
+ </File>
+ <File
RelativePath="..\..\src\chmsg.c">
</File>
<File
@@ -206,6 +209,9 @@
RelativePath="..\..\src\include\events.h">
</File>
<File
+ RelativePath="..\..\src\include\lists.h">
+ </File>
+ <File
RelativePath="..\..\src\include\messages.h">
</File>
<File
diff --git a/demos/Win32-MSVS/chcore.h b/demos/Win32-MSVS/chcore.h
index 487dd175a..26e0b66bf 100644
--- a/demos/Win32-MSVS/chcore.h
+++ b/demos/Win32-MSVS/chcore.h
@@ -63,7 +63,7 @@ typedef struct {
#define INT_REQUIRED_STACK 0x0
-#define UserStackSize(n) (sizeof(Thread) + sizeof(PTR_EQ) + sizeof(PTR_EQ) + \
+#define UserStackSize(n) (sizeof(Thread) + sizeof(void *)*2 + \
sizeof(struct stackregs) + (n) + (INT_REQUIRED_STACK))
void __fastcall chSysHalt(void);