TARGET_HP34970_FP_F303RD/PeripheralNames.h

Thu, 07 Oct 2021 22:24:45 +0200

author
David Douard <david.douard@sdfa3.org>
date
Thu, 07 Oct 2021 22:24:45 +0200
changeset 69
516acbbce05a
parent 64
897330ee6e9d
permissions
-rw-r--r--

Possibly fix the 'reset FP while running' case

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) 2015, 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 #ifndef MBED_PERIPHERALNAMES_H
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
31 #define MBED_PERIPHERALNAMES_H
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
32
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
33 #include "cmsis.h"
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
34
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
35 #ifdef __cplusplus
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
36 extern "C" {
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
37 #endif
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 typedef enum {
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
40 ADC_1 = (int)ADC1_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
41 #if defined ADC2_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
42 ADC_2 = (int)ADC2_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
43 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
44 #if defined ADC3_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
45 ADC_3 = (int)ADC3_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
46 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
47 #if defined ADC4_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
48 ADC_4 = (int)ADC4_BASE
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
49 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
50 } ADCName;
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 typedef enum {
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
53 DAC_1 = (int)DAC1_BASE,
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
54 #if defined DAC2_BASE
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
55 DAC_2 = (int)DAC2_BASE
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
56 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
57 } DACName;
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
58
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
59 typedef enum {
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
60 UART_1 = (int)USART1_BASE,
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
61 UART_2 = (int)USART2_BASE,
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
62 UART_3 = (int)USART3_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
63 #if defined UART4_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
64 UART_4 = (int)UART4_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
65 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
66 #if defined UART5_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
67 UART_5 = (int)UART5_BASE
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
68 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
69 } UARTName;
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
70
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
71 #define DEVICE_SPI_COUNT 4
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
72 typedef enum {
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
73 #if defined SPI1_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
74 SPI_1 = (int)SPI1_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
75 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
76 #if defined SPI2_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
77 SPI_2 = (int)SPI2_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
78 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
79 #if defined SPI3_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
80 SPI_3 = (int)SPI3_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
81 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
82 #if defined SPI4_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
83 SPI_4 = (int)SPI4_BASE
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
84 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
85 } SPIName;
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
86
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
87 typedef enum {
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
88 I2C_1 = (int)I2C1_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
89 #if defined I2C2_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
90 I2C_2 = (int)I2C2_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
91 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
92 #if defined I2C3_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
93 I2C_3 = (int)I2C3_BASE
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
94 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
95 } I2CName;
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
96
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
97 typedef enum {
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
98 PWM_1 = (int)TIM1_BASE,
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
99 PWM_2 = (int)TIM2_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
100 #if defined TIM3_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
101 PWM_3 = (int)TIM3_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
102 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
103 #if defined TIM4_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
104 PWM_4 = (int)TIM4_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
105 #endif
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
106 #if defined TIM8_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
107 PWM_8 = (int)TIM8_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
108 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
109 PWM_15 = (int)TIM15_BASE,
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
110 PWM_16 = (int)TIM16_BASE,
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
111 PWM_17 = (int)TIM17_BASE,
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
112 #if defined TIM20_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
113 PWM_20 = (int)TIM20_BASE
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
114 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
115 } PWMName;
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
116
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
117 typedef enum {
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
118 CAN_1 = (int)CAN_BASE
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
119 } CANName;
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
120
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
121 #if defined USB_BASE
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
122 typedef enum {
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
123 USB_FS = (int)USB_BASE,
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
124 } USBName;
64
897330ee6e9d Make USBSerial work -- at last
David Douard <david.douard@sdfa3.org>
parents: 30
diff changeset
125 #endif
30
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
126
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
127 #ifdef __cplusplus
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
128 }
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
129 #endif
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
130
71be284c66b3 Update the custom target HP34970_FP_303RD
David Douard <david.douard@sdf3.org>
parents:
diff changeset
131 #endif

mercurial