Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modbus/nuttx/porttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
* Public Data
****************************************************************************/

uint32_t ulTimeOut;

Check failure on line 51 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
bool bTimeoutEnable;

Check failure on line 52 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

static struct timeval xTimeLast;

Check failure on line 54 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

/****************************************************************************
* Public Functions
Expand All @@ -59,21 +59,21 @@

bool xMBPortTimersInit(uint16_t usTim1Timerout50us)
{
ulTimeOut = usTim1Timerout50us / 20U;

Check failure on line 62 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

Check failure on line 62 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
if (ulTimeOut == 0)

Check failure on line 63 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
{
ulTimeOut = 1;

Check failure on line 65 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
}

return xMBPortSerialSetTimeout(ulTimeOut);

Check failure on line 68 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

Check failure on line 68 in modbus/nuttx/porttimer.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
}

void xMBPortTimersClose()
void xMBPortTimersClose(void)
{
/* Does not use any hardware resources. */
}

void vMBPortTimerPoll()
void vMBPortTimerPoll(void)
{
uint32_t ulDeltaMS;
struct timeval xTimeCur;
Expand Down Expand Up @@ -101,15 +101,15 @@
}
}

void vMBPortTimersEnable()
void vMBPortTimersEnable(void)
{
int res = gettimeofday(&xTimeLast, NULL);

DEBUGASSERT(res == 0);
bTimeoutEnable = true;
}

void vMBPortTimersDisable()
void vMBPortTimersDisable(void)
{
bTimeoutEnable = false;
}
Loading