diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-12 13:55:20 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-12 14:06:54 +0100 |
commit | a525493e40eb4d89e805737bfa36b39d35221efb (patch) | |
tree | d6b2d9b330c51d0af4601e52b2b6d908cf0bda82 /esp8266/esp_mphal.h | |
parent | ac63ca7bc57e24008d25c0826c5c0c42abf38b13 (diff) |
esp8266: Switch from using custom I2C driver to generic extmod one.
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r-- | esp8266/esp_mphal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h index ec2ed5b61..6ce00fce4 100644 --- a/esp8266/esp_mphal.h +++ b/esp8266/esp_mphal.h @@ -56,6 +56,10 @@ void dupterm_task_init(); void ets_event_poll(void); #define ETS_POLL_WHILE(cond) { while (cond) ets_event_poll(); } +// needed for machine.I2C +#include "osapi.h" +#define mp_hal_delay_us_fast(us) os_delay_us(us) + // C-level pin HAL #include "etshal.h" #include "gpio.h" |