1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2019-01-29 XiaojieFan add port file 9 */ 10 11 #include "board.h" 12 #include "drv_gpio.h" 13 14 #define ESP8266_CH_PD_Pin GET_PIN(G,1) 15 #define ESP8266_RST GET_PIN(G,0) 16 esp_02_device_init()17int esp_02_device_init() 18 { 19 rt_pin_mode(ESP8266_CH_PD_Pin,PIN_MODE_OUTPUT) ; 20 rt_pin_mode(ESP8266_RST,PIN_MODE_OUTPUT) ; 21 rt_pin_write(ESP8266_CH_PD_Pin,PIN_HIGH) ; 22 rt_pin_write(ESP8266_RST,PIN_HIGH) ; 23 24 return RT_EOK ; 25 } 26 INIT_DEVICE_EXPORT(esp_02_device_init); 27