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
master
follower 17 years ago
parent 8d033609e7
commit 9be0816bfc

@ -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 <avr/pgmspace.h>

Loading…
Cancel
Save