Skip to content

Commit ccd1c65

Browse files
authored
Merge pull request #14002 from jeromecoutant/PR_F0
STM32F0 update drivers version to CUBE V1.11.2
2 parents 115eee4 + b0c50d4 commit ccd1c65

File tree

251 files changed

+156443
-40383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+156443
-40383
lines changed

targets/TARGET_STM/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br
6161

6262
| STM32 Serie | Cube version | Github source |
6363
|-------------|--------------|---------------------------------------------------|
64-
| F0 | 1.9.0 | https://github.com/STMicroelectronics/STM32CubeF0 |
64+
| F0 | 1.11.2 | https://github.com/STMicroelectronics/STM32CubeF0 |
6565
| F1 | 1.8.0 | https://github.com/STMicroelectronics/STM32CubeF1 |
6666
| F2 | 1.6.0 | https://github.com/STMicroelectronics/STM32CubeF2 |
6767
| F3 | 1.9.0 | https://github.com/STMicroelectronics/STM32CubeF3 |

targets/TARGET_STM/TARGET_STM32F0/CMakeLists.txt

Lines changed: 14 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -3,83 +3,29 @@
33

44
if("STM32F091xC" IN_LIST MBED_TARGET_LABELS)
55
add_subdirectory(TARGET_STM32F091xC)
6-
elseif("NUCLEO_F070RB" IN_LIST MBED_TARGET_LABELS)
7-
add_subdirectory(TARGET_NUCLEO_F070RB)
8-
elseif("NUCLEO_F072RB" IN_LIST MBED_TARGET_LABELS)
9-
add_subdirectory(TARGET_NUCLEO_F072RB)
6+
elseif("STM32F072xB" IN_LIST MBED_TARGET_LABELS)
7+
add_subdirectory(TARGET_STM32F072xB)
8+
elseif("STM32F070xB" IN_LIST MBED_TARGET_LABELS)
9+
add_subdirectory(TARGET_STM32F070xB)
10+
elseif("STM32F030x8" IN_LIST MBED_TARGET_LABELS)
11+
add_subdirectory(TARGET_STM32F030x8)
1012
endif()
1113

