-
大小: 5.51MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-11-20
- 语言: 其他
- 标签: ESP8266_NONO ESP8266_SDK
资源简介
ESP8266_NONOS_SDK-3.0.zip官方的包没做任何的修改,防止官网下载缓慢。
代码片段和文件信息
/*
* 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);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 38144 2016-01-19 13:30 model two-dimension code.jpg
----------- --------- ---------- ----- ----
38144 1
- 上一篇:NIT-Word全真试题
- 下一篇:A题文献建模方法和思路.rar
相关资源
- NONOS SDK开发,串口发送、接收与中断
-
ESP8266_NONOS_SDK-2.2.1_ba
sed_USARTrevised. - ESP8266 SDK入门指南
- esp8266-NONOS_SDK-2.2.1_AT
- ESP8266二次开发源码
- esp8266的SDK开发 TCP、UDP服务器端
- ESP8266 SDK 开发环境搭建 最简单 不限操
- 乐鑫esp8266 NONOS SDK 3.0编程使用 SPI 驱动
- ESP8266_NONOS_SDK v2.2 配置文件已修改
- ESP8266_NONOS_SDK-2.2.0
- ESP8266_NONOS_SDK-3.0MQTT - aliyun.rar
- Esp8266 进阶之路31乐鑫esp8266 SDK编程使
- esp8266 SDK编程串口 Uart 通讯,原路返回
评论
共有 条评论