No.108044 作者:liufengzhong 邮件:l_fz@sina.com ID:149522 登陆:12次 文章数:695篇 最后登陆IP:183.13.93.245 最后登陆:2015/6/16 17:02:27 注册:2014/7/29 21:51:15 财富:3671 发帖时间:2014/8/4 17:11:39 发贴者IP:111.221.200.181 标题:liufengzhong:[转帖]禁止的进程?? 摘要:No.108044[转帖]禁止的进程?? 当我在startkit中尝试下面的代码时候我遇到一个问题。 用xTimecomposer调试是OK的,但是从SPI闪存执行编写的测试代码却NG(它不能与JTAG执行)。 [测试代码] ----- #include <xs1.h> #include <stdio.h> #include <platform.h> in port DIGITAL_INPUT = XS1_PORT_32A; //PORT 32A port out led_d1 = XS1_PORT_1A; port out led_d2 = XS1_PORT_1D; void led_thread(chanend input_data1) { unsigned busy_flg; int delay = 1000; printf("LED thread start!!\n"); input_data1 :> busy_flg; while (1) { delay_milliseconds(delay); led_d2 <: 0; delay_milliseconds(delay); led_d2 <: 1; } } voi ......
>>返回讨论的主题
|