aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/templates/mac_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/templates/mac_lld.c')
-rw-r--r--os/io/templates/mac_lld.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/os/io/templates/mac_lld.c b/os/io/templates/mac_lld.c
index 08ffa8d79..fa6ef7a9e 100644
--- a/os/io/templates/mac_lld.c
+++ b/os/io/templates/mac_lld.c
@@ -24,8 +24,10 @@
* @{
*/
-#include <ch.h>
-#include <mac.h>
+#include "ch.h"
+#include "hal.h"
+
+#if CH_HAL_USE_MAC
/**
* @brief Low level MAC initialization.
@@ -146,4 +148,6 @@ bool_t mac_lld_poll_link_status(MACDriver *macp) {
return FALSE;
}
+#endif /* CH_HAL_USE_MAC */
+
/** @} */