diff --git a/quantum/logging/debug.h b/quantum/logging/debug.h
index 017f9b9181..d0590474c0 100644
--- a/quantum/logging/debug.h
+++ b/quantum/logging/debug.h
@@ -17,6 +17,10 @@ along with this program. If not, see .
#pragma once
+#ifndef PROTOCOL_ARM_ATSAM
+# include
+#endif
+
#include
#include "print.h"