From 1b269aa139ba66288cc2c3f1b463c73821343262 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 2 Oct 2007 16:52:18 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@29 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/LPC214x-GCC/chcore.h | 8 ++++++++ demos/Win32-MSVS/ch.vcproj | 6 ++++++ demos/Win32-MSVS/chcore.h | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'demos') 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 @@ -150,6 +150,9 @@ + + @@ -205,6 +208,9 @@ + + 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); -- cgit v1.2.3