资源简介
次开发包 是基于ESP8266 语音识别的 SDK二次开发 源码,有需要的兄弟可以下载

代码片段和文件信息
/*
* ESPRSSIF MIT License
*
* Copyright (c) 2015
*
* 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 “espressif/esp_common.h“
#include “freertos/portmacro.h“
#include “gpio.h“
void gpio_config(GPIO_ConfigTypeDef *pGPIOConfig)
{
uint16 gpio_pin_mask = pGPIOConfig->GPIO_Pin;
uint32 io_reg;
uint8 io_num = 0;
uint32 pin_reg;
if (pGPIOConfig->GPIO_Mode == GPIO_Mode_Input) {
GPIO_AS_INPUT(gpio_pin_mask);
} else if (pGPIOConfig->GPIO_Mode == GPIO_Mode_Output) {
GPIO_AS_OUTPUT(gpio_pin_mask);
}
do {
if ((gpio_pin_mask >> io_num) & 0x1) {
io_reg = GPIO_PIN_REG(io_num);
if ((0x1 << io_num) & (GPIO_Pin_0 | GPIO_Pin_2 | GPIO_Pin_4 | GPIO_Pin_5)) {
PIN_FUNC_SELECT(io_reg 0);
} else {
PIN_FUNC_SELECT(io_reg 3);
}
if (pGPIOConfig->GPIO_Pullup) {
PIN_PULLUP_EN(io_reg);
} else {
PIN_PULLUP_DIS(io_reg);
}
if (pGPIOConfig->GPIO_Mode == GPIO_Mode_Out_OD) {
portENTER_CRITICAL();
pin_reg = GPIO_REG_READ(GPIO_PIN_ADDR(io_num));
pin_reg &= (~GPIO_PIN_DRIVER_MASK);
pin_reg |= (GPIO_PAD_DRIVER_ENABLE << GPIO_PIN_DRIVER_LSB);
GPIO_REG_WRITE(GPIO_PIN_ADDR(io_num) pin_reg);
portEXIT_CRITICAL();
} else if (pGPIOConfig->GPIO_Mode == GPIO_Mode_Sigma_Delta) {
portENTER_CRITICAL();
pin_reg = GPIO_REG_READ(GPIO_PIN_ADDR(io_num));
pin_reg &= (~GPIO_PIN_SOURCE_MASK);
pin_reg |= (0x1 << GPIO_PIN_SOURCE_LSB);
GPIO_REG_WRITE(GPIO_PIN_ADDR(io_num) pin_reg);
GPIO_REG_WRITE(GPIO_SIGMA_DELTA_ADDRESS SIGMA_DELTA_ENABLE);
port
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 38144 2016-01-19 13:30 model two-dimension code.jpg
----------- --------- ---------- ----- ----
38144 1
- 上一篇:模糊控制理论与系统原理-诸静
- 下一篇:IOCP服务器
相关资源
-
AN_BLE-SDKDH-C1_Teli
nk BLE SDK DeveloperHan - LzmaLib
- OPC插件OPC Core Components 2.00 SDK 2.20
- 易语言-海康威视SDK-DEMO
- 美松打印机SDK MsPrintSDK-Demo-DLL-CShare-
- S32K144 和S32K SDK开发入门培训.pdf
- 虚拟摄像头VCam开发SDK
- 整理的ModbusProtocol SDK开发包
- WinCE_6.0_中文SDK(仿真器模拟器)
- silverlight4 SDK
- N76E003开发资料最新SDK参考代码
- rockchip rv1108和rk3288资料,淘宝28买的
- 海康摄像头+web3.0开发包SDK的demo
- 海康SDK delphi demo
- 海康sdk说明书 二次开发参考
- 企业微信JS-SDK调试工具
- 人脸识别开源SDK源码
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- esp8266 win10驱动 cp2102
- delphi百度人脸识别离线SDK demo
- 汉王人脸通sdk v3.0 delphi demo
- 汉王考勤机开发指南HANVON SDK 20141119
- 撸大师死灰复燃SDK,可常驻后台运行
- CSDN文件---ESP8266.rar
- 精伦电子开发包最新开发包带网页插
- IDCardReader SDK.rar
- stm32103c8t6ESP8266串口转WIFI模块TCP服务器
- 精伦电子idr210 sdk
- ESP8266ESP8266安卓控制端源代码
- 光阵通用高拍仪控件
评论
共有 条评论