资源简介
STM32F407+OV2640+ESP8266实现WIFI图传。网络良好速率能达到2.5FPS。
详细代码+注释+测试工具+文档。
代码片段和文件信息
/*
* 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);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-16 19:25 ESP8266\
文件 3696 2019-01-13 15:46 ESP8266\.cproject
文件 837 2019-01-13 15:46 ESP8266\.project
目录 0 2019-01-13 15:46 ESP8266\.settings\
目录 0 2019-01-16 19:25 ESP8266\app\
目录 0 2019-01-16 19:25 ESP8266\app\.output\
目录 0 2019-01-16 19:25 ESP8266\app\.output\eagle\
目录 0 2019-01-16 19:25 ESP8266\app\.output\eagle\debug\
目录 0 2019-01-16 19:23 ESP8266\app\.output\eagle\debug\bin\
目录 0 2019-01-16 19:25 ESP8266\app\.output\eagle\debug\image\
文件 528756 2019-01-16 19:23 ESP8266\app\.output\eagle\debug\image\eagle.app.v6.out
目录 0 2019-01-16 19:25 ESP8266\app\driver\
目录 0 2019-01-16 19:25 ESP8266\app\driver\.output\
目录 0 2019-01-16 19:25 ESP8266\app\driver\.output\eagle\
目录 0 2019-01-16 19:25 ESP8266\app\driver\.output\eagle\debug\
目录 0 2019-01-16 19:25 ESP8266\app\driver\.output\eagle\debug\lib\
文件 200320 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\lib\libdriver.a
目录 0 2019-01-16 19:25 ESP8266\app\driver\.output\eagle\debug\obj\
文件 1660 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\gpio16.d
文件 5152 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\gpio16.o
文件 1660 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\hw_timer.d
文件 9348 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\hw_timer.o
文件 1697 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\i2c_master.d
文件 19976 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\i2c_master.o
文件 1843 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\key.d
文件 14756 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\key.o
文件 1878 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\sdio_slv.d
文件 22152 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\sdio_slv.o
文件 2062 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\spi.d
文件 26816 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\spi.o
文件 1724 2019-01-16 19:23 ESP8266\app\driver\.output\eagle\debug\obj\spi_interface.d
............此处省略472个文件信息
相关资源
- stm32f030开发板资料
- STM32F103系列例程
- stm32f0和夏普红外测距
- HAL库W5500代码SPI版本
- STM32 智能小车源代码
- STM32入门必看完整资料
- STM32 USB IAP
- STM32F1xx_HAL库_V1.4.0_及例程
- STM32F1标准例程
-
STM32_Jli
nk驱动 - stmf429开发板基础例程序
- STM32F0xxx中文手册与STM32F0xxx英文手册
- STM32CubeMX中文使用手册和STM32_f1的hal库
- STM32f10x_fw_archive.zip
- HLW8032功率计量芯片stm32程序及资料
- STM32F4+ucosIII+LWIP+DP83848
- stm32 RS485测试程序
- stm32软件加密方法
- STM32F407中文手册(完全版) 高清完整
- STM32F7中文参考手册.pdf
- STM32F407 TCP服务器例程
- 基于STM32的MP3播放器设计
- stm32电机FOC控制
- STM32F0标准外设函数库手册
- STM32F407+LWIP+DP83848移植例程
- ADC信号采集STM32的demo代码
- STM32移植GRBL
- STM32经典教材PDF全
- stm32L051 IAP程序升级,希望大家有用
- stm32L1xx标准库1.3.1版
评论
共有 条评论