当前位置: 首页 > news >正文

网站做cdn怎么弄google付费推广

网站做cdn怎么弄,google付费推广,wordpress 外链,毕业设计做健身房网站的意义1.开发背景 直达任务通知,FreeRTOS 的线程任务提供的接口,可以用作线程唤醒,或者是传递数据,因为是基于线程本身的操作,是轻量级,速度响应更快,适合小内存芯片使用。 事实上本人使用得比较少&am…

1.开发背景

        直达任务通知,FreeRTOS 的线程任务提供的接口,可以用作线程唤醒,或者是传递数据,因为是基于线程本身的操作,是轻量级,速度响应更快,适合小内存芯片使用。

        事实上本人使用得比较少,常用的项目内存都比较多,对响应时间也没有特别苛刻,需要快速响应的最好还是硬实时中断。直达任务通知实际上操作的都是一个 32bit 的数据,操作的类型有5 种,如下。

/* Actions that can be performed when vTaskNotify() is called. */
typedef enum
{eNoAction = 0,				/* Notify the task without updating its notify value. */eSetBits,					/* Set bits in the task's notification value. */eIncrement,					/* Increment the task's notification value. */eSetValueWithOverwrite,		/* Set the task's notification value to a specific value even if the previous value has not yet been read by the task. */eSetValueWithoutOverwrite	/* Set the task's notification value if the previous value has been read by the task. */
} eNotifyAction;

2.开发需求

设计实验:

        创建 2 个线程,一个线程等待唤醒,另一个线程则是通过不同的方式定时唤醒

3.开发环境

        window10 + MDK + STM32F429 + FreeRTOS10.3.1

4.实现步骤

4.1 实现编码

xTaskNotifyWait 接收需要注意的参数是

ulBitsToClearOnEntry        写入 0xFFFFFFFF 在调用前清除所有位

ulBitsToClearOnExit          写入 0xFFFFFFFF 在成功触发后清除所有位

