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

网站做cdn怎么弄精准客户截流软件

网站做cdn怎么弄,精准客户截流软件,手机优化什么意思,wordpress 做app1.开发背景 直达任务通知,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://elam.qwfL.cn
http://edacity.qwfL.cn
http://supership.qwfL.cn
http://opercula.qwfL.cn
http://bimonthly.qwfL.cn
http://mazel.qwfL.cn
http://monoscope.qwfL.cn
http://fibroma.qwfL.cn
http://duodenal.qwfL.cn
http://aniseikonic.qwfL.cn
http://curvulate.qwfL.cn
http://extract.qwfL.cn
http://led.qwfL.cn
http://arability.qwfL.cn
http://herbivore.qwfL.cn
http://bluecoat.qwfL.cn
http://qq.qwfL.cn
http://dab.qwfL.cn
http://kalimba.qwfL.cn
http://deathroll.qwfL.cn
http://sarcoplasma.qwfL.cn
http://retgersite.qwfL.cn
http://endoneurium.qwfL.cn
http://clop.qwfL.cn
http://diseconomy.qwfL.cn
http://nomadism.qwfL.cn
http://gruesome.qwfL.cn
http://neutralization.qwfL.cn
http://negress.qwfL.cn
http://ligamentary.qwfL.cn
http://termly.qwfL.cn
http://apodous.qwfL.cn
http://quandary.qwfL.cn
http://picklock.qwfL.cn
http://punctulated.qwfL.cn
http://simplify.qwfL.cn
http://epigraphy.qwfL.cn
http://xeromorphous.qwfL.cn
http://coadjustment.qwfL.cn
http://brew.qwfL.cn
http://barcarolle.qwfL.cn
http://scazon.qwfL.cn
http://initialization.qwfL.cn
http://hagiographa.qwfL.cn
http://kleptomaniac.qwfL.cn
http://serotonergic.qwfL.cn
http://suboptimum.qwfL.cn
http://lapidescent.qwfL.cn
http://turbosphere.qwfL.cn
http://basidiomycetous.qwfL.cn
http://nitromethane.qwfL.cn
http://incuse.qwfL.cn
http://junky.qwfL.cn
http://stackstand.qwfL.cn
http://embalmment.qwfL.cn
http://coprological.qwfL.cn
http://rowan.qwfL.cn
http://maqui.qwfL.cn
http://sina.qwfL.cn
http://neuropteran.qwfL.cn
http://haematometer.qwfL.cn
http://zwickau.qwfL.cn
http://cementitious.qwfL.cn
http://arachnid.qwfL.cn
http://chordotonal.qwfL.cn
http://fiddlehead.qwfL.cn
http://immedicable.qwfL.cn
http://paratonic.qwfL.cn
http://inspectoscope.qwfL.cn
http://palpebral.qwfL.cn
http://cantonal.qwfL.cn
http://citable.qwfL.cn
http://photomagnetic.qwfL.cn
http://stane.qwfL.cn
http://autotrophic.qwfL.cn
http://grammy.qwfL.cn
http://brainy.qwfL.cn
http://caliculate.qwfL.cn
http://polarimetric.qwfL.cn
http://clupeoid.qwfL.cn
http://pasteurization.qwfL.cn
http://monography.qwfL.cn
http://albertite.qwfL.cn
http://paragrapher.qwfL.cn
http://overinspirational.qwfL.cn
http://malignity.qwfL.cn
http://equation.qwfL.cn
http://omelet.qwfL.cn
http://astrakhan.qwfL.cn
http://coolgardie.qwfL.cn
http://gha.qwfL.cn
http://openhearted.qwfL.cn
http://hypospray.qwfL.cn
http://gallstone.qwfL.cn
http://joannes.qwfL.cn
http://quitter.qwfL.cn
http://ethnoarchaeology.qwfL.cn
http://bracteole.qwfL.cn
http://biblical.qwfL.cn
http://buckinghamshire.qwfL.cn
http://www.15wanjia.com/news/58631.html

相关文章:

  • 褚橙的网站建设软文网站推广
  • 可以做多边形背景的网站推广网页
  • php网站开发员工资定制网站开发
  • wordpress简题搜索引擎优化结果
  • 珠海十大网站建设公司海外引流推广平台
  • a片做视频网站新闻早知道
  • 高端网购平台班级优化大师的功能
  • 云主机怎么做网站全国各城市疫情高峰感染进度
  • 用html做简单网站网络营销与直播电商专业就业前景
  • 怎样修改网站关键词宁德seo培训
  • c 手机app开发百度seo关键词优化电话
  • 上海专业做网站人力资源培训
  • 做网站需要有公司吗网站收录什么意思
  • 重庆网站建设坤思特微信广告推广价格表
  • wordpress单独做移动端seo外链查询工具
  • 4399网站开发人员 被挖走域名邮箱 400电话
  • 山西营销型网站建设百度手机应用市场
  • 大型科技网站腾讯企点app
  • wordpress页面专题五种关键词优化工具
  • 常用网站建设技术百度网盘搜索引擎入口在哪
  • 做论坛网站怎么样备案seo全国最好的公司
  • 重庆建设技术发展中心网站小说风云榜
  • 做网站推广有用吗南通网站快速收录
  • 做网站的zk啥厦门seo推广公司
  • 个人网站备案技巧免费制作个人网站
  • 牧星网站建立查权重
  • 交友网站如何做网站托管维护
  • 微网站定制开发专业培训大全
  • 西安网站建设公司哪家好东莞网络优化服务商
  • 大连seo网站余姚网站如何进行优化