Altera的坑啊,关于implicit declaration of 'ALT_IRQ_REGISTER'警告

eaglezou 2013-03-01 03:22:25
今天翻了半天一直在看implicit declaration of 'ALT_IRQ_REGISTER'警告。后来根据Nios_II_Software_Developer’s_HandBook找到了HAL API Reference。
根据Document Revision History:

November 2009 9.1.0
Document new enhanced HAL interrupt API functions: alt_ic_irq_disable(),
alt_ic_irq_enable(), alt_ic_irq_enabled(), and alt_ic_isr_register().
Deprecate legacy HAL interrupt API functions alt_irq_disable(),
alt_irq_enable(), alt_irq_enabled(), and alt_irq_register().



This function is part of the legacy HAL interrupt API, which is deprecated. Altera recommends using the enhanced HAL interrupt API.
...全文
2207 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Binzo 2014-01-20
  • 打赏
  • 举报
回复
是的。Quartus升级会出现代码不兼容的问题。 一般稍微改一改就行了,只是初学者可能会感到困惑。
kewang93 2014-01-09
  • 打赏
  • 举报
回复
请问该怎么解决,好像没说解决方法 建议用HAL 怎么用
didi18 2013-08-21
  • 打赏
  • 举报
回复
同样的问题啊,下面补充下TIMER0注册中断格式,及中断函数名字格式: alt_ic_isr_register( TIMER_0_IRQ_INTERRUPT_CONTROLLER_ID, TIMER_0_IRQ, handle_Timer0_interrupts, NULL, 0x0); //注册定时器中断函数 static void handle_Timer0_interrupts(void* isr_context)//中断函数名字格式 {}
net_friends 2013-04-04
  • 打赏
  • 举报
回复
神码意思呢 撸猪

2,432

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 其他硬件开发
社区管理员
  • 其他硬件开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