Skip to content

Commit

Permalink
Merge pull request #14337 from jeromecoutant/PR_STM32L1_1102
Browse files Browse the repository at this point in the history
STM32L1 update drivers version to CUBE V1.10.2
  • Loading branch information
0xc0170 committed Mar 9, 2021
2 parents 5f9fbfe + 1eb16d1 commit 0e89f9d
Show file tree
Hide file tree
Showing 351 changed files with 252,263 additions and 60,491 deletions.
2 changes: 1 addition & 1 deletion targets/TARGET_STM/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br
| G4 | 1.1.0 | https://github.com/STMicroelectronics/STM32CubeG4 |
| H7 | 1.8.0 | https://github.com/STMicroelectronics/STM32CubeH7 |
| L0 | 1.11.3 | https://github.com/STMicroelectronics/STM32CubeL0 |
| L1 | 1.8.1 | https://github.com/STMicroelectronics/STM32CubeL1 |
| L1 | 1.10.2 | https://github.com/STMicroelectronics/STM32CubeL1 |
| L4 | 1.16.0 | https://github.com/STMicroelectronics/STM32CubeL4 |
| L5 | 1.3.0 | https://github.com/STMicroelectronics/STM32CubeL5 |
| WB | 1.8.0 | https://github.com/STMicroelectronics/STM32CubeWB |
Expand Down
92 changes: 21 additions & 71 deletions targets/TARGET_STM/TARGET_STM32L1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(TARGET_MOTE_L152RC EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_NUCLEO_L152RE EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_XDOT_L151CC EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L100xB EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L100xC EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L151xB EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L151xC EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L151xD EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L151xE EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L152xB EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L152xC EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L152xD EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L152xE EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L162xC EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L162xD EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_STM32L162xE EXCLUDE_FROM_ALL)

add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)

add_library(mbed-stm32l1 INTERFACE)

target_include_directories(mbed-stm32l1
INTERFACE
.
)

target_sources(mbed-stm32l1
INTERFACE
analogin_device.c
Expand All @@ -16,73 +33,6 @@ target_sources(mbed-stm32l1
pwmout_device.c
serial_device.c
spi_api.c

device/stm32l1xx_hal.c
device/stm32l1xx_hal_adc.c
device/stm32l1xx_hal_adc_ex.c
device/stm32l1xx_hal_comp.c
device/stm32l1xx_hal_cortex.c
device/stm32l1xx_hal_crc.c
device/stm32l1xx_hal_cryp.c
device/stm32l1xx_hal_cryp_ex.c
device/stm32l1xx_hal_dac.c
device/stm32l1xx_hal_dac_ex.c
device/stm32l1xx_hal_dma.c
device/stm32l1xx_hal_flash.c
device/stm32l1xx_hal_flash_ex.c
device/stm32l1xx_hal_flash_ramfunc.c
device/stm32l1xx_hal_gpio.c
device/stm32l1xx_hal_i2c.c
device/stm32l1xx_hal_i2s.c
device/stm32l1xx_hal_irda.c
device/stm32l1xx_hal_iwdg.c
device/stm32l1xx_hal_lcd.c
device/stm32l1xx_hal_nor.c
device/stm32l1xx_hal_opamp.c
device/stm32l1xx_hal_opamp_ex.c
device/stm32l1xx_hal_pcd.c
device/stm32l1xx_hal_pcd_ex.c
device/stm32l1xx_hal_pwr.c
device/stm32l1xx_hal_pwr_ex.c
device/stm32l1xx_hal_rcc.c
device/stm32l1xx_hal_rcc_ex.c
device/stm32l1xx_hal_rtc.c
device/stm32l1xx_hal_rtc_ex.c
device/stm32l1xx_hal_sd.c
device/stm32l1xx_hal_smartcard.c
device/stm32l1xx_hal_spi.c
device/stm32l1xx_hal_spi_ex.c
device/stm32l1xx_hal_sram.c
device/stm32l1xx_hal_tim.c
device/stm32l1xx_hal_tim_ex.c
device/stm32l1xx_hal_uart.c
device/stm32l1xx_hal_usart.c
device/stm32l1xx_hal_wwdg.c
device/stm32l1xx_ll_adc.c
device/stm32l1xx_ll_comp.c
device/stm32l1xx_ll_crc.c
device/stm32l1xx_ll_dac.c
device/stm32l1xx_ll_dma.c
device/stm32l1xx_ll_exti.c
device/stm32l1xx_ll_fsmc.c
device/stm32l1xx_ll_gpio.c
device/stm32l1xx_ll_i2c.c
device/stm32l1xx_ll_opamp.c
device/stm32l1xx_ll_pwr.c
device/stm32l1xx_ll_rcc.c
device/stm32l1xx_ll_rtc.c
device/stm32l1xx_ll_sdmmc.c
device/stm32l1xx_ll_spi.c
device/stm32l1xx_ll_tim.c
device/stm32l1xx_ll_usart.c
device/stm32l1xx_ll_utils.c
device/system_stm32l1xx.c
)

target_include_directories(mbed-stm32l1
INTERFACE
.
device
)

target_link_libraries(mbed-stm32l1 INTERFACE mbed-stm)
target_link_libraries(mbed-stm32l1 INTERFACE mbed-stm mbed-stm32l1cube-fw)
75 changes: 75 additions & 0 deletions targets/TARGET_STM/TARGET_STM32L1/PeripheralNames.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/* mbed Microcontroller Library
* SPDX-License-Identifier: BSD-3-Clause
******************************************************************************
*
* Copyright (c) 2016-2020 STMicroelectronics.
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/

#ifndef MBED_PERIPHERALNAMES_H
#define MBED_PERIPHERALNAMES_H

#include "cmsis.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
ADC_1 = (int)ADC1_BASE
} ADCName;

typedef enum {
DAC_1 = (int)DAC_BASE
} DACName;

typedef enum {
UART_1 = (int)USART1_BASE,
UART_2 = (int)USART2_BASE,
UART_3 = (int)USART3_BASE,
#if defined UART4_BASE
UART_4 = (int)UART4_BASE,
#endif
#if defined UART5_BASE
UART_5 = (int)UART5_BASE
#endif
} UARTName;

#define DEVICE_SPI_COUNT 3
typedef enum {
SPI_1 = (int)SPI1_BASE,
SPI_2 = (int)SPI2_BASE,
SPI_3 = (int)SPI3_BASE
} SPIName;

typedef enum {
I2C_1 = (int)I2C1_BASE,
I2C_2 = (int)I2C2_BASE
} I2CName;

typedef enum {
PWM_2 = (int)TIM2_BASE,
PWM_3 = (int)TIM3_BASE,
PWM_4 = (int)TIM4_BASE,
PWM_5 = (int)TIM5_BASE,
PWM_9 = (int)TIM9_BASE,
PWM_10 = (int)TIM10_BASE,
PWM_11 = (int)TIM11_BASE
} PWMName;

typedef enum {
USB_FS = (int)USB_BASE,
} USBName;

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 0e89f9d

Please sign in to comment.