From 9be0816bfc7a090f838a923056e754ca1f0c3a1d Mon Sep 17 00:00:00 2001 From: follower Date: Sat, 3 Nov 2007 10:17:40 +0000 Subject: [PATCH] Specify the 'chip/slave select' pin as a named define. (Not yet used.) git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@40 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- branches/follower/wiz810mj/src/lib/types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/branches/follower/wiz810mj/src/lib/types.h b/branches/follower/wiz810mj/src/lib/types.h index e5b01b0..20b93ca 100644 --- a/branches/follower/wiz810mj/src/lib/types.h +++ b/branches/follower/wiz810mj/src/lib/types.h @@ -16,6 +16,14 @@ #define __MCU_AVR__ 1 #define __MCU_TYPE__ __MCU_AVR__ +// TODO: We should really specify the Chip Select pin based on +// the MCU rather than the platform. +#ifdef __ARDUINO__ +#define CS_PIN PB2 +#else +#define CS_PIN PB0 +#endif + //---- Refer "Rom File Maker Manual Vx.x.pdf" #include