mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-22 05:02:47 +00:00
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:
parent
f28797cddf
commit
d6a5307270
1 changed files with 4 additions and 4 deletions
|
|
@ -68,12 +68,12 @@ bool xMBPortTimersInit(uint16_t usTim1Timerout50us)
|
|||
return xMBPortSerialSetTimeout(ulTimeOut);
|
||||
}
|
||||
|
||||
void xMBPortTimersClose()
|
||||
void xMBPortTimersClose(void)
|
||||
{
|
||||
/* Does not use any hardware resources. */
|
||||
}
|
||||
|
||||
void vMBPortTimerPoll()
|
||||
void vMBPortTimerPoll(void)
|
||||
{
|
||||
uint32_t ulDeltaMS;
|
||||
struct timeval xTimeCur;
|
||||
|
|
@ -101,7 +101,7 @@ void vMBPortTimerPoll()
|
|||
}
|
||||
}
|
||||
|
||||
void vMBPortTimersEnable()
|
||||
void vMBPortTimersEnable(void)
|
||||
{
|
||||
int res = gettimeofday(&xTimeLast, NULL);
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ void vMBPortTimersEnable()
|
|||
bTimeoutEnable = true;
|
||||
}
|
||||
|
||||
void vMBPortTimersDisable()
|
||||
void vMBPortTimersDisable(void)
|
||||
{
|
||||
bTimeoutEnable = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue