Kaynağa Gözat

Device: Cortex-M55 system include to partition header.

Moved out of conditional inclusion of device header file
to be in sync with other system files, like for Armv8.1-MML.

Change-Id: I2e32fdb2045b17ef4f2ab3753705e0b0060bb5ce
Jonatan Antoni 5 yıl önce
ebeveyn
işleme
4e010b3626
1 değiştirilmiş dosya ile 5 ekleme ve 6 silme
  1. 5 6
      Device/ARM/ARMCM55/Source/system_ARMCM55.c

+ 5 - 6
Device/ARM/ARMCM55/Source/system_ARMCM55.c

@@ -3,7 +3,7 @@
  * @brief    CMSIS Device System Source File for
  * @brief    CMSIS Device System Source File for
  *           ARMCM55 Device
  *           ARMCM55 Device
  * @version  V1.0.0
  * @version  V1.0.0
- * @date     27. March 2020
+ * @date     30. March 2020
  ******************************************************************************/
  ******************************************************************************/
 /*
 /*
  * Copyright (c) 2009-2020 Arm Limited. All rights reserved.
  * Copyright (c) 2009-2020 Arm Limited. All rights reserved.
@@ -25,15 +25,14 @@
 
 
 #if defined (ARMCM55)
 #if defined (ARMCM55)
   #include "ARMCM55.h"
   #include "ARMCM55.h"
+#else
+  #error device not specified!
+#endif
 
 
   #if defined (__ARM_FEATURE_CMSE) &&  (__ARM_FEATURE_CMSE == 3U)
   #if defined (__ARM_FEATURE_CMSE) &&  (__ARM_FEATURE_CMSE == 3U)
     #include "partition_ARMCM55.h"
     #include "partition_ARMCM55.h"
   #endif
   #endif
 
 
-#else
-  #error device not specified!
-#endif
-
 /*----------------------------------------------------------------------------
 /*----------------------------------------------------------------------------
   Define clocks
   Define clocks
  *----------------------------------------------------------------------------*/
  *----------------------------------------------------------------------------*/
@@ -83,7 +82,7 @@ void SystemInit (void)
 #endif
 #endif
 
 
 // Enable Loop and branch info cache
 // Enable Loop and branch info cache
-SCB->CCR |= SCB_CCR_LOB_Msk; 
+SCB->CCR |= SCB_CCR_LOB_Msk;
 __ISB();
 __ISB();
 
 
 #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
 #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)