File tree Expand file tree Collapse file tree 6 files changed +76
-8
lines changed Expand file tree Collapse file tree 6 files changed +76
-8
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,16 @@ DigitalOut out(P1_0);
46
46
DigitalIn in (P4_7);
47
47
48
48
#elif defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32WG_STK3800)
49
- DigitalInOut d1 (PD0);
50
- DigitalInOut d2 (PC4 );
49
+ DigitalOut out (PD0);
50
+ DigitalIn in (PC3 );
51
51
52
52
#elif defined(TARGET_EFM32ZG_STK3200)
53
- DigitalInOut d1 (PD7);
54
- DigitalInOut d2 (PC1);
53
+ DigitalOut out (PD7);
54
+ DigitalIn in (PC1);
55
55
56
56
#elif defined(TARGET_EFM32HG_STK3400)
57
- DigitalInOut d1 (PE10);
58
- DigitalInOut d2 (PC1);
57
+ DigitalOut out (PE10);
58
+ DigitalIn in (PC1);
59
59
60
60
#else
61
61
DigitalOut out (p5);
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ DigitalInOut d2(P4_7);
47
47
48
48
#elif defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32WG_STK3800)
49
49
DigitalInOut d1 (PD0);
50
- DigitalInOut d2 (PC4 );
50
+ DigitalInOut d2 (PC3 );
51
51
52
52
#elif defined(TARGET_EFM32ZG_STK3200)
53
53
DigitalInOut d1 (PD7);
Original file line number Diff line number Diff line change @@ -74,6 +74,18 @@ void in_handler() {
74
74
#define PIN_OUT P1_0
75
75
#define PIN_IN P4_7
76
76
77
+ #elif defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32WG_STK3800)
78
+ #define PIN_OUT PD0
79
+ #define PIN_IN PC3
80
+
81
+ #elif defined(TARGET_EFM32ZG_STK3200)
82
+ #define PIN_OUT PD7
83
+ #define PIN_IN PC1
84
+
85
+ #elif defined(TARGET_EFM32HG_STK3400)
86
+ #define PIN_OUT PE10
87
+ #define PIN_IN PC1
88
+
77
89
#else
78
90
#define PIN_IN (p5)
79
91
#define PIN_OUT (p25)
Original file line number Diff line number Diff line change 101
101
#define P2_1 (1 << 8 ) // PB_8
102
102
#define P2_2 (1 << 9 ) // PB_9
103
103
#define PORT_2 PortB
104
+
105
+ #elif defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32WG_STK3800)
106
+ #define P1_1 (1 << 0 ) // PD0
107
+ #define P1_2 (1 << 1 ) // PD1
108
+ #define PORT_1 PortD
109
+
110
+ #define P2_1 (1 << 3 ) // PC3
111
+ #define P2_2 (1 << 4 ) // PC4
112
+ #define PORT_2 PortC
113
+
114
+ #elif defined(TARGET_EFM32ZG_STK3200)
115
+ #define P1_1 (1 << 7 ) // PD7
116
+ #define P1_2 (1 << 6 ) // PD6
117
+ #define PORT_1 PortD
118
+
119
+ #define P2_1 (1 << 1 ) // PC1
120
+ #define P2_2 (1 << 2 ) // PC2
121
+ #define PORT_2 PortC
122
+
123
+ #elif defined(TARGET_EFM32HG_STK3400)
124
+ #define P1_1 (1 << 10 ) // PE10
125
+ #define P1_2 (1 << 11 ) // PE11
126
+ #define PORT_1 PortE
127
+
128
+ #define P2_1 (1 << 1 ) // PC1
129
+ #define P2_2 (1 << 2 ) // PC2
130
+ #define PORT_2 PortC
131
+
104
132
#endif
105
133
106
134
#define MASK_1 (P1_1 | P1_2)
Original file line number Diff line number Diff line change 101
101
#define P2_1 (1 << 8 ) // PB_8
102
102
#define P2_2 (1 << 9 ) // PB_9
103
103
#define PORT_2 PortB
104
+
105
+ #elif defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32WG_STK3800)
106
+ #define P1_1 (1 << 0 ) // PD0
107
+ #define P1_2 (1 << 1 ) // PD1
108
+ #define PORT_1 PortD
109
+
110
+ #define P2_1 (1 << 3 ) // PC3
111
+ #define P2_2 (1 << 4 ) // PC4
112
+ #define PORT_2 PortC
113
+
114
+ #elif defined(TARGET_EFM32ZG_STK3200)
115
+ #define P1_1 (1 << 7 ) // PD7
116
+ #define P1_2 (1 << 6 ) // PD6
117
+ #define PORT_1 PortD
118
+
119
+ #define P2_1 (1 << 1 ) // PC1
120
+ #define P2_2 (1 << 2 ) // PC2
121
+ #define PORT_2 PortC
122
+
123
+ #elif defined(TARGET_EFM32HG_STK3400)
124
+ #define P1_1 (1 << 10 ) // PE10
125
+ #define P1_2 (1 << 11 ) // PE11
126
+ #define PORT_1 PortE
127
+
128
+ #define P2_1 (1 << 1 ) // PC1
129
+ #define P2_2 (1 << 2 ) // PC2
130
+ #define PORT_2 PortC
131
+
104
132
#endif
105
133
106
134
#define MASK_1 (P1_1 | P1_2)
Original file line number Diff line number Diff line change 30
30
31
31
#elif defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32GG_STK3700) || defined(TARGET_EFM32WG_STK3800)
32
32
#define TEST_SERIAL_ONE_TX_PIN PD0 // usart1
33
- #define TEST_SERIAL_TWO_RX_PIN PC4 // usart2
33
+ #define TEST_SERIAL_TWO_RX_PIN PC3 // usart2
34
34
35
35
#elif defined(TARGET_EFM32ZG_STK3200)
36
36
#error "Target not supported (only 2 serial ports available, need 3)"
You can’t perform that action at this time.
0 commit comments