-
Notifications
You must be signed in to change notification settings - Fork 1
/
Configurations.mk
118 lines (90 loc) · 2.01 KB
/
Configurations.mk
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
ifdef CONFIG
ifeq ($(CONFIG), usb)
AVR_FREQ := 20000000
AVR_MCU := attiny84
AVR_SYMBOL := __AVR_ATtiny84__
USE_BUFFER_STDOUT := true
KERNEL_LOG := true
USE_TWI := true
USE_MILLISECOND_TIMER := false # Problem with linking clock interrupt to ISR...
PROJ := USB-to-TWI
PLATFORM := Avr
LSS := true
SPEED ?= true
STUDIO := true
endif
ifeq ($(CONFIG), simulator-test)
USE_PROCESS := true
USE_SCHEDULER := true
PROJ := Simulator-Testing
endif
ifeq ($(CONFIG), $(filter $(CONFIG), simulator simulator-test))
# USE_PROCESS := true
# USE_SCHEDULER := true
KERNEL_LOG := true
USE_BUFFER_STDOUT := true
USE_TWI := true
PROJ ?= Simulator
PLATFORM := Avr
STUDIO := true
DONT_LINK_ALL := true
NOOPT := true
DEBUG := true
LSS := true
endif
ifeq ($(CONFIG), tests)
PROJ := TankOS-Test
PLATFORM = Native
SPEED := true
default: run
endif
ifeq ($(CONFIG), io)
# AVR_FREQ := 7848929
# AVR_FREQ := 8000000
AVR_FREQ := 20000000
PROJ := Tank-IO
endif
ifeq ($(CONFIG), driver)
# AVR_FREQ := 8073357
# AVR_FREQ := 8000000
AVR_FREQ := 20000000
PROJ := Tank-Driver
endif
ifeq ($(CONFIG), arm)
AVR_FREQ := 20000000
#AVR_FREQ := 7930251
PROJ := Tank-Arm
endif
ifeq ($(CONFIG), $(filter $(CONFIG), tank io driver arm))
KERNEL_LOG := true
USE_BUFFER_STDOUT := true
USE_TWI := true
STUDIO := true
PLATFORM := Avr
LSS := true
SPEED := true
ifndef PROJ
$(error Please define PROJ= on the command line)
endif
endif
ifeq ($(CONFIG), twitool)
PLATFORM := Native
PROJ := TwiTool
SPEED := true
endif
endif
# Overrides USE_BUFFER_STDOUT. printf() goes directly to eeprom.
# USE_EEPROM_STDOUT := $(USE_BUFFER_STDOUT)
# Default values
ifndef AVR_FREQ
AVR_FREQ := 20000000
endif
ifndef AVR_MCU
AVR_MCU := atmega1284p
endif
ifndef AVR_SYMBOL
AVR_SYMBOL := __AVR_ATmega1284P__
endif
ifndef USE_MILLISECOND_TIMER
USE_MILLISECOND_TIMER := true
endif