aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2017-09-07 20:42:45 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2017-09-07 20:42:45 +0000
commit8ff2ef1974491bcdd9f47bd21d573922e7fbcdc6 (patch)
tree7d3781c7fd12bb9470f8ff2abb0e81f1222d4440
parentce446b196aad77ca18a1c855e5da4d0aa85fd639 (diff)
downloadChibiOS-8ff2ef1974491bcdd9f47bd21d573922e7fbcdc6.tar.gz
ChibiOS-8ff2ef1974491bcdd9f47bd21d573922e7fbcdc6.tar.bz2
ChibiOS-8ff2ef1974491bcdd9f47bd21d573922e7fbcdc6.zip
Add comment to all AVR Makefiles.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10564 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--demos/AVR/NIL-ARDUINO-MEGA/Makefile3
-rw-r--r--demos/AVR/NIL-ARDUINO-MINI/Makefile3
-rw-r--r--demos/AVR/NIL-ARDUINO-NANO/Makefile3
-rw-r--r--demos/AVR/NIL-ARDUINO-UNO/Makefile3
-rw-r--r--demos/AVR/NIL-DIGISPARK-ATTINY-167/Makefile2
-rw-r--r--demos/AVR/NIL-MT-DB-X4/Makefile2
-rw-r--r--demos/AVR/RT-ARDUINO-LEONARDO/Makefile2
-rw-r--r--demos/AVR/RT-ARDUINO-MEGA/Makefile3
-rw-r--r--demos/AVR/RT-ARDUINO-MINI/Makefile3
-rw-r--r--demos/AVR/RT-ARDUINO-NANO/Makefile3
-rw-r--r--demos/AVR/RT-ARDUINO-UNO/Makefile3
-rw-r--r--demos/AVR/RT-DIGISPARK-ATTINY-167/Makefile2
-rw-r--r--demos/AVR/RT-MT-DB-X4/Makefile2
-rw-r--r--demos/AVR/RT-PRO-MICRO/Makefile2
-rw-r--r--demos/AVR/RT-TEENSY2-USB/Makefile2
-rw-r--r--testhal/AVR/MEGA/ADC/Makefile3
-rw-r--r--testhal/AVR/MEGA/EXT/Makefile4
-rw-r--r--testhal/AVR/MEGA/GPT/Makefile3
-rw-r--r--testhal/AVR/MEGA/I2C/Makefile2
-rw-r--r--testhal/AVR/MEGA/ICU/Makefile3
-rw-r--r--testhal/AVR/MEGA/PWM/Makefile3
-rw-r--r--testhal/AVR/MEGA/SPI/Makefile3
22 files changed, 55 insertions, 4 deletions
diff --git a/demos/AVR/NIL-ARDUINO-MEGA/Makefile b/demos/AVR/NIL-ARDUINO-MEGA/Makefile
index 085d3e5a3..396d52ae2 100644
--- a/demos/AVR/NIL-ARDUINO-MEGA/Makefile
+++ b/demos/AVR/NIL-ARDUINO-MEGA/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/nil/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/nil/nil.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/test/nil/test.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/demos/AVR/NIL-ARDUINO-MINI/Makefile b/demos/AVR/NIL-ARDUINO-MINI/Makefile
index 548a95b07..563bd8095 100644
--- a/demos/AVR/NIL-ARDUINO-MINI/Makefile
+++ b/demos/AVR/NIL-ARDUINO-MINI/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MINI/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/nil/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/nil/nil.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/test/nil/test.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/demos/AVR/NIL-ARDUINO-NANO/Makefile b/demos/AVR/NIL-ARDUINO-NANO/Makefile
index a2e9c138e..6cf6c2d44 100644
--- a/demos/AVR/NIL-ARDUINO-NANO/Makefile
+++ b/demos/AVR/NIL-ARDUINO-NANO/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_NANO/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/nil/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/nil/nil.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/test/nil/test.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/demos/AVR/NIL-ARDUINO-UNO/Makefile b/demos/AVR/NIL-ARDUINO-UNO/Makefile
index 027d34f10..229814992 100644
--- a/demos/AVR/NIL-ARDUINO-UNO/Makefile
+++ b/demos/AVR/NIL-ARDUINO-UNO/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_UNO/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/nil/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/nil/nil.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/test/nil/test.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/demos/AVR/NIL-DIGISPARK-ATTINY-167/Makefile b/demos/AVR/NIL-DIGISPARK-ATTINY-167/Makefile
index 5c61fe017..b03693ea4 100644
--- a/demos/AVR/NIL-DIGISPARK-ATTINY-167/Makefile
+++ b/demos/AVR/NIL-DIGISPARK-ATTINY-167/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/DIGISPARK_ATTINY_167/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/TINY/ATTinyxxx/platform.mk
include $(CHIBIOS)/os/hal/osal/nil/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/nil/nil.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
diff --git a/demos/AVR/NIL-MT-DB-X4/Makefile b/demos/AVR/NIL-MT-DB-X4/Makefile
index c0e27b6c7..e3b297257 100644
--- a/demos/AVR/NIL-MT-DB-X4/Makefile
+++ b/demos/AVR/NIL-MT-DB-X4/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/MT-DB-X4/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/XMEGA/ATXMEGAxxxA4U/platform.mk
include $(CHIBIOS)/os/hal/osal/nil/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/nil/nil.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
diff --git a/demos/AVR/RT-ARDUINO-LEONARDO/Makefile b/demos/AVR/RT-ARDUINO-LEONARDO/Makefile
index b1700aed7..74500ce9c 100644
--- a/demos/AVR/RT-ARDUINO-LEONARDO/Makefile
+++ b/demos/AVR/RT-ARDUINO-LEONARDO/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_LEONARDO/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
diff --git a/demos/AVR/RT-ARDUINO-MEGA/Makefile b/demos/AVR/RT-ARDUINO-MEGA/Makefile
index fec165026..26f178c8c 100644
--- a/demos/AVR/RT-ARDUINO-MEGA/Makefile
+++ b/demos/AVR/RT-ARDUINO-MEGA/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/test/rt/test.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/demos/AVR/RT-ARDUINO-MINI/Makefile b/demos/AVR/RT-ARDUINO-MINI/Makefile
index 124d678e2..4a9368cd0 100644
--- a/demos/AVR/RT-ARDUINO-MINI/Makefile
+++ b/demos/AVR/RT-ARDUINO-MINI/Makefile
@@ -61,13 +61,14 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MINI/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
-#include $(CHIBIOS)/test/rt/test.mk
# List C source files here. (C dependencies are automatically generated.)
SRC = $(KERNSRC) \
diff --git a/demos/AVR/RT-ARDUINO-NANO/Makefile b/demos/AVR/RT-ARDUINO-NANO/Makefile
index be734e1e7..f79995812 100644
--- a/demos/AVR/RT-ARDUINO-NANO/Makefile
+++ b/demos/AVR/RT-ARDUINO-NANO/Makefile
@@ -61,13 +61,14 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_NANO/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
-#include $(CHIBIOS)/test/rt/test.mk
# List C source files here. (C dependencies are automatically generated.)
SRC = $(KERNSRC) \
diff --git a/demos/AVR/RT-ARDUINO-UNO/Makefile b/demos/AVR/RT-ARDUINO-UNO/Makefile
index 212b66293..48c73da42 100644
--- a/demos/AVR/RT-ARDUINO-UNO/Makefile
+++ b/demos/AVR/RT-ARDUINO-UNO/Makefile
@@ -61,13 +61,14 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_UNO/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
-#include $(CHIBIOS)/test/rt/test.mk
# List C source files here. (C dependencies are automatically generated.)
SRC = $(KERNSRC) \
diff --git a/demos/AVR/RT-DIGISPARK-ATTINY-167/Makefile b/demos/AVR/RT-DIGISPARK-ATTINY-167/Makefile
index 740118461..c530c3120 100644
--- a/demos/AVR/RT-DIGISPARK-ATTINY-167/Makefile
+++ b/demos/AVR/RT-DIGISPARK-ATTINY-167/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/DIGISPARK_ATTINY_167/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/TINY/ATTinyxxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
diff --git a/demos/AVR/RT-MT-DB-X4/Makefile b/demos/AVR/RT-MT-DB-X4/Makefile
index d4a06ae7e..580c12226 100644
--- a/demos/AVR/RT-MT-DB-X4/Makefile
+++ b/demos/AVR/RT-MT-DB-X4/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/MT-DB-X4/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/XMEGA/ATXMEGAxxxA4U/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
diff --git a/demos/AVR/RT-PRO-MICRO/Makefile b/demos/AVR/RT-PRO-MICRO/Makefile
index eacebcf38..1ca579077 100644
--- a/demos/AVR/RT-PRO-MICRO/Makefile
+++ b/demos/AVR/RT-PRO-MICRO/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/SPARKFUN_PRO_MICRO/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
diff --git a/demos/AVR/RT-TEENSY2-USB/Makefile b/demos/AVR/RT-TEENSY2-USB/Makefile
index aa4500cfb..1ab3e3622 100644
--- a/demos/AVR/RT-TEENSY2-USB/Makefile
+++ b/demos/AVR/RT-TEENSY2-USB/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/PJRC_TEENSY_2PLUSPLUS/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
diff --git a/testhal/AVR/MEGA/ADC/Makefile b/testhal/AVR/MEGA/ADC/Makefile
index f7c12077a..49e1d32d7 100644
--- a/testhal/AVR/MEGA/ADC/Makefile
+++ b/testhal/AVR/MEGA/ADC/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/testhal/AVR/MEGA/EXT/Makefile b/testhal/AVR/MEGA/EXT/Makefile
index 2650225a8..9b70b22f0 100644
--- a/testhal/AVR/MEGA/EXT/Makefile
+++ b/testhal/AVR/MEGA/EXT/Makefile
@@ -61,15 +61,17 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
-
# List C source files here. (C dependencies are automatically generated.)
SRC = $(KERNSRC) \
$(PORTSRC) \
diff --git a/testhal/AVR/MEGA/GPT/Makefile b/testhal/AVR/MEGA/GPT/Makefile
index f7c12077a..49e1d32d7 100644
--- a/testhal/AVR/MEGA/GPT/Makefile
+++ b/testhal/AVR/MEGA/GPT/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/testhal/AVR/MEGA/I2C/Makefile b/testhal/AVR/MEGA/I2C/Makefile
index 4833ee9ab..92aac71c2 100644
--- a/testhal/AVR/MEGA/I2C/Makefile
+++ b/testhal/AVR/MEGA/I2C/Makefile
@@ -61,10 +61,12 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
diff --git a/testhal/AVR/MEGA/ICU/Makefile b/testhal/AVR/MEGA/ICU/Makefile
index 313689ca7..582bb99a0 100644
--- a/testhal/AVR/MEGA/ICU/Makefile
+++ b/testhal/AVR/MEGA/ICU/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/test/rt/test.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/testhal/AVR/MEGA/PWM/Makefile b/testhal/AVR/MEGA/PWM/Makefile
index f7c12077a..49e1d32d7 100644
--- a/testhal/AVR/MEGA/PWM/Makefile
+++ b/testhal/AVR/MEGA/PWM/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_MEGA/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
# List C source files here. (C dependencies are automatically generated.)
diff --git a/testhal/AVR/MEGA/SPI/Makefile b/testhal/AVR/MEGA/SPI/Makefile
index fe91681bc..85b5b0da1 100644
--- a/testhal/AVR/MEGA/SPI/Makefile
+++ b/testhal/AVR/MEGA/SPI/Makefile
@@ -61,12 +61,15 @@ OBJDIR = .
# Imported source files
CHIBIOS = ../../../..
+# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/boards/ARDUINO_UNO/board.mk
include $(CHIBIOS)/os/hal/ports/AVR/MEGA/ATMEGAxx/platform.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
+# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/AVR/compilers/GCC/mk/port.mk
+# Other files (optional).
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
# List C source files here. (C dependencies are automatically generated.)