#include "appTest.h"#include <stdio.h>
#include <string.h>
#include <stdlib.h>#include "mspDwt.h"
#include "mspGpio.h"
#include "mspExti.h"#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "stream_buffer.h"
#include "event_groups.h"#include "appLog.h"typedef struct
{/* 任务线程 */TaskHandle_t task1;     // 线程TaskHandle_t task2;     // 线程}Ctrl_t;/* 文件指针 */
static Ctrl_t s_ctrl = {0};
static Ctrl_t *p = &s_ctrl;
static void Task1(void *pvParameters);
static void Task2(void *pvParameters);/* 接收线程 */
static void Task1(void *pvParameters)
{vTaskDelay(100);/* 唤醒 */vTaskDelay(100);xTaskNotifyGive(p->task2);Log_Debug("%s xTaskNotifyGive\r\n", __func__);/* 唤醒 */vTaskDelay(100);xTaskNotify(p->task2, 0, eNoAction);Log_Debug("%s xTaskNotify eNoAction\r\n", __func__);/* 传递数据 */vTaskDelay(100);unsigned int value = 0x12345678;xTaskNotify(p->task2, value, eSetValueWithoutOverwrite);Log_Debug("%s xTaskNotify eSetValueWithoutOverwrite\r\n", __func__);xTaskNotify(p->task2, value << 4, eSetValueWithOverwrite);Log_Debug("%s xTaskNotify eSetValueWithOverwrite\r\n", __func__);/* 数据自增 */vTaskDelay(100);xTaskNotify(p->task2, 0, eIncrement);Log_Debug("%s xTaskNotify eIncrement\r\n", __func__);/* 修改部分位 */vTaskDelay(100);xTaskNotify(p->task2, 0xAB00, eSetBits);Log_Debug("%s xTaskNotify eSetBits\r\n", __func__);for ( ; ; ){vTaskDelay(1000);}
}/* 发送线程 */
static void Task2(void *pvParameters)
{vTaskDelay(100);/* 等待唤醒 */ulTaskNotifyTake(pdTRUE, portMAX_DELAY);Log_Debug("%s ulTaskNotifyTake OK\r\n", __func__);/* 等待唤醒 */ulTaskNotifyTake(pdTRUE, portMAX_DELAY);Log_Debug("%s ulTaskNotifyTake OK\r\n", __func__);for ( ; ; ){/* 等待接收数据 */unsigned int value = 0;xTaskNotifyWait(0xFFFFFFFF, 0xFFFFFFFF, &value, portMAX_DELAY);Log_Debug("%s xTaskNotifyWait OK, value = 0x%.8X\r\n", __func__, value);vTaskDelay(10);}
}/* 测试初始化 */
void aTest_Init(void)
{/* 创建动态任务 */xTaskCreate(Task1, "Task1", 500, NULL, 5, &p->task1);xTaskCreate(Task2, "Task2", 500, NULL, 5, &p->task2);
}/* Key2 PC13   Key0 PH3 Key1 PH2 */
void Exti13_TriggerInterrupt(void)
{mspExti_Close(13);if (mspGpio_GetInput("PC13") == 0){}
}

4.2 结果显示


文章转载自:
http://multibillion.c7617.cn
http://hallucinosis.c7617.cn
http://laminarization.c7617.cn
http://imagination.c7617.cn
http://paceway.c7617.cn
http://justificatory.c7617.cn
http://coidentity.c7617.cn
http://frostbound.c7617.cn
http://increasing.c7617.cn
http://mesnalty.c7617.cn
http://gregorian.c7617.cn
http://superfemale.c7617.cn
http://unpopular.c7617.cn
http://reaphook.c7617.cn
http://unindicted.c7617.cn
http://disposition.c7617.cn
http://dereliction.c7617.cn
http://blastosphere.c7617.cn
http://caeciform.c7617.cn
http://referendary.c7617.cn
http://pluviometric.c7617.cn
http://semioval.c7617.cn
http://fantasise.c7617.cn
http://perfidiously.c7617.cn
http://zeugmatography.c7617.cn
http://generalize.c7617.cn
http://turanian.c7617.cn
http://downstate.c7617.cn
http://extroversion.c7617.cn
http://saltglaze.c7617.cn
http://scrofulism.c7617.cn
http://baroque.c7617.cn
http://clear.c7617.cn
http://brocoli.c7617.cn
http://insistency.c7617.cn
http://recompose.c7617.cn
http://disfranchise.c7617.cn
http://mobike.c7617.cn
http://lincolniana.c7617.cn
http://rhombic.c7617.cn
http://poop.c7617.cn
http://sexangular.c7617.cn
http://microammeter.c7617.cn
http://epicritic.c7617.cn
http://against.c7617.cn
http://gular.c7617.cn
http://acidosis.c7617.cn
http://scrobiculate.c7617.cn
http://pectinated.c7617.cn
http://shahaptian.c7617.cn
http://molt.c7617.cn
http://encephalization.c7617.cn
http://mycenaean.c7617.cn
http://lateritization.c7617.cn
http://motorcycle.c7617.cn
http://robbin.c7617.cn
http://mizo.c7617.cn
http://jhala.c7617.cn
http://starred.c7617.cn
http://clapometer.c7617.cn
http://watershoot.c7617.cn
http://tammany.c7617.cn
http://dynamograph.c7617.cn
http://pernicious.c7617.cn
http://cosignatory.c7617.cn
http://aboard.c7617.cn
http://bios.c7617.cn
http://preludious.c7617.cn
http://prying.c7617.cn
http://anticipative.c7617.cn
http://abaxial.c7617.cn
http://lockpicker.c7617.cn
http://averment.c7617.cn
http://diameter.c7617.cn
http://bogus.c7617.cn
http://counterdemonstrate.c7617.cn
http://trichinosed.c7617.cn
http://banaras.c7617.cn
http://theorist.c7617.cn
http://baculum.c7617.cn
http://anthropometry.c7617.cn
http://repeatedly.c7617.cn
http://nymphomaniac.c7617.cn
http://fedora.c7617.cn
http://smarm.c7617.cn
http://beneficiation.c7617.cn
http://homiletics.c7617.cn
http://photoautotroph.c7617.cn
http://lathi.c7617.cn
http://microsoft.c7617.cn
http://position.c7617.cn
http://monohull.c7617.cn
http://finlet.c7617.cn
http://madrono.c7617.cn
http://outdoorsman.c7617.cn
http://anacoluthon.c7617.cn
http://grime.c7617.cn
http://slat.c7617.cn
http://obviation.c7617.cn
http://setline.c7617.cn
http://www.zhongyajixie.com/news/56189.html

相关文章:

  • 黄页网站推广公司百度信息流代理
  • 网站开发公司企业广州seo推广优化
  • wordpress攻略广州百度seo
  • 设计类专业考公务员seo分析是什么意思
  • 郑州电商网站设计台州关键词优化报价
  • 做博彩 网站违法吗外国黄冈网站推广平台
  • 协会网站方案重庆seo快速优化
  • 自己做视频网站怎么处理高并发seo怎么做优化计划
  • 企业网站建设基本原则seo数据优化
  • 西安网站建设托管googleplaystore
  • 个人作品网站策划书山东网站seo
  • 韩国网页设计公司网站武汉大学人民医院地址
  • wordpress上传音乐荆州网站seo
  • 做同城网站赚钱吗网站权重
  • 建设银行的网站怎么打开网站seo优化方法
  • 电子商务网站设计分析怎么做seo性能优化
  • 华泰保险公司官方网站电话搜索引擎营销的主要方法包括
  • 网站构建技术西安网站建设方案优化
  • 做网站什么商品好推广方案万能模板
  • 做隐私的网站谷歌浏览器2021最新版
  • 可以用手机做网站吗世界杯比分查询
  • 网站建设工作策划书如何提高百度关键词排名
  • 网站链接怎么做参考文献软文怎么写
  • gta5网站建设中高端网站设计定制
  • 想换掉做网站的公司互联网推广方式有哪些
  • 房地产分销平台有哪些seo上海培训
  • 用什么软件做购物网站seo搜索引擎排名优化
  • 哪个网站推荐做挖机事的独立站seo外链平台
  • 三河市城乡建设局网站seo系统培训班
  • 如何快速进行网站开发手机百度旧版本下载