Skip to content

Commit 0e89f9d

Browse files
authored
Merge pull request #14337 from jeromecoutant/PR_STM32L1_1102
STM32L1 update drivers version to CUBE V1.10.2
2 parents 5f9fbfe + 1eb16d1 commit 0e89f9d

File tree

351 files changed

+252263
-60491
lines changed

Some content is hidden

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

351 files changed

+252263
-60491
lines changed

targets/TARGET_STM/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br
7171
| G4 | 1.1.0 | https://github.com/STMicroelectronics/STM32CubeG4 |
7272
| H7 | 1.8.0 | https://github.com/STMicroelectronics/STM32CubeH7 |
7373
| L0 | 1.11.3 | https://github.com/STMicroelectronics/STM32CubeL0 |
74-
| L1 | 1.8.1 | https://github.com/STMicroelectronics/STM32CubeL1 |
74+
| L1 | 1.10.2 | https://github.com/STMicroelectronics/STM32CubeL1 |
7575
| L4 | 1.16.0 | https://github.com/STMicroelectronics/STM32CubeL4 |
7676
| L5 | 1.3.0 | https://github.com/STMicroelectronics/STM32CubeL5 |
7777
| WB | 1.8.0 | https://github.com/STMicroelectronics/STM32CubeWB |
Lines changed: 21 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
add_subdirectory(TARGET_MOTE_L152RC EXCLUDE_FROM_ALL)
5-
add_subdirectory(TARGET_NUCLEO_L152RE EXCLUDE_FROM_ALL)
6-
add_subdirectory(TARGET_XDOT_L151CC EXCLUDE_FROM_ALL)
4+
add_subdirectory(TARGET_STM32L100xB EXCLUDE_FROM_ALL)
5+
add_subdirectory(TARGET_STM32L100xC EXCLUDE_FROM_ALL)
6+
add_subdirectory(TARGET_STM32L151xB EXCLUDE_FROM_ALL)
7+
add_subdirectory(TARGET_STM32L151xC EXCLUDE_FROM_ALL)
8+
add_subdirectory(TARGET_STM32L151xD EXCLUDE_FROM_ALL)
9+
add_subdirectory(TARGET_STM32L151xE EXCLUDE_FROM_ALL)
10+
add_subdirectory(TARGET_STM32L152xB EXCLUDE_FROM_ALL)
11+
add_subdirectory(TARGET_STM32L152xC EXCLUDE_FROM_ALL)
12+
add_subdirectory(TARGET_STM32L152xD EXCLUDE_FROM_ALL)
13+
add_subdirectory(TARGET_STM32L152xE EXCLUDE_FROM_ALL)
14+
add_subdirectory(TARGET_STM32L162xC EXCLUDE_FROM_ALL)
15+
add_subdirectory(TARGET_STM32L162xD EXCLUDE_FROM_ALL)
16+
add_subdirectory(TARGET_STM32L162xE EXCLUDE_FROM_ALL)
17+
18+
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
719

820
add_library(mbed-stm32l1 INTERFACE)
921

