summaryrefslogtreecommitdiff
path: root/platforms/cortex-m.yaml
blob: ea7761532c6345c0cb014f9331d47caf174e7b00 (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
# 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

# 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