This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HA协议中hal_led.h和hal_led.c中定义的函数形参不一样。

最近在看HA协议下的LED的驱动函数,发现一个问题,hal_led.h声明的函数原型和hal_led.c中定义的函数形参不一样,

如在hal_led.c中定义函数                 HalLedBlink (uint8 leds, uint8 numBlinks, uint8 percent, uint16 period),

但hal_led.h却声明成了extern void HalLedBlink( uint8 leds, uint8 cnt, uint8 duty, uint16 time );

请问,为啥这样软件没有报错,而且还能调用此函数?

如图所示