Skip to content

Commit d804167

Browse files
committed
STM32L4S5xI: B_L4S5I_IOT01A new target
1 parent c65ad59 commit d804167

File tree

5 files changed

+1071
-0
lines changed

5 files changed

+1071
-0
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+
*/
17+
#ifndef MBED_PERIPHERALNAMES_H
18+
#define MBED_PERIPHERALNAMES_H
19+
20+
#include "cmsis.h"
21+
22+
#ifdef __cplusplus
23+
extern "C" {
24+
#endif
25+
26+
typedef enum {
27+
ADC_1 = (int)ADC1_BASE
28+
} ADCName;
29+
30+
typedef enum {
31+
DAC_1 = (int)DAC_BASE
32+
} DACName;
33+
34+
typedef enum {
35+
UART_1 = (int)USART1_BASE,
36+
UART_2 = (int)USART2_BASE,
37+
UART_3 = (int)USART3_BASE,
38+
UART_4 = (int)UART4_BASE,
39+
UART_5 = (int)UART5_BASE,
40+
LPUART_1 = (int)LPUART1_BASE
41+
} UARTName;
42+
43+
#define DEVICE_SPI_COUNT 3
44+
typedef enum {
45+
SPI_1 = (int)SPI1_BASE,
46+
SPI_2 = (int)SPI2_BASE,
47+
SPI_3 = (int)SPI3_BASE
48+
} SPIName;
49+
50+
typedef enum {
51+
I2C_1 = (int)I2C1_BASE,
52+
I2C_2 = (int)I2C2_BASE,
53+
I2C_3 = (int)I2C3_BASE,
54+
I2C_4 = (int)I2C4_BASE
55+
} I2CName;
56+
57+
typedef enum {
58+
PWM_1 = (int)TIM1_BASE,
59+
PWM_2 = (int)TIM2_BASE,
60+
PWM_3 = (int)TIM3_BASE,
61+
PWM_4 = (int)TIM4_BASE,
62+
PWM_5 = (int)TIM5_BASE,
63+
PWM_8 = (int)TIM8_BASE,
64+
PWM_15 = (int)TIM15_BASE,
65+
PWM_16 = (int)TIM16_BASE,
66+
PWM_17 = (int)TIM17_BASE
67+
} PWMName;
68+
69+
typedef enum {
70+
CAN_1 = (int)CAN1_BASE
71+
} CANName;
72+
73+
typedef enum {
74+
QSPI_1 = (int)OCTOSPI1_R_BASE,
75+
QSPI_2 = (int)OCTOSPI2_R_BASE
76+
} QSPIName;
77+
78+
typedef enum {
79+
USB_FS = (int)USB_OTG_FS_PERIPH_BASE,
80+
} USBName;
81+
82+
#ifdef __cplusplus
83+
}
84+
#endif
85+
86+
#endif

0 commit comments

Comments
 (0)