summaryrefslogtreecommitdiff
path: root/esp8266/esp_mphal.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-26 17:11:43 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-26 17:11:43 +0100
commit45f3416816fd5d717887e3efdde4d3ce3ef2ff38 (patch)
treea6459b7b60c2182ffdc6a2e1bb9a764e4aba25a9 /esp8266/esp_mphal.h
parent48a7ef0576f9c1cb71a07d1c01183b3872e2f762 (diff)
esp8266: Enable DHT C-level driver.
Exposed as esp.dht_readinto. Probably should go somewhere less port-specific.
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r--esp8266/esp_mphal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h
index 866a5a94b..91fee2119 100644
--- a/esp8266/esp_mphal.h
+++ b/esp8266/esp_mphal.h
@@ -28,6 +28,7 @@
#define _INCLUDED_MPHAL_H_
#include "py/ringbuf.h"
+#include "xtirq.h"
void mp_keyboard_interrupt(void);
extern int interrupt_char;
@@ -62,6 +63,9 @@ void ets_event_poll(void);
#include "osapi.h"
#define mp_hal_delay_us_fast(us) os_delay_us(us)
+#define mp_hal_quiet_timing_enter() disable_irq()
+#define mp_hal_quiet_timing_exit(irq_state) enable_irq(irq_state)
+
// C-level pin HAL
#include "etshal.h"
#include "gpio.h"