Просмотр исходного кода

Cortex-M85: Remove excess eunmerators in IRQn_Type (#1533)

Values added past `Interrupt9_IRQn` are a potential problem for users
that decide to include the header, and then define device-specific
exceptions in a different enum. In this scenario a "redeclaration of
enumerator 'TIMER0_IRQn'" will occur.

Remove the excess enumerators to avoid potential issues, and to align
`IRQn_Type` with Device Header Files for other Cortex-M cores.

Signed-off-by: Filip Jagodzinski <filip.jagodzinski@arm.com>

Co-authored-by: Martin Günther <martin.guenther@arm.com>
Filip Jagodziński 3 лет назад
Родитель
Сommit
3050b03d1b
1 измененных файлов с 2 добавлено и 5 удалено
  1. 2 5
      Device/ARM/ARMCM85/Include/ARMCM85.h

+ 2 - 5
Device/ARM/ARMCM85/Include/ARMCM85.h

@@ -2,8 +2,8 @@
  * @file     ARMCM85.h
  * @brief    CMSIS Device Header File for ARMCM85 Device
  *           (double precision FPU, DSP extension, MVE, TrustZone)
- * @version  V1.0.0
- * @date     07. February 2022
+ * @version  V1.0.1
+ * @date     21. July 2022
  ******************************************************************************/
 /*
  * Copyright (c) 2022 Arm Limited. All rights reserved.
@@ -59,9 +59,6 @@ typedef enum IRQn
   Interrupt8_IRQn               =   8,
   Interrupt9_IRQn               =   9
   /* Interrupts 10 .. 480 are left out */
- ,TIMER0_IRQn                   =  10,
-  UART0RX_IRQn                  =  11,
-  UART0TX_IRQn                  =  12
 } IRQn_Type;