Fix nuttx/porttimer.c:71:24: error: a function declaration without a prototype is deprecated

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-12-11 03:27:41 +08:00 committed by GUIDINGLI
parent f28797cddf
commit d6a5307270

View File

@ -68,12 +68,12 @@ bool xMBPortTimersInit(uint16_t usTim1Timerout50us)
return xMBPortSerialSetTimeout(ulTimeOut); return xMBPortSerialSetTimeout(ulTimeOut);
} }
void xMBPortTimersClose() void xMBPortTimersClose(void)
{ {
/* Does not use any hardware resources. */ /* Does not use any hardware resources. */
} }
void vMBPortTimerPoll() void vMBPortTimerPoll(void)
{ {
uint32_t ulDeltaMS; uint32_t ulDeltaMS;
struct timeval xTimeCur; struct timeval xTimeCur;
@ -101,7 +101,7 @@ void vMBPortTimerPoll()
} }
} }
void vMBPortTimersEnable() void vMBPortTimersEnable(void)
{ {
int res = gettimeofday(&xTimeLast, NULL); int res = gettimeofday(&xTimeLast, NULL);
@ -109,7 +109,7 @@ void vMBPortTimersEnable()
bTimeoutEnable = true; bTimeoutEnable = true;
} }
void vMBPortTimersDisable() void vMBPortTimersDisable(void)
{ {
bTimeoutEnable = false; bTimeoutEnable = false;
} }