Skip to content

Commit f1d0314

Browse files
authored
Merge pull request #4410 from arostm/dev_disco_f413ZH
DISCO_F413ZH: Add new platform
2 parents 55355d7 + b5af4c4 commit f1d0314

File tree

31 files changed

+20122
-15
lines changed

31 files changed

+20122
-15
lines changed

features/unsupported/USBHost/USBHost/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/TARGET_NUCLEO_F411RE/USBHALHost_STM_TARGET.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
/* 144 pins boards */
2020
#if defined(TARGET_NUCLEO_F429ZI) || defined(TARGET_NUCLEO_F446ZE) || defined(TARGET_NUCLEO_F207ZG) \
21-
|| defined(TARGET_NUCLEO_F767ZI) || defined(TARGET_NUCLEO_F746ZG) || defined(TARGET_NUCLEO_F412ZG)
21+
|| defined(TARGET_NUCLEO_F767ZI) || defined(TARGET_NUCLEO_F746ZG) || defined(TARGET_NUCLEO_F412ZG) \
22+
|| defined(TARGET_DISCO_F413ZH)
2223
#include "USBHALHost_STM_144_64pins.h"
2324
#endif
2425

features/unsupported/tests/mbed/can/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CAN can1(PD_0, PD_1);
2020
defined(TARGET_NUCLEO_F302R8) || defined(TARGET_NUCLEO_F446RE) || \
2121
defined(TARGET_DISCO_F429ZI) || defined(TARGET_NUCLEO_F103RB) || \
2222
defined(TARGET_NUCLEO_F746ZG) || defined(TARGET_NUCLEO_L476RG) || \
23-
defined(TARGET_NUCLEO_F412ZG) || \
23+
defined(TARGET_NUCLEO_F412ZG) || defined(TARGET_DISCO_F413ZH) || \
2424
defined(TARGET_NUCLEO_L432KC) || defined(TARGET_DISCO_F303VC)
2525
CAN can1(PA_11, PA_12);
2626
#elif defined(TARGET_DISCO_F469NI) ||defined(TARGET_DISCO_F746NG)
@@ -35,7 +35,7 @@ CAN can2(p34, p33);
3535
CAN can2(p30, p29);
3636
#elif defined(TARGET_NUCLEO_F446RE) || defined(TARGET_DISCO_F469NI) || \
3737
defined(TARGET_DISCO_F429ZI) || defined(TARGET_NUCLEO_F746ZG) || \
38-
defined(TARGET_NUCLEO_F412ZG) || \
38+
defined(TARGET_NUCLEO_F412ZG) || defined(TARGET_DISCO_F413ZH) || \
3939
defined(TARGET_DISCO_F746NG)
4040
CAN can2(PB_5, PB_6);
4141
#endif

features/unsupported/tests/mbed/can_interrupt/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CAN can1(PD_0, PD_1);
2020
defined(TARGET_NUCLEO_F302R8) || defined(TARGET_NUCLEO_F446RE) || \
2121
defined(TARGET_DISCO_F429ZI) || defined(TARGET_NUCLEO_F103RB) || \
2222
defined(TARGET_NUCLEO_F746ZG) || defined(TARGET_NUCLEO_L476RG) || \
23-
defined(TARGET_NUCLEO_F412ZG) || \
23+
defined(TARGET_NUCLEO_F412ZG) || defined(TARGET_DISCO_F413ZH) || \
2424
defined(TARGET_NUCLEO_L432KC) || defined(TARGET_DISCO_F303VC)
2525
CAN can1(PA_11, PA_12);
2626
#elif defined(TARGET_DISCO_F469NI) || defined(TARGET_DISCO_F746NG)
@@ -35,7 +35,7 @@ CAN can2(p34, p33);
3535
CAN can2(p30, p29);
3636
#elif defined(TARGET_NUCLEO_F446RE) || defined(TARGET_DISCO_F469NI) || \
3737
defined(TARGET_DISCO_F429ZI) || defined(TARGET_NUCLEO_F746ZG) || \
38-
defined(TARGET_NUCLEO_F412ZG) || \
38+
defined(TARGET_NUCLEO_F412ZG) || defined(TARGET_DISCO_F413ZH) || \
3939
defined(TARGET_DISCO_F746NG)
4040
CAN can2(PB_5, PB_6);
4141
#endif

