未验证 提交 11a36455 编写于 作者: B Bernard Xiong 提交者: GitHub

code cleanup

上级 9771d317
......@@ -12,14 +12,15 @@
#include "drv_gpio.h"
#define ESP8266_CH_PD_Pin GET_PIN(G,1)
#define ESP8266_RST GET_PIN(G,0)
#define ESP8266_RST GET_PIN(G,0)
int esp_02_device_init()
{
rt_pin_mode(ESP8266_CH_PD_Pin,PIN_MODE_OUTPUT) ;
rt_pin_mode(ESP8266_RST,PIN_MODE_OUTPUT) ;
rt_pin_write(ESP8266_CH_PD_Pin,PIN_HIGH) ;
rt_pin_write(ESP8266_RST,PIN_HIGH) ;
rt_pin_mode(ESP8266_RST,PIN_MODE_OUTPUT) ;
rt_pin_write(ESP8266_CH_PD_Pin,PIN_HIGH) ;
rt_pin_write(ESP8266_RST,PIN_HIGH) ;
return RT_EOK ;
}
INIT_DEVICE_EXPORT(esp_02_device_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册