diff options
author | joshua <joshua@joshuayun.com> | 2023-12-30 23:54:31 -0500 |
---|---|---|
committer | joshua <joshua@joshuayun.com> | 2023-12-30 23:54:31 -0500 |
commit | 86608c6770cf08c138a2bdab5855072f64be09ef (patch) | |
tree | 494a61b3ef37e76f9235a0d10f5c93d97290a35f /Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S | |
download | sdr-software-master.tar.gz |
Diffstat (limited to 'Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S')
-rw-r--r-- | Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S b/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S new file mode 100644 index 0000000..b8d454e --- /dev/null +++ b/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S @@ -0,0 +1,68 @@ +
+#if defined (__CC_ARM)
+ #if (defined (ARMCM0))
+ #include "ARMCC\startup_armv6-m.s"
+ #elif (defined (ARMCM0P) || defined (ARMCM0P_MPU))
+ #include "ARMCC\startup_armv6-m.s"
+ #elif (defined (ARMCM3))
+ #include "ARMCC\startup_armv7-m.s"
+ #elif (defined (ARMCM4) || defined (ARMCM4_FP))
+ #include "ARMCC\startup_armv7-m.s"
+ #elif (defined (ARMCM7) || defined (ARMCM7_SP) || defined (ARMCM7_DP))
+ #include "ARMCC\startup_armv7-m.s"
+ #elif (defined (ARMv8MBL))
+ #include "ARMCC\startup_armv6-m.s"
+ #elif (defined (ARMv8MML) || defined (ARMv8MML_DSP) || \
+ defined (ARMv8MML_SP) || defined (ARMv8MML_DSP_SP) || \
+ defined (ARMv8MML_DP) || defined (ARMv8MML_DSP_DP) )
+ #include "ARMCC\startup_armv7-m.s"
+ #else
+ #error "No appropriate startup file found!"
+ #endif
+
+#elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
+ #if (defined (ARMCM0))
+ #include "ARMCLANG\startup_armv6-m.S"
+ #elif (defined (ARMCM0P) || defined (ARMCM0P_MPU))
+ #include "ARMCLANG\startup_armv6-m.S"
+ #elif (defined (ARMCM3))
+ #include "ARMCLANG\startup_armv7-m.S"
+ #elif (defined (ARMCM4) || defined (ARMCM4_FP))
+ #include "ARMCLANG\startup_armv7-m.S"
+ #elif (defined (ARMCM7) || defined (ARMCM7_SP) || defined (ARMCM7_DP))
+ #include "ARMCLANG\startup_armv7-m.S"
+ #elif (defined (ARMv8MBL))
+ #include "ARMCLANG\startup_armv6-m.S"
+ #elif (defined (ARMv8MML) || defined (ARMv8MML_DSP) || \
+ defined (ARMv8MML_SP) || defined (ARMv8MML_DSP_SP) || \
+ defined (ARMv8MML_DP) || defined (ARMv8MML_DSP_DP) )
+ #include "ARMCLANG\startup_armv7-m.S"
+ #else
+ #error "No appropriate startup file found!"
+ #endif
+
+#elif defined (__GNUC__)
+ #if (defined (ARMCM0))
+ #include "GCC\startup_armv6-m.S"
+ #elif (defined (ARMCM0P) || defined (ARMCM0P_MPU))
+ #include "GCC\startup_armv6-m.S"
+ #elif (defined (ARMCM3))
+ #include "GCC\startup_armv7-m.S"
+ #elif (defined (ARMCM4) || defined (ARMCM4_FP))
+ #include "GCC\startup_armv7-m.S"
+ #elif (defined (ARMCM7) || defined (ARMCM7_SP) || defined (ARMCM7_DP))
+ #include "GCC\startup_armv7-m.S"
+ #elif (defined (ARMv8MBL))
+ #include "GCC\startup_armv6-m.S"
+ #elif (defined (ARMv8MML) || defined (ARMv8MML_DSP) || \
+ defined (ARMv8MML_SP) || defined (ARMv8MML_DSP_SP) || \
+ defined (ARMv8MML_DP) || defined (ARMv8MML_DSP_DP) )
+ #include "GCC\startup_armv7-m.S"
+ #else
+ #error "No appropriate startup file found!"
+ #endif
+
+#else
+ #error "Compiler not supported!"
+#endif
+
|