summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-02-01 10:07:56 +0800
committerGitHub <[email protected]>2019-02-01 10:07:56 +0800
commit11a3645537b240cd5e6eeae4dd6ef7975442df90 (patch)
tree8faf9ee198f880d0b0845022674e338cb2f44dbe
parent9771d3170b988f89662b41cb6a2c72564f6c9455 (diff)
code cleanup
-rw-r--r--bsp/stm32/stm32f103-hw100k-ibox/board/ports/esp02_device.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bsp/stm32/stm32f103-hw100k-ibox/board/ports/esp02_device.c b/bsp/stm32/stm32f103-hw100k-ibox/board/ports/esp02_device.c
index 12c9264774..0de060a35a 100644
--- a/bsp/stm32/stm32f103-hw100k-ibox/board/ports/esp02_device.c
+++ b/bsp/stm32/stm32f103-hw100k-ibox/board/ports/esp02_device.c
@@ -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);