14+
add_subdirectory(STM32Cube_FW)
15+
16+
target_include_directories(mbed-core
17+
INTERFACE
18+
.
19+
)
20+
1221
target_sources(mbed-core
1322
INTERFACE
1423
analogin_device.c
1524
analogout_device.c
25+
cmsis_nvic.c
1626
flash_api.c
1727
gpio_irq_device.c
1828
pwmout_device.c
1929
serial_device.c
2030
spi_api.c
21-
22-
device/stm32f0xx_hal.c
23-
device/stm32f0xx_hal_adc.c
24-
device/stm32f0xx_hal_adc_ex.c
25-
device/stm32f0xx_hal_can.c
26-
device/stm32f0xx_hal_cec.c
27-
device/stm32f0xx_hal_comp.c
28-
device/stm32f0xx_hal_cortex.c
29-
device/stm32f0xx_hal_crc.c
30-
device/stm32f0xx_hal_crc_ex.c
31-
device/stm32f0xx_hal_dac.c
32-
device/stm32f0xx_hal_dac_ex.c
33-
device/stm32f0xx_hal_dma.c
34-
device/stm32f0xx_hal_flash.c
35-
device/stm32f0xx_hal_flash_ex.c
36-
device/stm32f0xx_hal_gpio.c
37-
device/stm32f0xx_hal_i2c.c
38-
device/stm32f0xx_hal_i2c_ex.c
39-
device/stm32f0xx_hal_i2s.c
40-
device/stm32f0xx_hal_irda.c
41-
device/stm32f0xx_hal_iwdg.c
42-
device/stm32f0xx_hal_pcd.c
43-
device/stm32f0xx_hal_pcd_ex.c
44-
device/stm32f0xx_hal_pwr.c
45-
device/stm32f0xx_hal_pwr_ex.c
46-
device/stm32f0xx_hal_rcc.c
47-
device/stm32f0xx_hal_rcc_ex.c
48-
device/stm32f0xx_hal_rtc.c
49-
device/stm32f0xx_hal_rtc_ex.c
50-
device/stm32f0xx_hal_smartcard.c
51-
device/stm32f0xx_hal_smartcard_ex.c
52-
device/stm32f0xx_hal_smbus.c
53-
device/stm32f0xx_hal_spi.c
54-
device/stm32f0xx_hal_spi_ex.c
55-
device/stm32f0xx_hal_tim.c
56-
device/stm32f0xx_hal_tim_ex.c
57-
device/stm32f0xx_hal_tsc.c
58-
device/stm32f0xx_hal_uart.c
59-
device/stm32f0xx_hal_uart_ex.c
60-
device/stm32f0xx_hal_usart.c
61-
device/stm32f0xx_hal_wwdg.c
62-
device/stm32f0xx_ll_adc.c
63-
device/stm32f0xx_ll_comp.c
64-
device/stm32f0xx_ll_crc.c
65-
device/stm32f0xx_ll_crs.c
66-
device/stm32f0xx_ll_dac.c
67-
device/stm32f0xx_ll_dma.c
68-
device/stm32f0xx_ll_exti.c
69-
device/stm32f0xx_ll_gpio.c
70-
device/stm32f0xx_ll_i2c.c
71-
device/stm32f0xx_ll_pwr.c
72-
device/stm32f0xx_ll_rcc.c
73-
device/stm32f0xx_ll_rtc.c
74-
device/stm32f0xx_ll_spi.c
75-
device/stm32f0xx_ll_tim.c
76-
device/stm32f0xx_ll_usart.c
77-
device/stm32f0xx_ll_utils.c
78-
device/system_stm32f0xx.c
79-
)
80-
81-
target_include_directories(mbed-core
82-
INTERFACE
83-
.
84-
device
8531
)
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/* mbed Microcontroller Library
2+
* SPDX-License-Identifier: BSD-3-Clause
3+
******************************************************************************
4+
*
5+
* Copyright (c) 2015-2020 STMicroelectronics.
6+
* All rights reserved.
7+
*
8+
* This software component is licensed by ST under BSD 3-Clause license,
9+
* the "License"; You may not use this file except in compliance with the
10+
* License. You may obtain a copy of the License at:
11+
* opensource.org/licenses/BSD-3-Clause
12+
*
13+
******************************************************************************
14+
*/
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+
#if defined DAC_BASE
30+
typedef enum {
31+
DAC_1 = (int)DAC_BASE
32+
} DACName;
33+
#endif
34+
35+
typedef enum {
36+
UART_1 = (int)USART1_BASE,
37+
UART_2 = (int)USART2_BASE,
38+
#if defined USART3_BASE
39+
UART_3 = (int)USART3_BASE,
40+
#endif
41+
#if defined USART4_BASE
42+
UART_4 = (int)USART4_BASE,
43+
#endif
44+
#if defined USART5_BASE
45+
UART_5 = (int)USART5_BASE,
46+
#endif
47+
#if defined USART6_BASE
48+
UART_6 = (int)USART6_BASE,
49+
#endif
50+
#if defined USART7_BASE
51+
UART_7 = (int)USART7_BASE,
52+
#endif
53+
#if defined USART8_BASE
54+
UART_8 = (int)USART8_BASE,
55+
#endif
56+
} UARTName;
57+
58+
#define DEVICE_SPI_COUNT 2
59+
typedef enum {
60+
SPI_1 = (int)SPI1_BASE,
61+
SPI_2 = (int)SPI2_BASE
62+
} SPIName;
63+
64+
typedef enum {
65+
I2C_1 = (int)I2C1_BASE,
66+
I2C_2 = (int)I2C2_BASE
67+
} I2CName;
68+
69+
typedef enum {
70+
PWM_1 = (int)TIM1_BASE,
71+
#if defined TIM2_BASE
72+
PWM_2 = (int)TIM2_BASE,
73+
#endif
74+
PWM_3 = (int)TIM3_BASE,
75+
PWM_14 = (int)TIM14_BASE,
76+
PWM_15 = (int)TIM15_BASE,
77+
PWM_16 = (int)TIM16_BASE,
78+
PWM_17 = (int)TIM17_BASE
79+
} PWMName;
80+
81+
#if defined CAN_BASE
82+
typedef enum {
83+
CAN_1 = (int)CAN_BASE
84+
} CANName;
85+
#endif
86+
87+
#if defined USB_BASE
88+
typedef enum {
89+
USB_FS = (int)USB_BASE,
90+
} USBName;
91+
#endif
92+
93+
#ifdef __cplusplus
94+
}
95+
#endif
96+
97+
#endif

0 commit comments

Comments
 (0)