IQRF SPI library for Arduino
Version 1.2
Main Page
Classes
Files
Examples
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
IQRFSettings.h
Go to the documentation of this file.
1
22
#ifndef IQRFSettings_H
23
#define IQRFSettings_H
24
25
#define PACKET_SIZE 68
26
#define PACKET_BUFFER_SIZE 32
27
28
// Timing
29
#define MICRO_SECOND 1000000
30
#define MILLI_SECOND 1000
31
32
// Pins
33
#if !defined(TR_RESET_PIN)
34
#define TR_RESET_PIN 6
35
#endif
36
#if !defined(TR_SS_PIN)
37
#define TR_SS_PIN 10
38
#endif
39
40
// Arduino Leonardo, Micro
41
#if defined(__AVR_ATmega32U4__)
42
#define TR_MOSI_PIN 16
43
#define TR_MISO_PIN 14
44
// Arduino Mega, Mega 2560
45
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
46
#define TR_MOSI_PIN 51
47
#define TR_MISO_PIN 50
48
// Arduino Due or Zero, MKR1000
49
#elif defined(__SAM3X8E__) || defined(__SAMD21G18A__)
50
#define TR_MOSI_PIN PIN_SPI_MOSI
51
#define TR_MISO_PIN PIN_SPI_MISO
52
#else
53
#define TR_MOSI_PIN 11
54
#define TR_MISO_PIN 12
55
#endif
56
57
#endif
src
IQRFSettings.h
Generated on Sun Nov 27 2016 16:23:09 for IQRF SPI library for Arduino by
1.8.6