File tree 24 files changed +583
-2
lines changed
24 files changed +583
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ extern "C" {
9
9
#endif
10
10
11
11
typedef enum {
12
+ // Not connected
13
+ NC = (int )0xFFFFFFFF ,
12
14
15
+ // Pin name definition
13
16
PA_0 = (PortA << 4 ) + 0x00 ,
14
17
PA_1 = (PortA << 4 ) + 0x01 ,
15
18
PA_2 = (PortA << 4 ) + 0x02 ,
@@ -205,8 +208,11 @@ typedef enum {
205
208
PK_14 = (PortK << 4 ) + 0x0E ,
206
209
PK_15 = (PortK << 4 ) + 0x0F ,
207
210
#endif
208
- // Not connected
209
- NC = (int )0xFFFFFFFF
211
+ // Specific pin name define in the variant
212
+ #if __has_include ("PinNamesVar .h ")
213
+ #include "PinNamesVar .h "
214
+ #endif
215
+ P_END = NC
210
216
} PinName ;
211
217
212
218
#ifdef __cplusplus
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = NC ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = NC ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = NC ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = PA_2 ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = PC_1 ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = PC_13 ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = PI_8 ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = PI_11 ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = PC_13 ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = PC_13 ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = PE_6 ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = PA_2 ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = PC_5 ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = NC ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = PC_13 ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = PC_13 ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = PA_2 ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = PC_5 ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = PB_5 ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = PB_15 ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = NC ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = NC ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = PC_13 ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = NC ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
Original file line number Diff line number Diff line change
1
+ /* SYS_WKUP */
2
+ #ifdef PWR_WAKEUP_PIN1
3
+ SYS_WKUP1 = PA_0 ,
4
+ #endif
5
+ #ifdef PWR_WAKEUP_PIN2
6
+ SYS_WKUP2 = PC_13 ,
7
+ #endif
8
+ #ifdef PWR_WAKEUP_PIN3
9
+ SYS_WKUP3 = NC ,
10
+ #endif
11
+ #ifdef PWR_WAKEUP_PIN4
12
+ SYS_WKUP4 = NC ,
13
+ #endif
14
+ #ifdef PWR_WAKEUP_PIN5
15
+ SYS_WKUP5 = NC ,
16
+ #endif
17
+ #ifdef PWR_WAKEUP_PIN6
18
+ SYS_WKUP6 = NC ,
19
+ #endif
20
+ #ifdef PWR_WAKEUP_PIN7
21
+ SYS_WKUP7 = NC ,
22
+ #endif
23
+ #ifdef PWR_WAKEUP_PIN8
24
+ SYS_WKUP8 = NC ,
25
+ #endif
You can’t perform that action at this time.
0 commit comments