Sun, 25 Oct 2020 23:00:17 +0100
Add support for the shift flag
30
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
1 | /* mbed Microcontroller Library |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
2 | ******************************************************************************* |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
3 | * Copyright (c) 2018, STMicroelectronics |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
4 | * All rights reserved. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
5 | * |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
6 | * Redistribution and use in source and binary forms, with or without |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
7 | * modification, are permitted provided that the following conditions are met: |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
8 | * |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
9 | * 1. Redistributions of source code must retain the above copyright notice, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
10 | * this list of conditions and the following disclaimer. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
12 | * this list of conditions and the following disclaimer in the documentation |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
13 | * and/or other materials provided with the distribution. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
15 | * may be used to endorse or promote products derived from this software |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
16 | * without specific prior written permission. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
17 | * |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
28 | ******************************************************************************* |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
29 | */ |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
30 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
31 | #ifndef MBED_PINNAMES_H |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
32 | #define MBED_PINNAMES_H |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
33 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
34 | #include "cmsis.h" |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
35 | #include "PinNamesTypes.h" |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
36 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
37 | #ifdef __cplusplus |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
38 | extern "C" { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
39 | #endif |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
40 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
41 | /* If this macro is defined, then constexpr utility functions for pin-map seach can be used. */ |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
42 | #define STATIC_PINMAP_READY 1 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
43 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
44 | typedef enum { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
45 | ALT0 = 0x100, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
46 | ALT1 = 0x200, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
47 | ALT2 = 0x300, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
48 | ALT3 = 0x400 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
49 | } ALTx; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
50 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
51 | typedef enum { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
52 | PA_0 = 0x00, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
53 | PA_1 = 0x01, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
54 | PA_2 = 0x02, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
55 | PA_3 = 0x03, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
56 | PA_4 = 0x04, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
57 | PA_4_ALT0 = PA_4 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
58 | PA_5 = 0x05, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
59 | PA_6 = 0x06, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
60 | PA_6_ALT0 = PA_6 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
61 | PA_7 = 0x07, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
62 | PA_7_ALT0 = PA_7 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
63 | PA_7_ALT1 = PA_7 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
64 | PA_7_ALT2 = PA_7 | ALT2, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
65 | PA_8 = 0x08, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
66 | PA_9 = 0x09, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
67 | PA_10 = 0x0A, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
68 | PA_11 = 0x0B, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
69 | PA_11_ALT0 = PA_11 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
70 | PA_11_ALT1 = PA_11 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
71 | PA_12 = 0x0C, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
72 | PA_12_ALT0 = PA_12 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
73 | PA_12_ALT1 = PA_12 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
74 | PA_13 = 0x0D, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
75 | PA_13_ALT0 = PA_13 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
76 | PA_14 = 0x0E, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
77 | PA_15 = 0x0F, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
78 | PA_15_ALT0 = PA_15 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
79 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
80 | PB_0 = 0x10, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
81 | PB_0_ALT0 = PB_0 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
82 | PB_0_ALT1 = PB_0 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
83 | PB_1 = 0x11, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
84 | PB_1_ALT0 = PB_1 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
85 | PB_1_ALT1 = PB_1 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
86 | PB_2 = 0x12, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
87 | PB_3 = 0x13, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
88 | PB_3_ALT0 = PB_3 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
89 | PB_4 = 0x14, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
90 | PB_4_ALT0 = PB_4 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
91 | PB_4_ALT1 = PB_4 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
92 | PB_5 = 0x15, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
93 | PB_5_ALT0 = PB_5 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
94 | PB_5_ALT1 = PB_5 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
95 | PB_6 = 0x16, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
96 | PB_6_ALT0 = PB_6 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
97 | PB_6_ALT1 = PB_6 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
98 | PB_7 = 0x17, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
99 | PB_7_ALT0 = PB_7 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
100 | PB_7_ALT1 = PB_7 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
101 | PB_8 = 0x18, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
102 | PB_8_ALT0 = PB_8 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
103 | PB_8_ALT1 = PB_8 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
104 | PB_9 = 0x19, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
105 | PB_9_ALT0 = PB_9 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
106 | PB_9_ALT1 = PB_9 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
107 | PB_10 = 0x1A, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
108 | PB_11 = 0x1B, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
109 | PB_11_ALT0 = PB_11 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
110 | PB_12 = 0x1C, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
111 | PB_13 = 0x1D, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
112 | PB_14 = 0x1E, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
113 | PB_14_ALT0 = PB_14 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
114 | PB_15 = 0x1F, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
115 | PB_15_ALT0 = PB_15 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
116 | PB_15_ALT1 = PB_15 | ALT1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
117 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
118 | PC_0 = 0x20, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
119 | PC_0_ALT0 = PC_0 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
120 | PC_1 = 0x21, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
121 | PC_1_ALT0 = PC_1 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
122 | PC_2 = 0x22, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
123 | PC_2_ALT0 = PC_2 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
124 | PC_3 = 0x23, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
125 | PC_3_ALT0 = PC_3 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
126 | PC_4 = 0x24, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
127 | PC_5 = 0x25, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
128 | PC_6 = 0x26, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
129 | PC_6_ALT0 = PC_6 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
130 | PC_7 = 0x27, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
131 | PC_7_ALT0 = PC_7 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
132 | PC_8 = 0x28, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
133 | PC_8_ALT0 = PC_8 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
134 | PC_9 = 0x29, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
135 | PC_9_ALT0 = PC_9 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
136 | PC_10 = 0x2A, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
137 | PC_10_ALT0 = PC_10 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
138 | PC_11 = 0x2B, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
139 | PC_11_ALT0 = PC_11 | ALT0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
140 | PC_12 = 0x2C, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
141 | PC_13 = 0x2D, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
142 | PC_14 = 0x2E, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
143 | PC_15 = 0x2F, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
144 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
145 | PD_2 = 0x32, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
146 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
147 | PF_0 = 0x50, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
148 | PF_1 = 0x51, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
149 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
150 | // ADC internal channels |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
151 | ADC_TEMP = 0xF0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
152 | ADC_VREF1 = 0xF1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
153 | ADC_VREF2 = 0xF2, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
154 | ADC_VREF3 = 0xF3, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
155 | ADC_VREF4 = 0xF4, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
156 | ADC_VREF = ADC_VREF1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
157 | ADC_VBAT = 0xF5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
158 | ADC_VOPAMP1 = 0xF6, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
159 | ADC_VOPAMP2 = 0xF7, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
160 | ADC_VOPAMP3 = 0xF8, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
161 | ADC_VOPAMP4 = 0xF9, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
162 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
163 | // Arduino connector namings |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
164 | A0 = PA_0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
165 | A1 = PA_1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
166 | A2 = PA_4, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
167 | A3 = PB_0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
168 | A4 = PC_1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
169 | A5 = PC_0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
170 | D0 = PA_3, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
171 | D1 = PA_2, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
172 | D2 = PA_10, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
173 | D3 = PB_3, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
174 | D4 = PB_5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
175 | D5 = PB_4, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
176 | D6 = PB_10, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
177 | D7 = PA_8, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
178 | D8 = PA_9, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
179 | D9 = PC_7, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
180 | D10 = PB_6, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
181 | D11 = PA_7, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
182 | D12 = PA_6, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
183 | D13 = PA_5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
184 | D14 = PB_9, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
185 | D15 = PB_8, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
186 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
187 | // STDIO for console print |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
188 | #ifdef MBED_CONF_TARGET_STDIO_UART_TX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
189 | STDIO_UART_TX = MBED_CONF_TARGET_STDIO_UART_TX, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
190 | #else |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
191 | STDIO_UART_TX = PA_2, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
192 | #endif |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
193 | #ifdef MBED_CONF_TARGET_STDIO_UART_RX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
194 | STDIO_UART_RX = MBED_CONF_TARGET_STDIO_UART_RX, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
195 | #else |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
196 | STDIO_UART_RX = PA_3, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
197 | #endif |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
198 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
199 | // Generic signals namings |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
200 | LED1 = PA_5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
201 | LED2 = PA_5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
202 | LED3 = PA_5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
203 | LED4 = PA_5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
204 | USER_BUTTON = PC_13, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
205 | // Standardized button names |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
206 | BUTTON1 = USER_BUTTON, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
207 | SERIAL_TX = STDIO_UART_TX, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
208 | SERIAL_RX = STDIO_UART_RX, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
209 | USBTX = STDIO_UART_TX, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
210 | USBRX = STDIO_UART_RX, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
211 | I2C_SCL = PB_8, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
212 | I2C_SDA = PB_9, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
213 | SPI_MOSI = PA_7, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
214 | SPI_MISO = PA_6, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
215 | SPI_SCK = PA_5, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
216 | SPI_CS = PB_6, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
217 | PWM_OUT = PB_4, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
218 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
219 | /**** USB pins ****/ |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
220 | USB_DM = PA_11, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
221 | USB_DP = PA_12, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
222 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
223 | /**** OSCILLATOR pins ****/ |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
224 | RCC_OSC32_IN = PC_14, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
225 | RCC_OSC32_OUT = PC_15, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
226 | RCC_OSC_IN = PF_0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
227 | RCC_OSC_OUT = PF_1, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
228 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
229 | /**** DEBUG pins ****/ |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
230 | SYS_JTCK_SWCLK = PA_14, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
231 | SYS_JTDI = PA_15, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
232 | SYS_JTDO_TRACESWO = PB_3, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
233 | SYS_JTMS_SWDIO = PA_13, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
234 | SYS_NJTRST = PB_4, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
235 | SYS_WKUP1 = PA_0, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
236 | SYS_WKUP2 = PC_13, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
237 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
238 | // Not connected |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
239 | NC = (int)0xFFFFFFFF |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
240 | } PinName; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
241 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
242 | #ifdef __cplusplus |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
243 | } |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
244 | #endif |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
245 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
246 | #endif |