Mon, 11 Mar 2024 15:35:36 +0100
Add links to sr.ht repos and add an image in the README file
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 | //============================================================================== |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
32 | // Notes |
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 | // - The pins mentioned Px_y_ALTz are alternative possibilities which use other |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
35 | // HW peripheral instances. You can use them the same way as any other "normal" |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
36 | // pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
37 | // pinout image on mbed.org. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
38 | // |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
39 | // - The pins which are connected to other components present on the board have |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
40 | // the comment "Connected to xxx". The pin function may not work properly in this |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
41 | // case. These pins may not be displayed on the board pinout image on mbed.org. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
42 | // Please read the board reference manual and schematic for more information. |
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 | // - Warning: pins connected to the default STDIO_UART_TX and STDIO_UART_RX pins are commented |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
45 | // See https://os.mbed.com/teams/ST/wiki/STDIO for more information. |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
46 | // |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
47 | //============================================================================== |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
48 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
49 | #ifndef MBED_PERIPHERALPINMAPS_H |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
50 | #define MBED_PERIPHERALPINMAPS_H |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
51 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
52 | #include "PinNamesTypes.h" |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
53 | #include <mstd_cstddef> |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
54 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
55 | //*** ADC *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
56 | //*** ADC *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
57 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
58 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_ADC[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
59 | {PA_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC1_IN1 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
60 | {PA_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC1_IN2 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
61 | // {PA_2, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC1_IN3 // Connected to STDIO_UART_TX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
62 | // {PA_3, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC1_IN4 // Connected to STDIO_UART_RX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
63 | {PA_4, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC2_IN1 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
64 | // {PA_5, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC2_IN2 // Connected to LD2 [Green Led] |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
65 | {PA_6, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC2_IN3 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
66 | {PA_7, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC2_IN4 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
67 | {PB_0, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 12, 0)}, // ADC3_IN12 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
68 | {PB_1, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC3_IN1 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
69 | {PB_2, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 12, 0)}, // ADC2_IN12 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
70 | {PB_11, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 14, 0)}, // ADC1_IN14 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
71 | {PB_11_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 14, 0)}, // ADC2_IN14 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
72 | {PB_12, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC4_IN3 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
73 | {PB_13, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC3_IN5 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
74 | {PB_14, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC4_IN4 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
75 | {PB_15, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC4_IN5 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
76 | {PC_0, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC1_IN6 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
77 | {PC_0_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
78 | {PC_1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC1_IN7 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
79 | {PC_1_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
80 | {PC_2, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC1_IN8 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
81 | {PC_2_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
82 | {PC_3, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC1_IN9 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
83 | {PC_3_ALT0, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
84 | {PC_4, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC2_IN5 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
85 | {PC_5, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 11, 0)}, // ADC2_IN11 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
86 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
87 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
88 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
89 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_ADC_Internal[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
90 | {ADC_TEMP, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 16, 0)}, // ADC1_IN16 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
91 | {ADC_VREF1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 18, 0)}, // ADC1_IN18 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
92 | {ADC_VREF2, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 18, 0)}, // ADC2_IN18 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
93 | {ADC_VREF3, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 18, 0)}, // ADC3_IN18 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
94 | {ADC_VREF4, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 18, 0)}, // ADC4_IN18 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
95 | {ADC_VBAT, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC1_IN17 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
96 | {ADC_VOPAMP1, ADC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 15, 0)}, // ADC1_IN15 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
97 | {ADC_VOPAMP2, ADC_2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC2_IN17 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
98 | {ADC_VOPAMP3, ADC_3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC3_IN17 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
99 | {ADC_VOPAMP4, ADC_4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 17, 0)}, // ADC4_IN17 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
100 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
101 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
102 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
103 | //*** DAC *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
104 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
105 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_DAC[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
106 | {PA_4, DAC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // DAC1_OUT1 |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
107 | {PA_5, DAC_1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // DAC1_OUT2 // Connected to LD2 [Green Led] |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
108 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
109 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
110 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
111 | //*** I2C *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
112 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
113 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_I2C_SDA[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
114 | {PA_10, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
115 | {PA_14, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to TCK |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
116 | {PB_5, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF8_I2C3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
117 | {PB_7, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
118 | {PB_9, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
119 | {PC_9, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF3_I2C3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
120 | // {PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to RCC_OSC_IN |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
121 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
122 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
123 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
124 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_I2C_SCL[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
125 | {PA_8, I2C_3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF3_I2C3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
126 | {PA_9, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
127 | {PA_15, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
128 | {PB_6, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
129 | {PB_8, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
130 | // {PF_1, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to RCC_OSC_OUT |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
131 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
132 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
133 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
134 | //*** PWM *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
135 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
136 | // TIM2 cannot be used because already used by the us_ticker |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
137 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_PWM[] = { |
64
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
138 | // {PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
139 | // {PA_1, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 2, 0)}, // TIM2_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
140 | {PA_1, PWM_15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_TIM15, 1, 1)}, // TIM15_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
141 | // {PA_2, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 3, 0)}, // TIM2_CH3 // Connected to STDIO_UART_TX |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
142 | // {PA_2, PWM_15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_TIM15, 1, 0)}, // TIM15_CH1 // Connected to STDIO_UART_TX |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
143 | // {PA_3, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 4, 0)}, // TIM2_CH4 // Connected to STDIO_UART_RX |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
144 | // {PA_3, PWM_15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_TIM15, 2, 0)}, // TIM15_CH2 // Connected to STDIO_UART_RX |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
145 | {PA_4, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
146 | // {PA_5, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 // Connected to LD2 [Green Led] |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
147 | {PA_6, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
148 | {PA_6_ALT0, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
149 | {PA_7, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 1, 1)}, // TIM1_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
150 | {PA_7_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
151 | {PA_7_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 1, 1)}, // TIM8_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
152 | {PA_7_ALT2, PWM_17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM17, 1, 0)}, // TIM17_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
153 | {PA_8, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 1, 0)}, // TIM1_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
154 | {PA_9, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 2, 0)}, // TIM1_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
155 | // {PA_9, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM2, 3, 0)}, // TIM2_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
156 | {PA_10, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 3, 0)}, // TIM1_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
157 | // {PA_10, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM2, 4, 0)}, // TIM2_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
158 | {PA_11, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 1, 1)}, // TIM1_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
159 | {PA_11_ALT0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF11_TIM1, 4, 0)}, // TIM1_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
160 | {PA_11_ALT1, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM4, 1, 0)}, // TIM4_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
161 | {PA_12, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
162 | {PA_12_ALT0, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM4, 2, 0)}, // TIM4_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
163 | {PA_12_ALT1, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
164 | {PA_13, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM4, 3, 0)}, // TIM4_CH3 // Connected to TMS |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
165 | {PA_13_ALT0, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM16, 1, 1)}, // TIM16_CH1N // Connected to TMS |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
166 | {PA_14, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_TIM8, 2, 0)}, // TIM8_CH2 // Connected to TCK |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
167 | // {PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
168 | {PA_15, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM8, 1, 0)}, // TIM8_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
169 | {PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
170 | {PB_0_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
171 | {PB_0_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 2, 1)}, // TIM8_CH2N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
172 | {PB_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 3, 1)}, // TIM1_CH3N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
173 | {PB_1_ALT0, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
174 | {PB_1_ALT1, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 3, 1)}, // TIM8_CH3N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
175 | // {PB_3, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 2, 0)}, // TIM2_CH2 // Connected to SWO |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
176 | {PB_3, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 1, 1)}, // TIM8_CH1N // Connected to SWO |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
177 | {PB_4, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
178 | {PB_4_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 2, 1)}, // TIM8_CH2N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
179 | {PB_4_ALT1, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
180 | {PB_5, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
181 | {PB_5_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
182 | {PB_5_ALT1, PWM_17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM17, 1, 0)}, // TIM17_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
183 | {PB_6, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM4, 1, 0)}, // TIM4_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
184 | {PB_6_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_TIM8, 1, 0)}, // TIM8_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
185 | {PB_6_ALT1, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM16, 1, 1)}, // TIM16_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
186 | {PB_7, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM3, 4, 0)}, // TIM3_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
187 | {PB_7_ALT0, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM4, 2, 0)}, // TIM4_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
188 | {PB_7_ALT1, PWM_17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM17, 1, 1)}, // TIM17_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
189 | {PB_8, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM4, 3, 0)}, // TIM4_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
190 | {PB_8_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM8, 2, 0)}, // TIM8_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
191 | {PB_8_ALT1, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
192 | {PB_9, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM4, 4, 0)}, // TIM4_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
193 | {PB_9_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_TIM8, 3, 0)}, // TIM8_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
194 | {PB_9_ALT1, PWM_17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM17, 1, 0)}, // TIM17_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
195 | // {PB_10, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 3, 0)}, // TIM2_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
196 | // {PB_11, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM2, 4, 0)}, // TIM2_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
197 | {PB_13, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 1, 1)}, // TIM1_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
198 | {PB_14, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
199 | {PB_14_ALT0, PWM_15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM15, 1, 0)}, // TIM15_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
200 | {PB_15, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM1, 3, 1)}, // TIM1_CH3N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
201 | {PB_15_ALT0, PWM_15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM15, 1, 1)}, // TIM15_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
202 | {PB_15_ALT1, PWM_15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF1_TIM15, 2, 0)}, // TIM15_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
203 | {PC_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM1, 1, 0)}, // TIM1_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
204 | {PC_1, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM1, 2, 0)}, // TIM1_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
205 | {PC_2, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM1, 3, 0)}, // TIM1_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
206 | {PC_3, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM1, 4, 0)}, // TIM1_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
207 | {PC_6, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
208 | {PC_6_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 1, 0)}, // TIM8_CH1 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
209 | {PC_7, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
210 | {PC_7_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 2, 0)}, // TIM8_CH2 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
211 | {PC_8, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 3, 0)}, // TIM3_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
212 | {PC_8_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 3, 0)}, // TIM8_CH3 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
213 | {PC_9, PWM_3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF2_TIM3, 4, 0)}, // TIM3_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
214 | {PC_9_ALT0, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 4, 0)}, // TIM8_CH4 |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
215 | {PC_10, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 1, 1)}, // TIM8_CH1N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
216 | {PC_11, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 2, 1)}, // TIM8_CH2N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
217 | {PC_12, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM8, 3, 1)}, // TIM8_CH3N |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
218 | {PC_13, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF4_TIM1, 1, 1)}, // TIM1_CH1N // Connected to B1 [Blue PushButton] |
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
219 | // {PF_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_TIM1, 3, 1)}, // TIM1_CH3N // Connected to RCC_OSC_IN |
30
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
220 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
221 | }; |
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 | //*** SERIAL *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
224 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
225 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_UART_TX[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
226 | {PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to STDIO_UART_TX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
227 | {PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
228 | {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to TCK |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
229 | {PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWO |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
230 | {PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
231 | {PB_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
232 | {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
233 | {PC_4, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
234 | {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
235 | {PC_10_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART4)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
236 | {PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART5)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
237 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
238 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
239 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
240 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_UART_RX[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
241 | {PA_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to STDIO_UART_RX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
242 | {PA_10, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
243 | {PA_15, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
244 | {PB_4, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
245 | {PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
246 | {PB_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
247 | {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
248 | {PC_5, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
249 | {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
250 | {PC_11_ALT0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART4)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
251 | {PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_UART5)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
252 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
253 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
254 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
255 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_UART_RTS[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
256 | {PA_1, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
257 | {PA_12, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
258 | {PB_14, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
259 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
260 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
261 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
262 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_UART_CTS[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
263 | {PA_0, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
264 | {PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
265 | {PA_13, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to TMS |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
266 | {PB_13, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
267 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
268 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
269 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
270 | //*** SPI *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
271 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
272 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_SPI_MOSI[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
273 | {PA_7, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
274 | {PA_11, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
275 | {PB_5, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
276 | {PB_5_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
277 | {PB_15, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
278 | {PC_12, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
279 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
280 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
281 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
282 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_SPI_MISO[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
283 | {PA_6, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
284 | {PA_10, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
285 | {PB_4, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
286 | {PB_4_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
287 | {PB_14, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
288 | {PC_11, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
289 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
290 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
291 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
292 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_SPI_SCLK[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
293 | {PA_5, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, // Connected to LD2 [Green Led] |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
294 | {PB_3, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, // Connected to SWO |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
295 | {PB_3_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, // Connected to SWO |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
296 | {PB_13, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
297 | {PC_10, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
298 | // {PF_1, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to RCC_OSC_OUT |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
299 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
300 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
301 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
302 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_SPI_SSEL[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
303 | {PA_4, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
304 | {PA_4_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
305 | {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI1)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
306 | {PA_15_ALT0, SPI_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF6_SPI3)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
307 | {PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
308 | // {PF_0, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF5_SPI2)}, // Connected to RCC_OSC_IN |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
309 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
310 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
311 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
312 | //*** CAN *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
313 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
314 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_CAN_RD[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
315 | {PA_11, CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
316 | {PB_8, CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
317 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
318 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
319 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
320 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_CAN_TD[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
321 | {PA_12, CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
322 | {PB_9, CAN_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN)}, |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
323 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
324 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
325 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
326 | //*** USBDEVICE *** |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
327 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
328 | MSTD_CONSTEXPR_OBJ_11 PinMap PinMap_USB_FS[] = { |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
329 | {PA_11, USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DM |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
330 | {PA_12, USB_FS, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, GPIO_AF_NONE)}, // USB_DP |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
331 | {NC, NC, 0} |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
332 | }; |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
333 | |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
334 | #define PINMAP_ANALOGIN PinMap_ADC |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
335 | #define PINMAP_ANALOGIN_INTERNAL PinMap_ADC_Internal |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
336 | #define PINMAP_ANALOGOUT PinMap_DAC |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
337 | #define PINMAP_I2C_SDA PinMap_I2C_SDA |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
338 | #define PINMAP_I2C_SCL PinMap_I2C_SCL |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
339 | #define PINMAP_UART_TX PinMap_UART_TX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
340 | #define PINMAP_UART_RX PinMap_UART_RX |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
341 | #define PINMAP_UART_CTS PinMap_UART_CTS |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
342 | #define PINMAP_UART_RTS PinMap_UART_RTS |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
343 | #define PINMAP_SPI_SCLK PinMap_SPI_SCLK |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
344 | #define PINMAP_SPI_MOSI PinMap_SPI_MOSI |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
345 | #define PINMAP_SPI_MISO PinMap_SPI_MISO |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
346 | #define PINMAP_SPI_SSEL PinMap_SPI_SSEL |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
347 | #define PINMAP_PWM PinMap_PWM |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
348 | #define PINMAP_CAN_RD PinMap_CAN_RD |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
349 | #define PINMAP_CAN_TD PinMap_CAN_TD |
71be284c66b3
Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff
changeset
|
350 | |
64
897330ee6e9d
Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents:
30
diff
changeset
|
351 | #endif |