nios10_1spcannotdefinestructuretooperatePIO?

this days i approch a promble that when using a structure in nios 10.1sp to operate pio,but i doesn't work at all. The details as flowing.

让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:主机域名网站空间、营销软件、网站建设、武都网站维护、网站推广。

#define PIO_LED_BASE 0x101000

i define a structure for pio like this.

typedef struct{
 volatile unsigned long int DATA;
 volatile unsigned long int DIRECTION;
 volatile unsigned long int INTERRUPT_MASK;
 volatile unsigned long int EDGE_CAPTURE;
}LED_REG;

void led_reg_write(void)
{
 unsigned char i;

 for(i = 0; i < 8; i += 1){
  LED -> DATA = 1 << i;
  usleep(2000000);
 }
}

int main()
{
 while(1)
  led_reg_write();
}

my program is to shift the led one by one,but i doesn't work at all.

Is that a problem of the nios 10.1sp? Is there somebody met the same problem before?


网站题目:nios10_1spcannotdefinestructuretooperatePIO?
文章地址:http://hxwzsj.com/article/iihiee.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 网站制作公司 成都网站建设 成都品牌网站设计 成都商城网站建设 企业网站建设 企业网站制作 重庆网站建设 定制网站建设 重庆手机网站建设 成都企业网站建设 高端网站设计 四川成都网站建设 定制网站建设多少钱 企业网站设计 成都网站制作 手机网站制作设计 app网站建设 营销网站建设 成都企业网站制作 营销型网站建设 成都网站设计 成都网站建设