File tree 6 files changed +51
-27
lines changed
6 files changed +51
-27
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,15 @@ static uint8_t udp_rx_msg_buf[256] = {0};
36
36
* GLOBAL VARIABLES
37
37
**************************************************************************************/
38
38
39
- auto const tc6_io = new TC6::TC6_Io
40
- ( SPI
41
- , CS_PIN
42
- , RESET_PIN
43
- , IRQ_PIN);
39
+ auto const tc6_io = new TC6::TC6_Io(
40
+ #ifdef ARDUINO_GIGA
41
+ SPI1
42
+ #else
43
+ SPI
44
+ #endif
45
+ , CS_PIN
46
+ , RESET_PIN
47
+ , IRQ_PIN);
44
48
auto const tc6_inst = new TC6::TC6_Arduino_10BASE_T1S(tc6_io);
45
49
Arduino_10BASE_T1S_UDP udp_client;
46
50
Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ static uint8_t udp_rx_msg_buf[256] = {0};
39
39
* GLOBAL VARIABLES
40
40
**************************************************************************************/
41
41
42
- auto const tc6_io = new TC6::TC6_Io
43
- ( SPI
44
- , CS_PIN
45
- , RESET_PIN
46
- , IRQ_PIN);
42
+ auto const tc6_io = new TC6::TC6_Io(
43
+ #ifdef ARDUINO_GIGA
44
+ SPI1
45
+ #else
46
+ SPI
47
+ #endif
48
+ , CS_PIN
49
+ , RESET_PIN
50
+ , IRQ_PIN);
47
51
auto const tc6_inst = new TC6::TC6_Arduino_10BASE_T1S(tc6_io);
48
52
Arduino_10BASE_T1S_UDP udp_server;
49
53
Original file line number Diff line number Diff line change @@ -48,8 +48,12 @@ auto const tc6_io = new TC6::TC6_Io
48
48
, RESET_PIN
49
49
, IRQ_PIN);
50
50
#else
51
- auto const tc6_io = new TC6::TC6_Io
52
- ( SPI
51
+ auto const tc6_io = new TC6::TC6_Io(
52
+ #ifdef ARDUINO_GIGA
53
+ SPI1
54
+ #else
55
+ SPI
56
+ #endif
53
57
, CS_PIN
54
58
, RESET_PIN
55
59
, IRQ_PIN);
Original file line number Diff line number Diff line change @@ -35,11 +35,15 @@ static auto const DIO_PIN = TC6::DIO::A0;
35
35
* GLOBAL VARIABLES
36
36
**************************************************************************************/
37
37
38
- auto const tc6_io = new TC6::TC6_Io
39
- ( SPI
40
- , CS_PIN
41
- , RESET_PIN
42
- , IRQ_PIN);
38
+ auto const tc6_io = new TC6::TC6_Io(
39
+ #ifdef ARDUINO_GIGA
40
+ SPI1
41
+ #else
42
+ SPI
43
+ #endif
44
+ , CS_PIN
45
+ , RESET_PIN
46
+ , IRQ_PIN);
43
47
auto const tc6_inst = new TC6::TC6_Arduino_10BASE_T1S(tc6_io);
44
48
45
49
/* *************************************************************************************
Original file line number Diff line number Diff line change @@ -32,11 +32,15 @@ static T1SMacSettings const t1s_default_mac_settings;
32
32
* GLOBAL VARIABLES
33
33
**************************************************************************************/
34
34
35
- auto const tc6_io = new TC6::TC6_Io
36
- ( SPI
37
- , CS_PIN
38
- , RESET_PIN
39
- , IRQ_PIN);
35
+ auto const tc6_io = new TC6::TC6_Io(
36
+ #ifdef ARDUINO_GIGA
37
+ SPI1
38
+ #else
39
+ SPI
40
+ #endif
41
+ , CS_PIN
42
+ , RESET_PIN
43
+ , IRQ_PIN);
40
44
auto const tc6_inst = new TC6::TC6_Arduino_10BASE_T1S(tc6_io);
41
45
42
46
/* *************************************************************************************
Original file line number Diff line number Diff line change @@ -32,11 +32,15 @@ static T1SMacSettings const t1s_default_mac_settings;
32
32
* GLOBAL VARIABLES
33
33
**************************************************************************************/
34
34
35
- auto const tc6_io = new TC6::TC6_Io
36
- ( SPI
37
- , CS_PIN
38
- , RESET_PIN
39
- , IRQ_PIN);
35
+ auto const tc6_io = new TC6::TC6_Io(
36
+ #ifdef ARDUINO_GIGA
37
+ SPI1
38
+ #else
39
+ SPI
40
+ #endif
41
+ , CS_PIN
42
+ , RESET_PIN
43
+ , IRQ_PIN);
40
44
auto const tc6_inst = new TC6::TC6_Arduino_10BASE_T1S(tc6_io);
41
45
42
46
/* *************************************************************************************
You can’t perform that action at this time.
0 commit comments