资源简介
里面是ESP8266WiFi探针的代码,编译后可以直接使用,我用的是安信可的一体环境编译的,不编译也可以,使用APP文件夹里面的bin文件就可以了,有什么问题可以联系我一起交流2515596279
代码片段和文件信息
/*
* ESPRSSIF MIT License
*
* Copyright (c) 2016
*
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only in which case
* it is free of charge to any person obtaining a copy of this software and associated
* documentation files (the “Software“) to deal in the Software without restriction including
* without limitation the rights to use copy modify merge publish distribute sublicense
* and/or sell copies of the Software and to permit persons to whom the Software is furnished
* to do so subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
* IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER
* IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include “ets_sys.h“
#include “osapi.h“
#include “driver/gpio16.h“
void ICACHE_FLASH_ATTR
gpio16_output_conf(void)
{
WRITE_PERI_REG(PAD_XPD_DCDC_CONF
(READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1); // mux configuration for XPD_DCDC to output rtc_gpio0
WRITE_PERI_REG(RTC_GPIO_CONF
(READ_PERI_REG(RTC_GPIO_CONF) & (uint32)0xfffffffe) | (uint32)0x0); //mux configuration for out enable
WRITE_PERI_REG(RTC_GPIO_ENABLE
(READ_PERI_REG(RTC_GPIO_ENABLE) & (uint32)0xfffffffe) | (uint32)0x1); //out enable
}
void ICACHE_FLASH_ATTR
gpio16_output_set(uint8 value)
{
WRITE_PERI_REG(RTC_GPIO_OUT
(READ_PERI_REG(RTC_GPIO_OUT) & (uint32)0xfffffffe) | (uint32)(value & 1));
}
void ICACHE_FLASH_ATTR
gpio16_input_conf(void)
{
WRITE_PERI_REG(PAD_XPD_DCDC_CONF
(READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1); // mux configuration for XPD_DCDC and rtc_gpio0 connection
WRITE_PERI_REG(RTC_GPIO_CONF
(READ_PERI_REG(RTC_GPIO_CONF) & (uint32)0xfffffffe) | (uint32)0x0); //mux configuration for out enable
WRITE_PERI_REG(RTC_GPIO_ENABLE
READ_PERI_REG(RTC_GPIO_ENABLE) & (uint32)0xfffffffe); //out disable
}
uint8 ICACHE_FLASH_ATTR
gpio16_input_get(void)
{
return (uint8)(READ_PERI_REG(RTC_GPIO_IN_DATA) & 1);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3691 2017-11-16 13:48 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\.cproject
文件 860 2017-05-26 15:56 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\.project
文件 419204 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at\1024+1024\user1.2048.new.5.bin
文件 419204 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at\1024+1024\user2.2048.new.5.bin
文件 419204 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at\512+512\user1.1024.new.2.bin
文件 419204 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at\512+512\user2.1024.new.2.bin
文件 41200 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at\noboot\eagle.flash.bin
文件 370875 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at\noboot\eagle.irom0text.bin
文件 2453 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at\README.md
文件 421124 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at_sdio\1024+1024\user1.2048.new.5.bin
文件 421124 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at_sdio\1024+1024\user2.2048.new.5.bin
文件 421124 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at_sdio\512+512\user1.1024.new.2.bin
文件 421124 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at_sdio\512+512\user2.1024.new.2.bin
文件 42640 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at_sdio\noboot\eagle.flash.bin
文件 371355 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at_sdio\noboot\eagle.irom0text.bin
文件 2453 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\at_sdio\README.md
文件 4096 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\blank.bin
文件 1936 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\boot_v1.2.bin
文件 3856 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\boot_v1.6.bin
文件 1072700 2017-11-16 13:49 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\eagle.dump
文件 28592 2017-11-16 13:49 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\eagle.flash.bin
文件 195300 2017-11-16 13:49 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\eagle.irom0text.bin
文件 3827053 2017-11-16 13:49 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\eagle.S
文件 128 2016-08-10 10:38 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\esp_init_data_default.bin
文件 28592 2017-11-16 15:02 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\bin\_temp_by_dltool\downloadPanel1\eagle.flash.bin_rep
文件 142 2016-04-16 13:45 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\documents\readme.txt
文件 2635 2016-08-10 10:39 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\driver_lib\driver\gpio16.c
文件 5188 2016-08-10 10:39 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\driver_lib\driver\hw_timer.c
文件 10342 2016-08-10 10:39 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\driver_lib\driver\i2c_master.c
文件 7176 2016-08-10 10:39 ESP8266_WiFi探针\ESP8266_NONOS_SDK - sniffer-demo\driver_lib\driver\key.c
............此处省略448个文件信息
- 上一篇:ESP8266参考书籍英文版
- 下一篇:ios音乐播放器案例
评论
共有 条评论