-
Notifications
You must be signed in to change notification settings - Fork 38
/
hal_ll_pin_names.h
685 lines (665 loc) · 11 KB
/
hal_ll_pin_names.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
/****************************************************************************
**
** Copyright (C) ${COPYRIGHT_YEAR} MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** This file is part of the mikroSDK package
**
** Commercial License Usage
**
** Licensees holding valid commercial NECTO compilers AI licenses may use this
** file in accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The MikroElektronika Company.
** For licensing terms and conditions see
** https://www.mikroe.com/legal/software-license-agreement.
** For further information use the contact form at
** https://www.mikroe.com/contact.
**
**
** GNU Lesser General Public License Usage
**
** Alternatively, this file may be used for
** non-commercial projects under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** The above copyright notice and this permission notice shall be
** included in all copies or substantial portions of the Software.
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**
****************************************************************************/
/*!
* @file hal_ll_pin_names.h
* @brief Header file containing symbolic pin name definitions.
*/
#ifndef _HAL_LL_PIN_NAMES_H_
#define _HAL_LL_PIN_NAMES_H_
#ifdef __cplusplus
extern "C"{
#endif
#include "mcu_definitions.h"
#include "hal_ll_target_names.h"
#define GPIO_FEATURE_16BIT_PORT
#ifdef __PORT_A_CN
#define GPIO_FEATURE_GROUP_1
#endif
#ifdef __PORT_B_CN
#define GPIO_FEATURE_GROUP_2
#endif
#ifdef __PORT_C_CN
#define GPIO_FEATURE_GROUP_3
#endif
#ifdef __PORT_D_CN
#define GPIO_FEATURE_GROUP_4
#endif
#ifdef __PORT_E_CN
#define GPIO_FEATURE_GROUP_5
#endif
#ifdef __PORT_F_CN
#define GPIO_FEATURE_GROUP_6
#endif
#ifdef __PORT_G_CN
#define GPIO_FEATURE_GROUP_7
#endif
#ifdef __PORT_H_CN
#define GPIO_FEATURE_GROUP_8
#endif
#ifdef __PORT_I_CN
#define GPIO_FEATURE_GROUP_9
#endif
#ifdef __PORT_J_CN
#define GPIO_FEATURE_GROUP_10
#endif
#ifdef __PORT_K_CN
#define GPIO_FEATURE_GROUP_11
#endif
#ifdef __PA0_CN
#define PA0 (0x00)
#endif
#ifdef __PA1_CN
#define PA1 (0x01)
#endif
#ifdef __PA2_CN
#define PA2 (0x02)
#endif
#ifdef __PA3_CN
#define PA3 (0x03)
#endif
#ifdef __PA4_CN
#define PA4 (0x04)
#endif
#ifdef __PA5_CN
#define PA5 (0x05)
#endif
#ifdef __PA6_CN
#define PA6 (0x06)
#endif
#ifdef __PA7_CN
#define PA7 (0x07)
#endif
#ifdef __PA8_CN
#define PA8 (0x08)
#endif
#ifdef __PA9_CN
#define PA9 (0x09)
#endif
#ifdef __PA10_CN
#define PA10 (0x0A)
#endif
#ifdef __PA11_CN
#define PA11 (0x0B)
#endif
#ifdef __PA12_CN
#define PA12 (0x0C)
#endif
#ifdef __PA13_CN
#define PA13 (0x0D)
#endif
#ifdef __PA14_CN
#define PA14 (0x0E)
#endif
#ifdef __PA15_CN
#define PA15 (0x0F)
#endif
#ifdef __PB0_CN
#define PB0 (0x10)
#endif
#ifdef __PB1_CN
#define PB1 (0x11)
#endif
#ifdef __PB2_CN
#define PB2 (0x12)
#endif
#ifdef __PB3_CN
#define PB3 (0x13)
#endif
#ifdef __PB4_CN
#define PB4 (0x14)
#endif
#ifdef __PB5_CN
#define PB5 (0x15)
#endif
#ifdef __PB6_CN
#define PB6 (0x16)
#endif
#ifdef __PB7_CN
#define PB7 (0x17)
#endif
#ifdef __PB8_CN
#define PB8 (0x18)
#endif
#ifdef __PB9_CN
#define PB9 (0x19)
#endif
#ifdef __PB10_CN
#define PB10 (0x1A)
#endif
#ifdef __PB11_CN
#define PB11 (0x1B)
#endif
#ifdef __PB12_CN
#define PB12 (0x1C)
#endif
#ifdef __PB13_CN
#define PB13 (0x1D)
#endif
#ifdef __PB14_CN
#define PB14 (0x1E)
#endif
#ifdef __PB15_CN
#define PB15 (0x1F)
#endif
#ifdef __PC0_CN
#define PC0 (0x20)
#endif
#ifdef __PC1_CN
#define PC1 (0x21)
#endif
#ifdef __PC2_CN
#define PC2 (0x22)
#endif
#ifdef __PC3_CN
#define PC3 (0x23)
#endif
#ifdef __PC4_CN
#define PC4 (0x24)
#endif
#ifdef __PC5_CN
#define PC5 (0x25)
#endif
#ifdef __PC6_CN
#define PC6 (0x26)
#endif
#ifdef __PC7_CN
#define PC7 (0x27)
#endif
#ifdef __PC8_CN
#define PC8 (0x28)
#endif
#ifdef __PC9_CN
#define PC9 (0x29)
#endif
#ifdef __PC10_CN
#define PC10 (0x2A)
#endif
#ifdef __PC11_CN
#define PC11 (0x2B)
#endif
#ifdef __PC12_CN
#define PC12 (0x2C)
#endif
#ifdef __PC13_CN
#define PC13 (0x2D)
#endif
#ifdef __PC14_CN
#define PC14 (0x2E)
#endif
#ifdef __PC15_CN
#define PC15 (0x2F)
#endif
#ifdef __PD0_CN
#define PD0 (0x30)
#endif
#ifdef __PD1_CN
#define PD1 (0x31)
#endif
#ifdef __PD2_CN
#define PD2 (0x32)
#endif
#ifdef __PD3_CN
#define PD3 (0x33)
#endif
#ifdef __PD4_CN
#define PD4 (0x34)
#endif
#ifdef __PD5_CN
#define PD5 (0x35)
#endif
#ifdef __PD6_CN
#define PD6 (0x36)
#endif
#ifdef __PD7_CN
#define PD7 (0x37)
#endif
#ifdef __PD8_CN
#define PD8 (0x38)
#endif
#ifdef __PD9_CN
#define PD9 (0x39)
#endif
#ifdef __PD10_CN
#define PD10 (0x3A)
#endif
#ifdef __PD11_CN
#define PD11 (0x3B)
#endif
#ifdef __PD12_CN
#define PD12 (0x3C)
#endif
#ifdef __PD13_CN
#define PD13 (0x3D)
#endif
#ifdef __PD14_CN
#define PD14 (0x3E)
#endif
#ifdef __PD15_CN
#define PD15 (0x3F)
#endif
#ifdef __PE0_CN
#define PE0 (0x40)
#endif
#ifdef __PE1_CN
#define PE1 (0x41)
#endif
#ifdef __PE2_CN
#define PE2 (0x42)
#endif
#ifdef __PE3_CN
#define PE3 (0x43)
#endif
#ifdef __PE4_CN
#define PE4 (0x44)
#endif
#ifdef __PE5_CN
#define PE5 (0x45)
#endif
#ifdef __PE6_CN
#define PE6 (0x46)
#endif
#ifdef __PE7_CN
#define PE7 (0x47)
#endif
#ifdef __PE8_CN
#define PE8 (0x48)
#endif
#ifdef __PE9_CN
#define PE9 (0x49)
#endif
#ifdef __PE10_CN
#define PE10 (0x4A)
#endif
#ifdef __PE11_CN
#define PE11 (0x4B)
#endif
#ifdef __PE12_CN
#define PE12 (0x4C)
#endif
#ifdef __PE13_CN
#define PE13 (0x4D)
#endif
#ifdef __PE14_CN
#define PE14 (0x4E)
#endif
#ifdef __PE15_CN
#define PE15 (0x4F)
#endif
#ifdef __PF0_CN
#define PF0 (0x50)
#endif
#ifdef __PF1_CN
#define PF1 (0x51)
#endif
#ifdef __PF2_CN
#define PF2 (0x52)
#endif
#ifdef __PF3_CN
#define PF3 (0x53)
#endif
#ifdef __PF4_CN
#define PF4 (0x54)
#endif
#ifdef __PF5_CN
#define PF5 (0x55)
#endif
#ifdef __PF6_CN
#define PF6 (0x56)
#endif
#ifdef __PF7_CN
#define PF7 (0x57)
#endif
#ifdef __PF8_CN
#define PF8 (0x58)
#endif
#ifdef __PF9_CN
#define PF9 (0x59)
#endif
#ifdef __PF10_CN
#define PF10 (0x5A)
#endif
#ifdef __PF11_CN
#define PF11 (0x5B)
#endif
#ifdef __PF12_CN
#define PF12 (0x5C)
#endif
#ifdef __PF13_CN
#define PF13 (0x5D)
#endif
#ifdef __PF14_CN
#define PF14 (0x5E)
#endif
#ifdef __PF15_CN
#define PF15 (0x5F)
#endif
#ifdef __PG0_CN
#define PG0 (0x60)
#endif
#ifdef __PG1_CN
#define PG1 (0x61)
#endif
#ifdef __PG2_CN
#define PG2 (0x62)
#endif
#ifdef __PG3_CN
#define PG3 (0x63)
#endif
#ifdef __PG4_CN
#define PG4 (0x64)
#endif
#ifdef __PG5_CN
#define PG5 (0x65)
#endif
#ifdef __PG6_CN
#define PG6 (0x66)
#endif
#ifdef __PG7_CN
#define PG7 (0x67)
#endif
#ifdef __PG8_CN
#define PG8 (0x68)
#endif
#ifdef __PG9_CN
#define PG9 (0x69)
#endif
#ifdef __PG10_CN
#define PG10 (0x6A)
#endif
#ifdef __PG11_CN
#define PG11 (0x6B)
#endif
#ifdef __PG12_CN
#define PG12 (0x6C)
#endif
#ifdef __PG13_CN
#define PG13 (0x6D)
#endif
#ifdef __PG14_CN
#define PG14 (0x6E)
#endif
#ifdef __PG15_CN
#define PG15 (0x6F)
#endif
#ifdef __PH0_CN
#define PH0 (0x70)
#endif
#ifdef __PH1_CN
#define PH1 (0x71)
#endif
#ifdef __PH2_CN
#define PH2 (0x72)
#endif
#ifdef __PH3_CN
#define PH3 (0x73)
#endif
#ifdef __PH4_CN
#define PH4 (0x74)
#endif
#ifdef __PH5_CN
#define PH5 (0x75)
#endif
#ifdef __PH6_CN
#define PH6 (0x76)
#endif
#ifdef __PH7_CN
#define PH7 (0x77)
#endif
#ifdef __PH8_CN
#define PH8 (0x78)
#endif
#ifdef __PH9_CN
#define PH9 (0x79)
#endif
#ifdef __PH10_CN
#define PH10 (0x7A)
#endif
#ifdef __PH11_CN
#define PH11 (0x7B)
#endif
#ifdef __PH12_CN
#define PH12 (0x7C)
#endif
#ifdef __PH13_CN
#define PH13 (0x7D)
#endif
#ifdef __PH14_CN
#define PH14 (0x7E)
#endif
#ifdef __PH15_CN
#define PH15 (0x7F)
#endif
#ifdef __PI0_CN
#define PI0 (0x80)
#endif
#ifdef __PI1_CN
#define PI1 (0x81)
#endif
#ifdef __PI2_CN
#define PI2 (0x82)
#endif
#ifdef __PI3_CN
#define PI3 (0x83)
#endif
#ifdef __PI4_CN
#define PI4 (0x84)
#endif
#ifdef __PI5_CN
#define PI5 (0x85)
#endif
#ifdef __PI6_CN
#define PI6 (0x86)
#endif
#ifdef __PI7_CN
#define PI7 (0x87)
#endif
#ifdef __PI8_CN
#define PI8 (0x88)
#endif
#ifdef __PI9_CN
#define PI9 (0x89)
#endif
#ifdef __PI10_CN
#define PI10 (0x8A)
#endif
#ifdef __PI11_CN
#define PI11 (0x8B)
#endif
#ifdef __PI12_CN
#define PI12 (0x8C)
#endif
#ifdef __PI13_CN
#define PI13 (0x8D)
#endif
#ifdef __PI14_CN
#define PI14 (0x8E)
#endif
#ifdef __PI15_CN
#define PI15 (0x8F)
#endif
#ifdef __PJ0_CN
#define PJ0 (0x90)
#endif
#ifdef __PJ1_CN
#define PJ1 (0x91)
#endif
#ifdef __PJ2_CN
#define PJ2 (0x92)
#endif
#ifdef __PJ3_CN
#define PJ3 (0x93)
#endif
#ifdef __PJ4_CN
#define PJ4 (0x94)
#endif
#ifdef __PJ5_CN
#define PJ5 (0x95)
#endif
#ifdef __PJ6_CN
#define PJ6 (0x96)
#endif
#ifdef __PJ7_CN
#define PJ7 (0x97)
#endif
#ifdef __PJ8_CN
#define PJ8 (0x98)
#endif
#ifdef __PJ9_CN
#define PJ9 (0x99)
#endif
#ifdef __PJ10_CN
#define PJ10 (0x9A)
#endif
#ifdef __PJ11_CN
#define PJ11 (0x9B)
#endif
#ifdef __PJ12_CN
#define PJ12 (0x9C)
#endif
#ifdef __PJ13_CN
#define PJ13 (0x9D)
#endif
#ifdef __PJ14_CN
#define PJ14 (0x9E)
#endif
#ifdef __PJ15_CN
#define PJ15 (0x9F)
#endif
#ifdef __PK0_CN
#define PK0 (0xA0)
#endif
#ifdef __PK1_CN
#define PK1 (0xA1)
#endif
#ifdef __PK2_CN
#define PK2 (0xA2)
#endif
#ifdef __PK3_CN
#define PK3 (0xA3)
#endif
#ifdef __PK4_CN
#define PK4 (0xA4)
#endif
#ifdef __PK5_CN
#define PK5 (0xA5)
#endif
#ifdef __PK6_CN
#define PK6 (0xA6)
#endif
#ifdef __PK7_CN
#define PK7 (0xA7)
#endif
#ifdef __PK8_CN
#define PK8 (0xA8)
#endif
#ifdef __PK9_CN
#define PK9 (0xA9)
#endif
#ifdef __PK10_CN
#define PK10 (0xAA)
#endif
#ifdef __PK11_CN
#define PK11 (0xAB)
#endif
#ifdef __PK12_CN
#define PK12 (0xAC)
#endif
#ifdef __PK13_CN
#define PK13 (0xAD)
#endif
#ifdef __PK14_CN
#define PK14 (0xAE)
#endif
#ifdef __PK15_CN
#define PK15 (0xAF)
#endif
#define PIN_0 (0x00)
#define PIN_1 (0x01)
#define PIN_2 (0x02)
#define PIN_3 (0x03)
#define PIN_4 (0x04)
#define PIN_5 (0x05)
#define PIN_6 (0x06)
#define PIN_7 (0x07)
#define PIN_8 (0x08)
#define PIN_9 (0x09)
#define PIN_10 (0x0A)
#define PIN_11 (0x0B)
#define PIN_12 (0x0C)
#define PIN_13 (0x0D)
#define PIN_14 (0x0E)
#define PIN_15 (0x0F)
#ifdef __PORT_A_CN
#define PORT_A (0x00)
#endif
#ifdef __PORT_B_CN
#define PORT_B (0x01)
#endif
#ifdef __PORT_C_CN
#define PORT_C (0x02)
#endif
#ifdef __PORT_D_CN
#define PORT_D (0x03)
#endif
#ifdef __PORT_E_CN
#define PORT_E (0x04)
#endif
#ifdef __PORT_F_CN
#define PORT_F (0x05)
#endif
#ifdef __PORT_G_CN
#define PORT_G (0x06)
#endif
#ifdef __PORT_H_CN
#define PORT_H (0x07)
#endif
#ifdef __PORT_I_CN
#define PORT_I (0x08)
#endif
#ifdef __PORT_J_CN
#define PORT_J (0x09)
#endif
#ifdef __PORT_K_CN
#define PORT_K (0x0A)
#endif
#ifdef __cplusplus
}
#endif
#endif // _HAL_PIN_NAMES_H_
// ------------------------------------------------------------------------- END