From 880e6366bdc5afa226e79151e4699a8d2a94014a Mon Sep 17 00:00:00 2001
From: "tsubashmail@gmail.com" <tsubashmail@gmail.com>
Date: Wed, 12 Apr 2023 13:41:35 +1000
Subject: [PATCH] AP_FlashStorage: port for STM32L4+ processor

Added support for stm32l4+ processor

- Added scripts for hwdef generation
- Tested in custom hardware prototype (stm32l4r5vit6)
- Tested all peripherals and auto pilot modes.
---
 libraries/AP_FlashStorage/AP_FlashStorage.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/AP_FlashStorage/AP_FlashStorage.h b/libraries/AP_FlashStorage/AP_FlashStorage.h
index 5152d39d82..b4cb1afd71 100644
--- a/libraries/AP_FlashStorage/AP_FlashStorage.h
+++ b/libraries/AP_FlashStorage/AP_FlashStorage.h
@@ -59,7 +59,7 @@
   STM32H7 can only write in 32 byte chunks, and must only write when all bits are 1
  */
 #define AP_FLASHSTORAGE_TYPE AP_FLASHSTORAGE_TYPE_H7
-#elif defined(STM32G4) || defined(STM32L4)
+#elif defined(STM32G4) || defined(STM32L4) || defined(STM32L4PLUS)
 /*
   STM32G4 can only write in 8 byte chunks, and must only write when all bits are 1
  */