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

企业门户网站建设 验收宝应建设局网站

企业门户网站建设 验收,宝应建设局网站,建设行业管理信息系统官网,绵阳市三台县城乡建设局网站pico高级API函数中#xff0c; multicore_fifo_pop_timeout_us 和 multicore_fifo_push_timeout_us 的延时参数#xff0c; 如修改为500微秒以上时#xff0c;其延时似乎远远超过设定值#xff0c;其反馈速度似乎被主核的交互所左右 #xff0c;而修改为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 g0; bool ifthereispfalse; uint64_t timeout_u500; //这儿修改为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, thats 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 g0;// Wait for it to start up lable:g multicore_fifo_pop_blocking();if (g ! FLAG_VALUE)printf(Hmm, thats not right on core 0!\n);else {multicore_fifo_push_blocking(FLAG_VALUE);printf(Its 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, thats 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, thats not right on core 0!\n);else {multicore_fifo_push_blocking(FLAG_VALUE);printf(Its all gone well on core 0!);}}
http://www.w-s-a.com/news/507279/

相关文章:

  • 网站链接数怎么做wordpress安装网址
  • 沈阳建网站 哪家好如何做旅游网站推销
  • 继续网站建设南通网站建设方法
  • 淮南公司网站建设如果做京东优惠卷的网站
  • 二手房网站平台怎么做项目工程监理公司网站建设方案
  • 秦皇岛做网站公司小说推广平台有哪些
  • php网站做分享到朋友圈天元建设集团有限公司信用代码
  • 邱县做网站在线免费图片编辑器
  • 网站备份网站做网站如何把支付宝微信吧
  • 做网站的怎么获取客户信息晋城建设局网站
  • 新开传奇网站发布网单职业wordpress建站网页无法运作
  • 海南省住房和城乡建设厅官方网站网站开发有哪些语言
  • 网站开发排期表免费网站建设策划
  • 飞沐网站设计江苏建设人才网证书查询
  • 网站优化的意义怎么帮商家推广赚钱
  • 安顺公司做网站福州建设发展集团有限公司网站
  • 普陀企业网站建设做散客机票的网站如何推广
  • 河北网站建设与制作建设宁波市分行的互联网网站
  • python做网站是不是特别慢百度推广基木鱼
  • 卖网站链接东营住房和城乡建设信息网
  • 网站后台如何上传ico图标单位建设网站需要的材料
  • 如何建淘客网站郑州做网站最好的公司
  • 连锁酒店网站方案o2o网站建设方案
  • 功能型网站响应式网站原理
  • 聊城建设网站骨干校 建设网站
  • 网站建设与管理是干嘛的中国新闻社是什么单位
  • 帮别人做视频剪辑的网站传业做微采商城网站
  • 设计一个网站开发方案宣传片制作企业
  • 新网站收录多少关键词免费一键网站
  • 网页制作与网站建设 在线作业手表网站制作照片