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

无锡网站建设工作室seo全站优化全案例

无锡网站建设工作室,seo全站优化全案例,抖音代运营协议合同范本免费,北京市建设委员联合会网站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.tj-hxxt.cn/news/66545.html

相关文章:

  • 郑州网站建设moran企业文化建设
  • 房地产做网站不引流推广方法
  • 重庆企业模板建站信息临沂seo公司稳健火星
  • 分类信息网站开发推广渠道有哪些
  • 做创业网站赚钱谷歌自然排名优化
  • 龙岗南联网站建设苏州seo网站管理
  • 胶州网站建设电商网站订烟平台官网
  • 猎头公司哪家好谷歌seo关键词优化
  • wordpress 直播 视频教程seo建站优化
  • 动漫网站开发设计思想企业门户网站的设计与实现
  • 销售平台网站建设2345网址导航手机版
  • 设计网站页面特效怎么做百度账户代运营
  • 广东东莞保安公司seo是一种利用搜索引擎的
  • 重庆网站建设seo线上免费推广平台都有哪些
  • 江阴哪家做网站便宜谷歌网页版
  • 网站注册设计百度关键词搜索查询
  • 北京建设网站公司哪家好网页模板网站
  • 互联网App网站建设方案国际国内新闻最新消息今天
  • 网站建设工作室门头腾讯广告投放平台
  • 做自己的网站挣钱百度应用商店app下载安装
  • 做网站的快捷方式代码东莞网络推广哪家公司奿
  • 网站建设及营销方案网站建设排名优化
  • 某购物网站开发项目google 优化推广
  • 做像百姓网这样网站多少钱软文营销的技巧
  • 阿里云虚拟主机与网站吗搭建网站平台需要多少钱
  • asp网站服务器架设中国百强城市榜单
  • 合肥做网站的企业公司产品营销广告宣传
  • 做网站技术路线合肥seo网站建设
  • vs2012建设空网站免费域名的网站
  • 西安网站seo诊断seo公司厦门