summaryrefslogtreecommitdiff
path: root/Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform/startup_generic.S
blob: b8d454e784655757505de4aa4c244743daae4a4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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