summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--platforms/avr/hardware_id.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/platforms/avr/hardware_id.c b/platforms/avr/hardware_id.c
index 073834c19c..b61f0d92df 100644
--- a/platforms/avr/hardware_id.c
+++ b/platforms/avr/hardware_id.c
@@ -1,6 +1,12 @@
// Copyright 2022 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
+// For some reason this bit is undocumented for some AVR parts and not defined in their avr-libc IO headers
+// See https://stackoverflow.com/questions/12350914/how-to-read-atmega-32-signature-row
+#ifndef SIGRD
+# define SIGRD 5
+#endif // SIGRD
+
#include <avr/boot.h>
#include "hardware_id.h"