Browse Source

Merge pull request #8 from BioBoost/master

Add support for SAMD21J18A
Lambor 7 năm trước cách đây
mục cha
commit
d16bdf85aa
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      DHT.h

+ 4 - 1
DHT.h

@@ -12,8 +12,11 @@
 // 16 MHz(ish) AVR --------------------------------------------------------
 #elif (F_CPU >= 15400000UL) && (F_CPU <= 19000000L)
 #define COUNT 6
+// 48MHz SAMD21J18A (Sodaq Explorer)
+#elif (F_CPU == 48000000UL)
+#define COUNT 18
 // 168MHz STM32F405 STM32F407
-#elif defined(F_CPU == 168000000L)
+#elif (F_CPU == 168000000L)
 #define COUNT 40
 #else
 #error "CPU SPEED NOT SUPPORTED"