From 0d62b62863581b8fb2c51e98ec0f5b782740fcb9 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Mon, 18 Apr 2022 21:44:40 +1000 Subject: [PATCH 1/2] Fixup AVR builds. --- platforms/avr/hardware_id.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platforms/avr/hardware_id.c b/platforms/avr/hardware_id.c index 073834c19cb7..7460c42a49d4 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 isn't actually defined in some headers. +// See https://stackoverflow.com/questions/12350914/how-to-read-atmega-32-signature-row +#ifndef SIGRD +# define SIGRD 5 +#endif // SIGRD + #include #include "hardware_id.h" From f158c069fb5b0088add84f46e110c7ed8ca1c471 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Mon, 18 Apr 2022 15:38:20 +0100 Subject: [PATCH 2/2] Update platforms/avr/hardware_id.c Co-authored-by: Ryan --- platforms/avr/hardware_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/avr/hardware_id.c b/platforms/avr/hardware_id.c index 7460c42a49d4..b61f0d92df85 100644 --- a/platforms/avr/hardware_id.c +++ b/platforms/avr/hardware_id.c @@ -1,7 +1,7 @@ // Copyright 2022 QMK // SPDX-License-Identifier: GPL-2.0-or-later -// For some reason this bit isn't actually defined in some headers. +// 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