features/unsupported/tests/mbed/can_loopback/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ CAN can1(P5_9, P5_10);
1919
defined(TARGET_NUCLEO_F302R8) || defined(TARGET_NUCLEO_F446RE) || \
2020
defined(TARGET_DISCO_F429ZI) || \
2121
defined(TARGET_NUCLEO_F746ZG) || defined(TARGET_DISCO_L476VG) || defined(TARGET_DISCO_L475VG_IOT01A) || \
22-
defined(TARGET_NUCLEO_F412ZG) || \
22+
defined(TARGET_NUCLEO_F412ZG) || defined(TARGET_DISCO_F413ZH) || \
2323
defined(TARGET_NUCLEO_L476RG) || defined(TARGET_NUCLEO_L432KC)
2424
CAN can1(PA_11, PA_12);
2525
#elif defined(TARGET_DISCO_F469NI) || defined(TARGET_DISCO_F746NG) || \
2626
defined(TARGET_NUCLEO_F446ZE) || defined(TARGET_NUCLEO_F103RB) || \
2727
defined(TARGET_NUCLEO_F207ZG) || defined(TARGET_NUCLEO_F303ZE) || \
2828
defined(TARGET_DISCO_F769NI) || defined(TARGET_NUCLEO_F767ZI) || \
29-
defined(TARGET_NUCLEO_F412ZG) || \
3029
defined(TARGET_DISCO_F303VC)
3130
CAN can1(PB_8, PB_9);
3231
#endif
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2016 ARM Limited
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
#ifndef MBED_PERIPHERALNAMES_H
17+
#define MBED_PERIPHERALNAMES_H
18+
19+
#include "cmsis.h"
20+
21+
#ifdef __cplusplus
22+
extern "C" {
23+
#endif
24+
25+
typedef enum {
26+
ADC_1 = (int)ADC1_BASE
27+
} ADCName;
28+
29+
typedef enum {
30+
DAC_1 = (int)DAC_BASE
31+
} DACName;
32+
33+
typedef enum {
34+
UART_1 = (int)USART1_BASE,
35+
UART_2 = (int)USART2_BASE,
36+
UART_3 = (int)USART3_BASE,
37+
UART_4 = (int)UART4_BASE,
38+
UART_5 = (int)UART5_BASE,
39+
UART_6 = (int)USART6_BASE,
40+
UART_7 = (int)UART7_BASE,
41+
UART_8 = (int)UART8_BASE,
42+
UART_9 = (int)UART9_BASE,
43+
UART_10 = (int)UART10_BASE
44+
} UARTName;
45+
46+
#define STDIO_UART_TX PG_14
47+
#define STDIO_UART_RX PG_9
48+
#define STDIO_UART UART_6
49+
50+
typedef enum {
51+
SPI_1 = (int)SPI1_BASE,
52+
SPI_2 = (int)SPI2_BASE,
53+
SPI_3 = (int)SPI3_BASE,
54+
SPI_4 = (int)SPI4_BASE,
55+
SPI_5 = (int)SPI5_BASE
56+
} SPIName;
57+
58+
typedef enum {
59+
I2C_1 = (int)I2C1_BASE,
60+
I2C_2 = (int)I2C2_BASE,
61+
I2C_3 = (int)I2C3_BASE,
62+
FMPI2C_1 = (int)FMPI2C1_BASE
63+
} I2CName;
64+
65+
typedef enum {
66+
PWM_1 = (int)TIM1_BASE,
67+
PWM_2 = (int)TIM2_BASE,
68+
PWM_3 = (int)TIM3_BASE,
69+
PWM_4 = (int)TIM4_BASE,
70+
PWM_5 = (int)TIM5_BASE,
71+
PWM_8 = (int)TIM8_BASE,
72+
PWM_9 = (int)TIM9_BASE,
73+
PWM_10 = (int)TIM10_BASE,
74+
PWM_11 = (int)TIM11_BASE,
75+
PWM_12 = (int)TIM12_BASE,
76+
PWM_13 = (int)TIM13_BASE,
77+
PWM_14 = (int)TIM14_BASE
78+
} PWMName;
79+
80+
typedef enum {
81+
CAN_1 = (int)CAN1_BASE,
82+
CAN_2 = (int)CAN2_BASE,
83+
CAN_3 = (int)CAN3_BASE
84+
} CANName;
85+
86+
#ifdef __cplusplus
87+
}
88+
#endif
89+
90+
#endif

0 commit comments

Comments
 (0)