|
| 1 | +From 43d68baed68625b2e99d15d841c31cb1bfb2475a Mon Sep 17 00:00:00 2001 |
| 2 | +From: Alexandre Bourdiol < [email protected]> |
| 3 | +Date: Mon, 20 Jun 2022 13:58:28 +0200 |
| 4 | +Subject: [PATCH] Fix: CMSIS stm32g491 and stm32g4a1 add missing aliases for |
| 5 | + TIM7 and COMP4/5/6 |
| 6 | + |
| 7 | +Internal ticket 130525 |
| 8 | + |
| 9 | +Signed-off-by: Alexandre Bourdiol < [email protected]> |
| 10 | +--- |
| 11 | + .../Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g491xx.h | 4 ++++ |
| 12 | + .../Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4a1xx.h | 4 ++++ |
| 13 | + 2 files changed, 8 insertions(+) |
| 14 | + |
| 15 | +diff --git a/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g491xx.h b/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g491xx.h |
| 16 | +index ca9874b3..84f12c6e 100644 |
| 17 | +--- a/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g491xx.h |
| 18 | ++++ b/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g491xx.h |
| 19 | +@@ -13694,8 +13694,12 @@ typedef struct |
| 20 | + /******************************************************************************/ |
| 21 | + |
| 22 | + /* Aliases for __IRQn */ |
| 23 | ++#define TIM7_DAC_IRQn TIM7_IRQn |
| 24 | ++#define COMP4_5_6_IRQn COMP4_IRQn |
| 25 | + |
| 26 | + /* Aliases for __IRQHandler */ |
| 27 | ++#define TIM7_DAC_IRQHandler TIM7_IRQHandler |
| 28 | ++#define COMP4_5_6_IRQHandler COMP4_IRQHandler |
| 29 | + |
| 30 | + #ifdef __cplusplus |
| 31 | + } |
| 32 | +diff --git a/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4a1xx.h b/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4a1xx.h |
| 33 | +index 2fb6e6f5..2431b284 100644 |
| 34 | +--- a/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4a1xx.h |
| 35 | ++++ b/system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4a1xx.h |
| 36 | +@@ -13926,8 +13926,12 @@ typedef struct |
| 37 | + /******************************************************************************/ |
| 38 | + |
| 39 | + /* Aliases for __IRQn */ |
| 40 | ++#define TIM7_DAC_IRQn TIM7_IRQn |
| 41 | ++#define COMP4_5_6_IRQn COMP4_IRQn |
| 42 | + |
| 43 | + /* Aliases for __IRQHandler */ |
| 44 | ++#define TIM7_DAC_IRQHandler TIM7_IRQHandler |
| 45 | ++#define COMP4_5_6_IRQHandler COMP4_IRQHandler |
| 46 | + |
| 47 | + #ifdef __cplusplus |
| 48 | + } |
| 49 | +-- |
| 50 | +2.31.1.windows.1 |
| 51 | + |
0 commit comments