Fixup AVR builds. (#16875)

* Fixup AVR builds.

* Update platforms/avr/hardware_id.c

Co-authored-by: Ryan <fauxpark@gmail.com>

Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
Nick Brassel 2022-04-19 00:39:45 +10:00 committed by GitHub
parent b8245a5507
commit f50a623909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,12 @@
// Copyright 2022 QMK // Copyright 2022 QMK
// SPDX-License-Identifier: GPL-2.0-or-later // 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 <avr/boot.h>
#include "hardware_id.h" #include "hardware_id.h"