From 54b9dad11e7a20a8416e807544a758cc71e537da Mon Sep 17 00:00:00 2001 From: Teijo Kinnunen Date: Tue, 4 Jun 2019 09:38:20 +0300 Subject: [PATCH] STM32L0: Add DEVICE_SPI_COUNT to DISCO_L072CZ_LRWAN1 + MTB_MURATA_ABZ Enables simultaneous use of both SPIs without interference. --- .../TARGET_DISCO_L072CZ_LRWAN1/PeripheralNames.h | 1 + .../TARGET_STM32L0x2xZ/TARGET_MTB_MURATA_ABZ/PeripheralNames.h | 1 + 2 files changed, 2 insertions(+) diff --git a/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L072xZ/TARGET_DISCO_L072CZ_LRWAN1/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L072xZ/TARGET_DISCO_L072CZ_LRWAN1/PeripheralNames.h index 79e6801366..90e36c1bee 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L072xZ/TARGET_DISCO_L072CZ_LRWAN1/PeripheralNames.h +++ b/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L072xZ/TARGET_DISCO_L072CZ_LRWAN1/PeripheralNames.h @@ -52,6 +52,7 @@ typedef enum { LPUART_1 = (int)LPUART1_BASE } UARTName; +#define DEVICE_SPI_COUNT 2 typedef enum { SPI_1 = (int)SPI1_BASE, SPI_2 = (int)SPI2_BASE diff --git a/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L0x2xZ/TARGET_MTB_MURATA_ABZ/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L0x2xZ/TARGET_MTB_MURATA_ABZ/PeripheralNames.h index f65181c852..37701983a5 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L0x2xZ/TARGET_MTB_MURATA_ABZ/PeripheralNames.h +++ b/targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L0x2xZ/TARGET_MTB_MURATA_ABZ/PeripheralNames.h @@ -52,6 +52,7 @@ typedef enum { LPUART_1 = (int)LPUART1_BASE } UARTName; +#define DEVICE_SPI_COUNT 2 typedef enum { SPI_1 = (int)SPI1_BASE, SPI_2 = (int)SPI2_BASE