aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2018-02-12 20:18:42 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2018-02-12 20:18:42 +0000
commit80d929ebabd0663d9e9382ea6bc559e1f77ec6dd (patch)
tree7d0c7b84aa00f801b4fee77a2a07b05c5e5969ef /os/hal/ports
parent85a20cffc984a8ac6b656d70f69a4fc80404949e (diff)
downloadChibiOS-80d929ebabd0663d9e9382ea6bc559e1f77ec6dd.tar.gz
ChibiOS-80d929ebabd0663d9e9382ea6bc559e1f77ec6dd.tar.bz2
ChibiOS-80d929ebabd0663d9e9382ea6bc559e1f77ec6dd.zip
AVR: Add driver.mk file for Usarts and Serials drivers.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11493 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/AVR/XMEGA/LLD/USARTv1/driver.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/os/hal/ports/AVR/XMEGA/LLD/USARTv1/driver.mk b/os/hal/ports/AVR/XMEGA/LLD/USARTv1/driver.mk
new file mode 100644
index 000000000..cb6b07f86
--- /dev/null
+++ b/os/hal/ports/AVR/XMEGA/LLD/USARTv1/driver.mk
@@ -0,0 +1,13 @@
+ifeq ($(USE_SMART_BUILD),yes)
+ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/AVR/XMEGA/LLD/USARTv1/hal_uart_lld.c
+endif
+ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/AVR/XMEGA/LLD/USARTv1/hal_serial_lld.c
+endif
+else
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/AVR/XMEGA/LLD/USARTv1/hal_uart_lld.c
+PLATFORMSRC += $(CHIBIOS)/os/hal/ports/AVR/XMEGA/LLD/USARTv1/hal_serial_lld.c
+endif
+
+PLATFORMINC += $(CHIBIOS)/os/hal/ports/AVR/XMEGA/LLD/USARTv1