-
Notifications
You must be signed in to change notification settings - Fork 15
/
Platforms
121 lines (117 loc) · 3.56 KB
/
Platforms
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Copyright (c) 10.2013, 0xc0170
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# PLATFORM SELECTION
# KINETIS PLATFORM
ifeq ($(BOARD), KL05Z)
LINKER_NAME = MKL05Z4
STARTUP_NAME = startup_MKL05Z4
SYSTEM_NAME = system_MKL05Z4
TARGET_BOARD = TARGET_KL05Z
TARGET_VENDOR = TARGET_Freescale
TARGET_FAMILY = TARGET_KLXX
TARGET_SPECIFIC = TARGET_KL05Z
CPU = cortex-m0
else ifeq ($(BOARD), KL25Z)
LINKER_NAME = MKL25Z4
STARTUP_NAME = startup_MKL25Z4
SYSTEM_NAME = system_MKL25Z4
TARGET_BOARD = TARGET_KL25Z
TARGET_VENDOR = TARGET_Freescale
TARGET_FAMILY = TARGET_KLXX
TARGET_SPECIFIC = TARGET_KL25Z
CPU = cortex-m0
else ifeq ($(BOARD), KL46Z)
LINKER_NAME = MKL46Z4
STARTUP_NAME = startup_MKL46Z4
SYSTEM_NAME = system_MKL46Z4
TARGET_BOARD = TARGET_KL46Z
TARGET_VENDOR = TARGET_Freescale
TARGET_FAMILY = TARGET_KLXX
TARGET_SPECIFIC = TARGET_KL46Z
CPU = cortex-m0
# NXP PLATFORM
else ifeq ($(BOARD), LPC1768)
LINKER_NAME = LPC1768
STARTUP_NAME = startup_LPC17xx
SYSTEM_NAME = system_LPC17xx
TARGET_BOARD = TARGET_LPC1768
TARGET_VENDOR = TARGET_NXP
TARGET_FAMILY = TARGET_LPC176X
TARGET_SPECIFIC = TARGET_MBED_LPC1768
CPU = cortex-m3
else ifeq ($(BOARD), LPC11U24)
LINKER_NAME = LPC11U24
STARTUP_NAME = startup_LPC11xx
SYSTEM_NAME = system_LPC11Uxx
TARGET_BOARD = TARGET_LPC11U24
TARGET_VENDOR = TARGET_NXP
TARGET_FAMILY = TARGET_LPC11UXX
TARGET_SPECIFIC = TARGET_LPC11U24_401
CPU = cortex-m0
else ifeq ($(BOARD), LPC11U24_301)
LINKER_NAME = LPC11U24
STARTUP_NAME = startup_LPC11xx
SYSTEM_NAME = system_LPC11Uxx
TARGET_BOARD = TARGET_LPC11U24_301
TARGET_VENDOR = TARGET_NXP
TARGET_FAMILY = TARGET_LPC11UXX
TARGET_SPECIFIC = TARGET_LPC11U24_301
CPU = cortex-m0
else ifeq ($(BOARD), LPC1347)
LINKER_NAME = LPC1347
STARTUP_NAME = startup_LPC13xx
SYSTEM_NAME = system_LPC13Uxx
TARGET_BOARD = TARGET_LPC1347
TARGET_VENDOR = TARGET_NXP
TARGET_FAMILY = TARGET_LPC13XX
TARGET_SPECIFIC = .
CPU = cortex-m3
else ifeq ($(BOARD), LPC1114)
LINKER_NAME = LPC1114
STARTUP_NAME = startup_LPC11xx
SYSTEM_NAME = system_LPC11xx
TARGET_BOARD = TARGET_LPC1114
TARGET_VENDOR = TARGET_NXP
TARGET_FAMILY = TARGET_LPC11XX_11CXX
TARGET_SPECIFIC = TARGET_LPC11XX
CPU = cortex-m0
else ifeq ($(BOARD), LPC11C24)
LINKER_NAME = LPC11C24
STARTUP_NAME = startup_LPC11xx
SYSTEM_NAME = system_LPC11xx
TARGET_BOARD = TARGET_LPC11C24
TARGET_VENDOR = TARGET_NXP
TARGET_FAMILY = TARGET_LPC11XX_11CXX
TARGET_SPECIFIC = TARGET_LPC11CXX
CPU = cortex-m0
else ifeq ($(BOARD), LPC11U35_401)
LINKER_NAME = LPC11U35
STARTUP_NAME = startup_LPC11xx
SYSTEM_NAME = system_LPC11Uxx
TARGET_BOARD = TARGET_LPC11U35_401
TARGET_VENDOR = TARGET_NXP
TARGET_FAMILY = TARGET_LPC11UXX
TARGET_SPECIFIC = TARGET_LPC11U35_401
CPU = cortex-m0
# STM platform
else ifeq ($(BOARD), STM32F407)
LINKER_NAME = STM32F407
STARTUP_NAME = startup_STM32F40x
SYSTEM_NAME = system_stm32f4xx
TARGET_BOARD = TARGET_STM32F407
TARGET_VENDOR = TARGET_STM
TARGET_FAMILY = TARGET_STM32F4XX
TARGET_SPECIFIC = .
CPU = cortex-m4
endif