Skip to content

Commit 05dbfe9

Browse files
committed
Fix: CMSIS stm32g491 and stm32g4a1 add missing aliases for TIM7 and COMP4/5/6
Internal ticket 130525 Fixes #1742 Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 parent ea78f40 commit 05dbfe9

File tree

4 files changed

+60
-1
lines changed

4 files changed

+60
-1
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
From 43d68baed68625b2e99d15d841c31cb1bfb2475a Mon Sep 17 00:00:00 2001
2+
From: Alexandre Bourdiol <alexandre.bourdiol@st.com>
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 <alexandre.bourdiol@st.com>
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+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
339339
| :green_heart: | STM32G474RB<br>STM32G474RC<br>STM32G474RE | Generic Board | *2.0.0* | |
340340
| :green_heart: | STM32G483RE | Generic Board | *2.0.0* | |
341341
| :green_heart: | STM32G484RE | Generic Board | *2.0.0* | |
342-
| :yellow_heart: | STM32G491RC | STM32G491RE | Generic Board | **2.3.0** | |
342+
| :yellow_heart: | STM32G491RC<br>STM32G491RE | Generic Board | **2.3.0** | |
343343
| :yellow_heart: | STM32G4A1RE | Generic Board | **2.3.0** | |
344344

345345
### Generic STM32H7 boards

system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g491xx.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13694,8 +13694,12 @@ typedef struct
1369413694
/******************************************************************************/
1369513695

1369613696
/* Aliases for __IRQn */
13697+
#define TIM7_DAC_IRQn TIM7_IRQn
13698+
#define COMP4_5_6_IRQn COMP4_IRQn
1369713699

1369813700
/* Aliases for __IRQHandler */
13701+
#define TIM7_DAC_IRQHandler TIM7_IRQHandler
13702+
#define COMP4_5_6_IRQHandler COMP4_IRQHandler
1369913703

1370013704
#ifdef __cplusplus
1370113705
}

system/Drivers/CMSIS/Device/ST/STM32G4xx/Include/stm32g4a1xx.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13926,8 +13926,12 @@ typedef struct
1392613926
/******************************************************************************/
1392713927

1392813928
/* Aliases for __IRQn */
13929+
#define TIM7_DAC_IRQn TIM7_IRQn
13930+
#define COMP4_5_6_IRQn COMP4_IRQn
1392913931

1393013932
/* Aliases for __IRQHandler */
13933+
#define TIM7_DAC_IRQHandler TIM7_IRQHandler
13934+
#define COMP4_5_6_IRQHandler COMP4_IRQHandler
1393113935

1393213936
#ifdef __cplusplus
1393313937
}

0 commit comments

Comments
 (0)