summaryrefslogtreecommitdiff
path: root/platforms/cortex-m.yaml
blob: 0a156115a12beda5906463ffc989d2887980779a (plain)
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
# All cortex-m
- match:
    cpu: !re cortex-m
  
  periph:
    nvic:
      NVIC:
        offset: 0xe000e100

  interrupt:
    exception:
      2: NMI
      3: HardFault
      4: MemManage
      5: BusFault
      6: UsageFault
      11: SVCall
      14: PendSV
      15: SysTick

  toolchains:
    - arm-none-eabi

  define:
    - CORTEX_M

# cortex-m3
- match:
    cpu: !re cortex-m3

  cflags:
    - -mcpu=cortex-m3

# cortex-m4
- match:
    cpu: !re cortex-m4

  cflags:
    - -mcpu=cortex-m4

# cortex-m7
- match:
    cpu: !re cortex-m7

  cflags:
    - -mcpu=cortex-m7

# FPU
- match:
    cpu: !re cortex-m.f
  
  cflags:
    - -mfloat-abi=hard
    - -mfpu=fpv4-sp-d16
  
  define:
    - HAS_FPU