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

离石市网站建设公司鞍山seo外包

离石市网站建设公司,鞍山seo外包,聚享游网站如何做推广,wordpress怎么填写横幅图片pico高级API函数中, multicore_fifo_pop_timeout_us 和 multicore_fifo_push_timeout_us 的延时参数, 如修改为500微秒以上时,其延时似乎远远超过设定值,其反馈速度似乎被主核的交互所左右 ,而修改为200以下时&#x…

pico高级API函数中,
multicore_fifo_pop_timeout_us 和  multicore_fifo_push_timeout_us 的延时参数,
如修改为500微秒以上时,其延时似乎远远超过设定值,其反馈速度似乎被主核的交互所左右 ,而修改为200以下时,反馈出现阶越:运行这两个函数 的core1的打印速度快速增加,显示其延时更加与设定值相符。

测试的代码:

#include <stdio.h>
#include "pico/stdlib.h"#include "pico/multicore.h"
#define FLAG_VALUE 2void core1_entry() {uint32_t g=0;
bool ifthereisp=false;
uint64_t timeout_u=500;   //这儿修改为500微秒以上时,core1的打印速度和core0 1hz基本同步 ,而修改为200以下时,反馈出现阶越:core1的打印速度快速增加。
uint32_t out;lable2:multicore_fifo_push_timeout_us ( FLAG_VALUE,timeout_u) ;if( !multicore_fifo_pop_timeout_us (timeout_u,&out) )printf("Hmm, that's not right on core 1!\n");elseprintf("Its all gone well on core 1! %u  \n",out);
goto lable2;while (1)tight_loop_contents();
}int main() {stdio_init_all();sleep_ms(1000);
printf("Hello, fakeone\n");sleep_ms(1000);multicore_launch_core1(core1_entry);uint32_t g=0;// Wait for it to start up
lable:g = multicore_fifo_pop_blocking();if (g != FLAG_VALUE)printf("Hmm, that's not right on core 0!\n");else {multicore_fifo_push_blocking(FLAG_VALUE);printf("It's all gone well on core 0!\n");}
sleep_ms(1000);
goto lable;while (true) {printf("Hello, world!\n");sleep_ms(1000);}return 0;
}

关键函数介绍官方原文:

bool multicore_fifo_pop_timeout_us     (     uint64_t      timeout_us,
        uint32_t *      out
    )         

Pop data from the read FIFO (data from the other core) with timeout.

This function will block until there is data ready to be read or the timeout is reached

See the note in the fifo section for considerations regarding use of the inter-core FIFOs
Parameters

timeout_us     the timeout in microseconds
out     the location to store the popped data if available
Returns

true if the data was popped and a value copied into out, false if the timeout occurred before data could be popped


bool multicore_fifo_push_timeout_us     (     uint32_t      data,
        uint64_t      timeout_us
    )         

Push data on to the write FIFO (data to the other core) with timeout.

This function will block until there is space for the data to be sent or the timeout is reached
Parameters

data     A 32 bit value to push on to the FIFO
timeout_us     the timeout in microseconds
Returns

true if the data was pushed, false if the timeout occurred before data could be pushed

附pico例程原代码:


#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/multicore.h"#define FLAG_VALUE 123void core1_entry() {multicore_fifo_push_blocking(FLAG_VALUE);uint32_t g = multicore_fifo_pop_blocking();if (g != FLAG_VALUE)printf("Hmm, that's not right on core 1!\n");elseprintf("Its all gone well on core 1!");while (1)tight_loop_contents();
}int main() {stdio_init_all();printf("Hello, multicore!\n");multicore_launch_core1(core1_entry);// Wait for it to start upuint32_t g = multicore_fifo_pop_blocking();if (g != FLAG_VALUE)printf("Hmm, that's not right on core 0!\n");else {multicore_fifo_push_blocking(FLAG_VALUE);printf("It's all gone well on core 0!");}}

http://www.hrbkazy.com/news/9834.html

相关文章:

  • 那些网站可以做0首付分期手机号网络广告形式
  • 网站建设2019seo运营学校
  • 做网站最专业的公司关键词排名 收录 查询
  • 网站不兼容怎么办网站公司网站建设
  • 网站建设交易友情链接检查工具
  • 献县做网站的阿里云万网域名注册
  • 乐陵seo网站优化网络销售怎么学
  • 搭建企业网站的步骤百度竞价推广账户
  • html5网站后台指数型基金怎么买
  • 安阳县事业单位外贸seo网站
  • 市面上做网站多少钱廊坊seo快速排名
  • 学做网站培训上海百度知道客服电话人工服务
  • 线下怎么做推广和宣传上海网站seo诊断
  • 做微网站扶贫832网络销售平台
  • 做棋牌网站合法吗百度免费发布信息
  • 电子商务网站建设购物车企业门户网站模板
  • 服装网站建设与规划外包公司怎么赚钱
  • 做网站找哪个平台好3a汽车集团公司网络营销方案
  • 如何查询网站后台地址网络营销的推广
  • 业余从事网站开发seo优化招商
  • 网站建设哪里有百度免费建网站
  • 大连手机网站开发销售策略和营销策略
  • 淮南服装网站建设地址企业新闻稿发布平台
  • 建筑人才网 中高端招聘网站免费下载app并安装
  • 寻找哈尔滨网站建设b站在线观看人数在哪
  • 用dw做购票网站百度24小时人工客服电话
  • 网站空间指的是什么意思国际实时新闻
  • wengdo网站开发创意设计百度入口
  • 想开民宿自己怎么做介绍的网站网页制作工具有哪些
  • 西安网站建设 大德百度网站收录查询