-
大小: 6.69MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-09-25
- 语言: 其他
- 标签: esp8266 esp8266-SDK
资源简介
ESP8266 SDK开发之编写自己的AT指令;使用里面的接口完成网络连接,可以使用AT指令进行调用自己的操作函数
代码片段和文件信息
/*
* ESPRESSIF 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);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 408388 2018-06-08 01:20 bin\at\1024+1024\user1.2048.new.5.bin
....... 408388 2018-06-08 01:20 bin\at\1024+1024\user2.2048.new.5.bin
....... 408388 2018-06-08 01:20 bin\at\512+512\user1.1024.new.2.bin
....... 408388 2018-06-08 01:20 bin\at\512+512\user2.1024.new.2.bin
....... 2453 2018-06-08 01:20 bin\at\README.md
....... 410324 2018-06-08 01:20 bin\at_sdio\1024+1024\user1.2048.new.5.bin
....... 410324 2018-06-08 01:20 bin\at_sdio\1024+1024\user2.2048.new.5.bin
....... 410324 2018-06-08 01:20 bin\at_sdio\512+512\user1.1024.new.2.bin
....... 410324 2018-06-08 01:20 bin\at_sdio\512+512\user2.1024.new.2.bin
....... 2453 2018-06-08 01:20 bin\at_sdio\README.md
....... 4096 2018-06-08 01:20 bin\blank.bin
....... 1936 2018-06-08 01:20 bin\boot_v1.2.bin
....... 3856 2018-06-08 01:20 bin\boot_v1.6.bin
....... 4080 2018-06-08 01:20 bin\boot_v1.7.bin
....... 1917627 2019-02-18 18:58 bin\eagle.dump
....... 39152 2019-02-18 18:58 bin\eagle.flash.bin
....... 364141 2019-02-18 18:58 bin\eagle.irom0text.bin
....... 6617445 2019-02-18 18:58 bin\eagle.S
....... 128 2018-06-08 01:20 bin\esp_init_data_default_v05.bin
....... 128 2018-06-08 01:20 bin\esp_init_data_default_v08.bin
....... 39152 2019-02-18 18:59 bin\_temp_by_dltool\downloadPanel1\eagle.flash.bin_rep
....... 128 2019-02-18 18:59 bin\_temp_by_dltool\downloadPanel1\esp_init_data_default_v08.bin_rep
....... 229 2018-06-08 01:20 documents\readme.txt
....... 3054 2018-06-08 01:20 include\airkiss.h
....... 5349 2018-06-08 01:20 include\at_custom.h
....... 3599 2018-06-08 01:20 include\c_types.h
....... 12709 2018-06-08 01:20 include\eagle_soc.h
....... 32842 2018-06-08 01:20 include\espconn.h
....... 2506 2018-06-08 01:20 include\espnow.h
....... 3777 2018-06-08 01:20 include\ets_sys.h
............此处省略152个文件信息
- 上一篇:英语词缀与英语派生词.pdf
- 下一篇:旅行社客户管理系统课程设计
相关资源
- ESP8266二次开发源码
- esp8266和stm32之五,能连接路由器和增
- f103 c8t6 esp8266连接阿里云.rar
- stm32通过esp8266把温湿度和gps地图上传
- 安信可ESP8266安卓手机测试软件
- ESP8266WiFi探针代码
- ESP8266参考书籍英文版
- ESP8266探针
- esp8266-technical_reference_en.pdf
- STM32+ESP8266+MQTT接入OneNet 通过手机APP控
- esp8266和stm32驱动之三实现访问网站获
- ESP8266.zip
- DIY制作ESP8266无线WIFI智能插座,一点不
- MQTT-ESP8266.rar
- ESP8266 PWM
- ESP8266LED.zip
- Arduino uno+esp8266+onenet+继电器
- 基于STM32F1和ESP8266的MQTT数据传输
- ESP8266的 TCP通信(server)
- ESP8266的 TCP通信
- ESP8266模块--APP连接可收发数据
- AD元件库——ESP8266各型号的封装库.
- esp8266封装库
- esp8266.rar
- ESP8266-01-WiFi模块用户手册总结V1.0
- ESP8266 RTOS SDK编程开发手册中文版
- AS608指纹模块和ESP8266wifi模块在STM32f
- D6JCQo6s2iZ9fKMI7Fa.zip
- ESP8266_AT_V1.5.4固件and固件烧录工具
- 基于stm32的环境监测系统
评论
共有 条评论