diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/LPC214x-GCC/chcore.h | 8 | ||||
-rw-r--r-- | demos/Win32-MSVS/ch.vcproj | 6 | ||||
-rw-r--r-- | demos/Win32-MSVS/chcore.h | 2 |
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);
|