资源简介
ESP8266 PWM一路输出演示,在安信可IED2.0下编译tongguo
代码片段和文件信息
/*
* 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 “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);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3718 2017-09-23 12:26 ESP8266_NONOS_SDK-2.1.0\.cproject
文件 851 2017-09-13 10:24 ESP8266_NONOS_SDK-2.1.0\.project
文件 3226 2017-09-13 11:01 ESP8266_NONOS_SDK-2.1.0\app\gen_misc.bat
文件 3276 2017-09-13 11:01 ESP8266_NONOS_SDK-2.1.0\app\gen_misc.sh
文件 1414 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\app\include\gpio16.h
文件 6808 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\app\include\uart.h
文件 1296 2017-09-13 10:45 ESP8266_NONOS_SDK-2.1.0\app\include\user_config.h
文件 2762 2017-09-23 12:29 ESP8266_NONOS_SDK-2.1.0\app\Makefile
文件 2629 2017-09-13 10:46 ESP8266_NONOS_SDK-2.1.0\app\user\gpio16.c
文件 1477 2017-09-13 11:01 ESP8266_NONOS_SDK-2.1.0\app\user\Makefile
文件 18630 2017-09-23 13:27 ESP8266_NONOS_SDK-2.1.0\app\user\uart.c
文件 3226 2017-09-23 13:24 ESP8266_NONOS_SDK-2.1.0\app\user\user_main.c
文件 4096 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\bin\upgrade\blank.bin
文件 4080 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\bin\upgrade\boot_v1.7.bin
文件 128 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\bin\upgrade\esp_init_data_default.bin
文件 228868 2017-09-23 13:21 ESP8266_NONOS_SDK-2.1.0\bin\upgrade\user1.512.new.0.bin
文件 1081102 2017-09-23 13:21 ESP8266_NONOS_SDK-2.1.0\bin\upgrade\user1.512.new.0.dump
文件 3897789 2017-09-23 13:21 ESP8266_NONOS_SDK-2.1.0\bin\upgrade\user1.512.new.0.S
文件 228868 2017-09-23 13:21 ESP8266_NONOS_SDK-2.1.0\bin\upgrade\_temp_by_dltool\downloadPanel1\user1.512.new.0.bin_rep
文件 3054 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\airkiss.h
文件 5349 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\at_custom.h
文件 3599 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\c_types.h
文件 12709 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\eagle_soc.h
文件 32810 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\espconn.h
文件 2506 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\espnow.h
文件 3777 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\ets_sys.h
文件 4418 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\gpio.h
文件 2994 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\ip_addr.h
文件 2550 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\json\json.h
文件 3488 2017-05-05 18:01 ESP8266_NONOS_SDK-2.1.0\include\json\jsonparse.h
............此处省略76个文件信息
相关资源
- 基于PWM的直流无刷电机控制
- 60KW_PWM整流器研究
- 飞思卡尔 程序 PIT PWM RTI PH中断 SCI A
- 空心杯电机的PWM调制及PI控制
- 飞思卡尔MC9S12XS128详细学习资料不只是
- 直基于单片机的PWM直流电机控制系统
- 电机控制PWM
- ESP8266LED.zip
- stm32f407舵机控制程序
- 高级定时器TIM1 四个通道输出不同频率
- 基于PWM控制同相Buck-Boost_DC-DC转换器研
- F103单定时器4路任意频率PWM输出实验
- Arduino uno+esp8266+onenet+继电器
- 基于是stm32的PWM呼吸灯
- 基于STM32F1和ESP8266的MQTT数据传输
- ESP8266的 TCP通信(server)
- ESP8266的 TCP通信
- ESP8266模块--APP连接可收发数据
- 自己做的一个通过pwm波的方式串口驱
- STM32F103C8T6控制86步进电机
- ST直流无刷电机控制源码
- 基于STM32的三相SPWM波输出
- STM32F103C8T6定时器TIM4双通道PWM输出
- stm32f103c8t6最小系统版PWM程序
- AD元件库——ESP8266各型号的封装库.
- stm32基本例程 PWM输出实验
- esp8266封装库
- EG8030三相SPWM逆变器资料汇总.rar
- 基于单片机的直流电机PWM调速控制系
- F28335的SPWM产生.rar
评论
共有 条评论