资源简介
http_post.zip
![](http://www.nz998.com/pic/57018.jpg)
代码片段和文件信息
/*
* File : uart.c
* Copyright (C) 2013 - 2016 Espressif Systems
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of version 3 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not see .
*/
#include “ets_sys.h“
#include “osapi.h“
#include “driver/uart.h“
#include “osapi.h“
#include “os_type.h“
// UartDev is defined and initialized in rom code.
extern UartDevice UartDev;
LOCAL struct UartBuffer* pTxBuffer = NULL;
LOCAL struct UartBuffer* pRxBuffer = NULL;
/*uart demo with a system task to output what uart receives*/
/*this is a example to process uart data from taskplease change the priority to fit your application task if exists*/
/*it might conflict with your task if soplease arrange the priority of different task or combine it to a different event in the same task. */
#define uart_recvTaskPrio 0
#define uart_recvTaskQueueLen 10
os_event_t uart_recvTaskQueue[uart_recvTaskQueueLen];
#define DBG
#define DBG1 uart1_sendStr_no_wait
#define DBG2 os_printf
LOCAL void uart0_rx_intr_handler(void *para);
/******************************************************************************
* FunctionName : uart_config
* Description : Internal used function
* UART0 used for data TX/RX RX buffer size is 0x100 interrupt enabled
* UART1 just used for debug output
* Parameters : uart_no use UART0 or UART1 defined ahead
* Returns : NONE
*******************************************************************************/
LOCAL void ICACHE_FLASH_ATTR
uart_config(uint8 uart_no)
{
if (uart_no == UART1){
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U FUNC_U1TXD_BK);
}else{
/* rcv_buff size if 0x100 */
ETS_UART_INTR_ATTACH(uart0_rx_intr_handler &(UartDev.rcv_buff));
PIN_PULLUP_DIS(PERIPHS_IO_MUX_U0TXD_U);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_U0TXD_U FUNC_U0TXD);
#if UART_HW_RTS
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U FUNC_U0RTS); //HW FLOW CONTROL RTS PIN
#endif
#if UART_HW_CTS
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U FUNC_U0CTS); //HW FLOW CONTROL CTS PIN
#endif
}
uart_div_modify(uart_no UART_CLK_FREQ / (UartDev.baut_rate));//SET BAUDRATE
WRITE_PERI_REG(UART_CONF0(uart_no) ((UartDev.exist_parity & UART_PARITY_EN_M) << UART_PARITY_EN_S) //SET BIT AND PARITY MODE
| ((UartDev.parity & UART_PARITY_M) <
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-07 22:44 http_post\
目录 0 2017-11-07 22:44 http_post\http\
文件 4562 2015-09-20 20:50 http_post\http\.cproject
文件 832 2015-07-24 16:28 http_post\http\.project
目录 0 2015-10-27 13:42 http_post\http\.settings\
目录 0 2017-11-08 17:59 http_post\http\app\
目录 0 2017-11-07 22:44 http_post\http\app\.output\
目录 0 2017-11-07 22:44 http_post\http\app\.output\eagle\
目录 0 2017-11-07 22:44 http_post\http\app\.output\eagle\debug\
目录 0 2017-11-06 20:20 http_post\http\app\.output\eagle\debug\bin\
目录 0 2017-11-08 17:59 http_post\http\app\.output\eagle\debug\image\
文件 491545 2017-11-08 17:59 http_post\http\app\.output\eagle\debug\image\eagle.app.v6.out
目录 0 2017-11-07 22:44 http_post\http\app\driver\
目录 0 2017-11-07 22:44 http_post\http\app\driver\.output\
目录 0 2017-11-07 22:44 http_post\http\app\driver\.output\eagle\
目录 0 2017-11-07 22:44 http_post\http\app\driver\.output\eagle\debug\
目录 0 2017-11-08 13:21 http_post\http\app\driver\.output\eagle\debug\lib\
文件 47932 2017-11-08 13:21 http_post\http\app\driver\.output\eagle\debug\lib\libdriver.a
目录 0 2017-11-08 13:21 http_post\http\app\driver\.output\eagle\debug\obj\
文件 1487 2017-11-08 13:21 http_post\http\app\driver\.output\eagle\debug\obj\uart.d
文件 47248 2017-11-08 13:21 http_post\http\app\driver\.output\eagle\debug\obj\uart.o
文件 1490 2015-07-03 20:29 http_post\http\app\driver\Makefile
文件 27380 2015-07-13 09:12 http_post\http\app\driver\uart.c
文件 3226 2015-05-22 15:09 http_post\http\app\gen_misc.bat
文件 3276 2015-05-22 15:08 http_post\http\app\gen_misc.sh
目录 0 2017-11-07 22:44 http_post\http\app\include\
文件 627 2017-11-08 11:49 http_post\http\app\include\client.h
目录 0 2017-11-07 22:44 http_post\http\app\include\driver\
文件 6232 2015-07-03 20:29 http_post\http\app\include\driver\uart.h
文件 7038 2015-07-03 20:29 http_post\http\app\include\driver\uart_register.h
文件 290 2015-07-24 16:34 http_post\http\app\include\my_http.h
............此处省略92个文件信息
- 上一篇:万能客服15.2pc.rar
- 下一篇:cyclone V封装及原理图
相关资源
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
- 联想启天M4350 BIOS升级文件
- 操作系统教程课后答案华中科技大学
评论
共有 条评论