Skip to content

Commit a519a2f

Browse files
committed
STM32L0: directory restructuration
+ STM32Cube_FW_L0_V1.10.0 original files + targets.json update introducing subfamily level
1 parent 8d9dabe commit a519a2f

File tree

241 files changed

+75787
-4152
lines changed

Some content is hidden

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

241 files changed

+75787
-4152
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
#if DEVICE_ANALOGOUT
30+
typedef enum {
31+
DAC_1 = (int)DAC_BASE
32+
} DACName;
33+
#endif
34+
35+
typedef enum {
36+
#if defined(USART1_BASE)
37+
UART_1 = (int)USART1_BASE,
38+
#endif
39+
#if defined(USART2_BASE)
40+
UART_2 = (int)USART2_BASE,
41+
#endif
42+
#if defined(USART4_BASE)
43+
UART_4 = (int)USART4_BASE,
44+
#endif
45+
#if defined(USART5_BASE)
46+
UART_5 = (int)USART5_BASE,
47+
#endif
48+
#if defined(LPUART1_BASE)
49+
LPUART_1 = (int)LPUART1_BASE
50+
#endif
51+
} UARTName;
52+
53+
#define DEVICE_SPI_COUNT 2
54+
typedef enum {
55+
SPI_1 = (int)SPI1_BASE,
56+
SPI_2 = (int)SPI2_BASE
57+
} SPIName;
58+
59+
typedef enum {
60+
I2C_1 = (int)I2C1_BASE,
61+
I2C_2 = (int)I2C2_BASE,
62+
#if defined(I2C3_BASE)
63+
I2C_3 = (int)I2C3_BASE
64+
#endif
65+
} I2CName;
66+
67+
typedef enum {
68+
PWM_2 = (int)TIM2_BASE,
69+
#if defined(TIM3_BASE)
70+
PWM_3 = (int)TIM3_BASE,
71+
#endif
72+
PWM_21 = (int)TIM21_BASE,
73+
PWM_22 = (int)TIM22_BASE
74+
} PWMName;
75+
76+
#if defined(USB_BASE)
77+
typedef enum {
78+
USB_FS = (int)USB_BASE,
79+
} USBName;
80+
#endif
81+
82+
#ifdef __cplusplus
83+
}
84+
#endif
85+
86+
#endif

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l011xx.h

Lines changed: 5955 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l021xx.h

Lines changed: 6095 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l031xx.h

Lines changed: 6094 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l041xx.h

Lines changed: 6234 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l051xx.h

Lines changed: 6270 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l052xx.h

Lines changed: 7346 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l061xx.h

Lines changed: 6410 additions & 0 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32L0/STM32Cube_FW/CMSIS/stm32l062xx.h

Lines changed: 7486 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)