22+
target_include_directories(mbed-stm32l1
23+
INTERFACE
24+
.
25+
)
26+
1027
target_sources(mbed-stm32l1
1128
INTERFACE
1229
analogin_device.c
@@ -16,73 +33,6 @@ target_sources(mbed-stm32l1
1633
pwmout_device.c
1734
serial_device.c
1835
spi_api.c
19-
20-
device/stm32l1xx_hal.c
21-
device/stm32l1xx_hal_adc.c
22-
device/stm32l1xx_hal_adc_ex.c
23-
device/stm32l1xx_hal_comp.c
24-
device/stm32l1xx_hal_cortex.c
25-
device/stm32l1xx_hal_crc.c
26-
device/stm32l1xx_hal_cryp.c
27-
device/stm32l1xx_hal_cryp_ex.c
28-
device/stm32l1xx_hal_dac.c
29-
device/stm32l1xx_hal_dac_ex.c
30-
device/stm32l1xx_hal_dma.c
31-
device/stm32l1xx_hal_flash.c
32-
device/stm32l1xx_hal_flash_ex.c
33-
device/stm32l1xx_hal_flash_ramfunc.c
34-
device/stm32l1xx_hal_gpio.c
35-
device/stm32l1xx_hal_i2c.c
36-
device/stm32l1xx_hal_i2s.c
37-
device/stm32l1xx_hal_irda.c
38-
device/stm32l1xx_hal_iwdg.c
39-
device/stm32l1xx_hal_lcd.c
40-
device/stm32l1xx_hal_nor.c
41-
device/stm32l1xx_hal_opamp.c
42-
device/stm32l1xx_hal_opamp_ex.c
43-
device/stm32l1xx_hal_pcd.c
44-
device/stm32l1xx_hal_pcd_ex.c
45-
device/stm32l1xx_hal_pwr.c
46-
device/stm32l1xx_hal_pwr_ex.c
47-
device/stm32l1xx_hal_rcc.c
48-
device/stm32l1xx_hal_rcc_ex.c
49-
device/stm32l1xx_hal_rtc.c
50-
device/stm32l1xx_hal_rtc_ex.c
51-
device/stm32l1xx_hal_sd.c
52-
device/stm32l1xx_hal_smartcard.c
53-
device/stm32l1xx_hal_spi.c
54-
device/stm32l1xx_hal_spi_ex.c
55-
device/stm32l1xx_hal_sram.c
56-
device/stm32l1xx_hal_tim.c
57-
device/stm32l1xx_hal_tim_ex.c
58-
device/stm32l1xx_hal_uart.c
59-
device/stm32l1xx_hal_usart.c
60-
device/stm32l1xx_hal_wwdg.c
61-
device/stm32l1xx_ll_adc.c
62-
device/stm32l1xx_ll_comp.c
63-
device/stm32l1xx_ll_crc.c
64-
device/stm32l1xx_ll_dac.c
65-
device/stm32l1xx_ll_dma.c
66-
device/stm32l1xx_ll_exti.c
67-
device/stm32l1xx_ll_fsmc.c
68-
device/stm32l1xx_ll_gpio.c
69-
device/stm32l1xx_ll_i2c.c
70-
device/stm32l1xx_ll_opamp.c
71-
device/stm32l1xx_ll_pwr.c
72-
device/stm32l1xx_ll_rcc.c
73-
device/stm32l1xx_ll_rtc.c
74-
device/stm32l1xx_ll_sdmmc.c
75-
device/stm32l1xx_ll_spi.c
76-
device/stm32l1xx_ll_tim.c
77-
device/stm32l1xx_ll_usart.c
78-
device/stm32l1xx_ll_utils.c
79-
device/system_stm32l1xx.c
80-
)
81-
82-
target_include_directories(mbed-stm32l1
83-
INTERFACE
84-
.
85-
device
8636
)
8737

88-
target_link_libraries(mbed-stm32l1 INTERFACE mbed-stm)
38+
target_link_libraries(mbed-stm32l1 INTERFACE mbed-stm mbed-stm32l1cube-fw)
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/* mbed Microcontroller Library
2+
* SPDX-License-Identifier: BSD-3-Clause
3+
******************************************************************************
4+
*
5+
* Copyright (c) 2016-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+
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+
#if defined UART4_BASE
38+
UART_4 = (int)UART4_BASE,
39+
#endif
40+
#if defined UART5_BASE
41+
UART_5 = (int)UART5_BASE
42+
#endif
43+
} UARTName;
44+
45+
#define DEVICE_SPI_COUNT 3
46+
typedef enum {
47+
SPI_1 = (int)SPI1_BASE,
48+
SPI_2 = (int)SPI2_BASE,
49+
SPI_3 = (int)SPI3_BASE
50+
} SPIName;
51+
52+
typedef enum {
53+
I2C_1 = (int)I2C1_BASE,
54+
I2C_2 = (int)I2C2_BASE
55+
} I2CName;
56+
57+
typedef enum {
58+
PWM_2 = (int)TIM2_BASE,
59+
PWM_3 = (int)TIM3_BASE,
60+
PWM_4 = (int)TIM4_BASE,
61+
PWM_5 = (int)TIM5_BASE,
62+
PWM_9 = (int)TIM9_BASE,
63+
PWM_10 = (int)TIM10_BASE,
64+
PWM_11 = (int)TIM11_BASE
65+
} PWMName;
66+
67+
typedef enum {
68+
USB_FS = (int)USB_BASE,
69+
} USBName;
70+
71+
#ifdef __cplusplus
72+
}
73+
#endif
74+
75+
#endif

0 commit comments

Comments
 (0)