Skip to content

Commit 3b5ab54

Browse files
authored
Merge pull request #13542 from jeromecoutant/PR_DISCO_L4S
B_L4S5I_IOT01A: new ST target
2 parents 1f6fe47 + 423bea5 commit 3b5ab54

File tree

17 files changed

+23661
-0
lines changed

17 files changed

+23661
-0
lines changed

connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_MS/mbed_lib.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
"SPI_IRQ": "PE_6",
2525
"SPI_SCK": "PC_10"
2626
},
27+
"B_L4S5I_IOT01A": {
28+
"SPI_MOSI": "PC_12",
29+
"SPI_MISO": "PC_11",
30+
"SPI_nCS": "PD_13",
31+
"SPI_RESET": "PA_8",
32+
"SPI_IRQ": "PE_6",
33+
"SPI_SCK": "PC_10"
34+
},
2735
"DISCO_L562QE": {
2836
"SPI_MOSI": "PG_4",
2937
"SPI_MISO": "PG_3",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* mbedtls_device.h
3+
*******************************************************************************
4+
* Copyright (c) 2017, STMicroelectronics
5+
* SPDX-License-Identifier: Apache-2.0
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License"); you may
8+
* not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
*
19+
*/
20+
#ifndef MBEDTLS_DEVICE_H
21+
#define MBEDTLS_DEVICE_H
22+
23+
#define MBEDTLS_AES_ALT
24+
25+
#endif /* MBEDTLS_DEVICE_H */
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

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4S5xI/TARGET_B_L4S5I_IOT01A/PeripheralPins.c

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

0 commit comments

Comments
 (0)