mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
code cleanup
This commit is contained in:
1 parent
9771d3170b
commit
11a3645537
1 file changed
+5
-4
@@ -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);
|
||||
Reference in new issue
Block a user