diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-22 10:44:06 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-22 10:44:06 +0100 |
commit | b372156f74683dbcbe37798134ab094e05ee40c7 (patch) | |
tree | fa72afef1a23ff1459fdefb3b0f80e3be099f1f4 /esp8266/esp_mphal.h | |
parent | 67a6d31955cb7ff8985f9f96675a70870eea4089 (diff) |
esp8266: Change software SPI driver to use general pin HAL.
Diffstat (limited to 'esp8266/esp_mphal.h')
-rw-r--r-- | esp8266/esp_mphal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h index a768f9de7..2de5fcc51 100644 --- a/esp8266/esp_mphal.h +++ b/esp8266/esp_mphal.h @@ -75,5 +75,6 @@ void mp_hal_pin_config_od(mp_hal_pin_obj_t pin); else { gpio_output_set(1 << (p), 0, 1 << (p), 0); } \ } while (0) #define mp_hal_pin_read(p) pin_get(p) +#define mp_hal_pin_write(p, v) pin_set((p), (v)) #endif // _INCLUDED_MPHAL_H_ |