Просмотр исходного кода

Merge pull request #119 from justind000/master

A few minor fixes
Frank Denis 4 лет назад
Родитель
Сommit
4aaf2736c7
3 измененных файлов с 7 добавлено и 2 удалено
  1. 2 1
      Makefile.arduino
  2. 4 0
      impl/random/esp32.h
  3. 1 1
      library.properties

+ 2 - 1
Makefile.arduino

@@ -26,7 +26,8 @@ SRC = \
 	impl/secretbox.h \
 	impl/sign.h \
 	impl/x25519.h \
-	impl/gimli-core/portable.h
+	impl/gimli-core/portable.h \
+	impl/random/*.h
 
 all: lib package
 

+ 4 - 0
impl/random/esp32.h

@@ -4,6 +4,10 @@
 #include <esp_system.h>
 #endif
 
+#ifdef ARDUINO
+#include <Arduino.h>
+#endif
+
 static int
 hydro_random_init(void)
 {

+ 1 - 1
library.properties

@@ -1,4 +1,4 @@
-architectures=avr,nrf52,particle-photon,particle-electron,particle-p1
+architectures=avr,nrf52,particle-photon,particle-electron,particle-p1,esp32
 author=Frank Denis <libhydrogen@pureftpd.org>
 category=Other
 includes=hydrogen.h