在IAR使用FreeRTOS出现Error[Pa045]: function "XXX" has no prototype

FreeRTOS官方例程中设置了需要“Require prototype”,所以每个函数(除了main函数)都需要函数声明,其中对于无形参的函数声明要加void,比如void led_init(void);

 

如果不需要“Require prototype”,如果函数被调用,同样需要函数声明,但是对于无形参的函数声明可以不用加void,比如void led_init();

 

总结:推荐需要“Require prototype”

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2021-06-05
  • 2021-07-02
  • 2022-12-23
  • 2021-05-25
  • 2021-07-14
  • 2021-06-06
猜你喜欢
  • 2021-09-25
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2021-08-28
  • 2021-12-21
相关资源
相似解决方案