资源简介
本例程整合了UCOSIII以及GSM的驱动,可以直接在任务里调用,在STM32上也能进行网络通讯。

代码片段和文件信息
/*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Permission is hereby granted 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.
*/
/* cJSON */
/* JSON parser in C. */
/* disable warnings about old C89 functions in MSVC */
#if !defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifdef __GNUC__
#pragma GCC visibility push(default)
#endif
#if defined(_MSC_VER)
#pragma warning (push)
/* disable warning about single line comments in system headers */
#pragma warning (disable : 4001)
#endif
#include
#include
#include
#include
#include
#include
#ifdef ENABLE_LOCALES
#include
#endif
#if defined(_MSC_VER)
#pragma warning (pop)
#endif
#ifdef __GNUC__
#pragma GCC visibility pop
#endif
#include “cJSON.h“
/* define our own boolean type */
#define true ((cJSON_bool)1)
#define false ((cJSON_bool)0)
typedef struct {
const unsigned char *json;
size_t position;
} error;
static error global_error = { NULL 0 };
CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void)
{
return (const char*) (global_error.json + global_error.position);
}
CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item) {
if (!cJSON_IsString(item)) {
return NULL;
}
return item->valuestring;
}
/* This is a safeguard to prevent copy-pasters from using incompatible C and header files */
#if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 7)
#error cJSON.h and cJSON.c have different versions. Make sure that both have the same.
#endif
CJSON_PUBLIC(const char*) cJSON_Version(void)
{
static char version[15];
sprintf(version “%i.%i.%i“ CJSON_VERSION_MAJOR CJSON_VERSION_MINOR CJSON_VERSION_PATCH);
return version;
}
/* Case insensitive string comparison doesn‘t consider two NULL pointers equal though */
static int case_insensitive
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-08-17 14:23 例11-1 UCOSIII+GSM\
目录 0 2018-08-17 16:18 例11-1 UCOSIII+GSM\API\
文件 76122 2018-08-17 16:18 例11-1 UCOSIII+GSM\API\cJSON.c
文件 14567 2018-05-22 04:08 例11-1 UCOSIII+GSM\API\cJSON.h
文件 40019 2018-05-22 04:08 例11-1 UCOSIII+GSM\API\cJSON_Utils.c
文件 3938 2018-05-22 04:08 例11-1 UCOSIII+GSM\API\cJSON_Utils.h
目录 0 2018-08-17 16:14 例11-1 UCOSIII+GSM\CORE\
文件 17273 2010-06-07 10:25 例11-1 UCOSIII+GSM\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 例11-1 UCOSIII+GSM\CORE\core_cm3.h
文件 15537 2018-08-17 16:14 例11-1 UCOSIII+GSM\CORE\startup_stm32f10x_hd.s
文件 12765 2011-03-10 10:52 例11-1 UCOSIII+GSM\CORE\startup_stm32f10x_md.s
目录 0 2018-08-09 20:44 例11-1 UCOSIII+GSM\FWLIB\
目录 0 2018-08-09 20:44 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\
目录 0 2018-08-09 20:44 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\
文件 8982 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\misc.h
文件 21690 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_adc.h
文件 7555 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_bkp.h
文件 27559 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_can.h
文件 6573 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_cec.h
文件 2162 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_crc.h
文件 15233 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_dac.h
文件 3818 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_dbgmcu.h
文件 20754 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_dma.h
文件 6824 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_exti.h
文件 25445 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_flash.h
文件 27016 2012-08-25 16:33 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_fsmc.h
文件 20175 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_gpio.h
文件 30029 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_i2c.h
文件 3828 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_iwdg.h
文件 4383 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_pwr.h
文件 30452 2011-03-10 10:47 例11-1 UCOSIII+GSM\FWLIB\STM32F10x_FWLib\inc\stm32f10x_rcc.h
............此处省略362个文件信息
- 上一篇:Opencv2.4.9参考手册
- 下一篇:AD9854.PcbDoc
相关资源
- STM32F103RC+ADC+DMA多通道采样LCD显示
- I2C读写AT24C02 基于STM32F103 cube116540
- 基于stm32f103ve的程序——跑马灯实验
- 基于STM32RCT6的步进电机驱动程序
- stm32f407上的两个can发送和接收例程
- STM32 led 时钟
- STM32 2.4G通信例程
- 直流无刷电机方波驱动 stm32 例程代码
- STM32中文资料
- STM32蓝牙和串口程序
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- stm32f030 IAP Demo(原创)
- STM32基于rt_thread操作系统的SDHC卡文件
- NRF24L01实现51与STM32双向通讯
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- stm32官方例程
- STM32F103定时器中断程序
- [免费]基于stm32f103ze 的OLED驱动代码
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- STM32定时器使用入门。看了这个程序会
- SIM908 SDIO FSMC STM32 FIFO
- STM32F103 CC2500完整驱动(模拟SPI)
- AD7606采集程序
- 单片机AT89s52控制GSM模块TC35i发短信,
- stm32 用SPI 方式读写 SDHC
- stm32通过DMA方式采集ADC数据
- 意法半导体STM全系列微控制器STM32ST
评论
共有 条评论