Subversion Repositories FlightCtrl

Rev

Rev 1508 | Rev 1664 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1508 Rev 1561
Line 6... Line 6...
6
 
6
 
Line 7... Line 7...
7
#define USE_SPI_COMMUNICATION
7
#define USE_SPI_COMMUNICATION
8
 
8
 
-
 
9
//-----------------------------------------
-
 
10
#define DDR_SPI DDRB
-
 
11
#define SLAVE_SELECT_DDR_PORT   DDRC
-
 
12
#define SLAVE_SELECT_PORT       PORTC
-
 
13
 
-
 
14
#if defined(__AVR_ATmega1284P__)
-
 
15
#define DD_SS                           PORTB4
-
 
16
#define DD_SCK                          PORTB7
-
 
17
#define DD_MOSI                         PORTB5
-
 
18
#define DD_MISO                         PORTB6
9
//-----------------------------------------
19
#define SPI_SLAVE_SELECT        PORTC5
10
#define DDR_SPI DDRB
20
#else
11
#define DD_SS   PB4
21
#define DD_SS                           PB4
12
#define DD_SCK  PB7
22
#define DD_SCK                          PB7
-
 
23
#define DD_MOSI                         PB5
-
 
24
#define DD_MISO                         PB6
Line 13... Line 25...
13
#define DD_MOSI PB5
25
#define SPI_SLAVE_SELECT        PC5
14
#define DD_MISO PB6
26
#endif
15
 
27
 
16
// for compatibility reasons gcc3.x <-> gcc4.x
28
// for compatibility reasons gcc3.x <-> gcc4.x
Line 41... Line 53...
41
#ifndef SPSR
53
#ifndef SPSR
42
#define SPSR   SPSR0
54
#define SPSR   SPSR0
43
#endif
55
#endif
44
// -------------------------
56
// -------------------------
Line 45... Line -...
45
 
-
 
46
#define SLAVE_SELECT_DDR_PORT   DDRC
-
 
47
#define SLAVE_SELECT_PORT       PORTC
-
 
48
#define SPI_SLAVE_SELECT        PC5
-
 
49
 
-
 
50
 
57
 
51
#define SPI_FCCMD_USER                  10
58
#define SPI_FCCMD_USER                  10
52
#define SPI_FCCMD_STICK                 11
59
#define SPI_FCCMD_STICK                 11
53
#define SPI_FCCMD_MISC                  12
60
#define SPI_FCCMD_MISC                  12
54
#define SPI_FCCMD_PARAMETER1    13
61
#define SPI_FCCMD_PARAMETER1    13