From 67019ffb6a4e11bf350668a53c051f9171bf0ad7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Thu, 1 Aug 2019 22:47:08 -0700 Subject: [PATCH] Fix Due support https://github.com/pmjdebruijn/Arduino-Entropy-Library/commit/aadd30945e98a96d171a554ddf7708998da37782 broke support for the Arduino Due by removing the #include directive for Arduino.h: E:\arduino\libraries\Arduino-Entropy-Library\Entropy.cpp: In member function 'void EntropyClass::initialize()': E:\arduino\libraries\Arduino-Entropy-Library\Entropy.cpp:62:32: error: 'pmc_enable_periph_clk' was not declared in this scope pmc_enable_periph_clk(ID_TRNG); In the spirit of that commit, I have added the #include directive for the specific header file that contains the declaration of pmc_enable_periph_clk. --- Entropy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Entropy.h b/Entropy.h index 81ab169..24996da 100644 --- a/Entropy.h +++ b/Entropy.h @@ -26,6 +26,7 @@ #ifdef ARDUINO_SAM_DUE #include #include +#include #endif // Teensy required headers