mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-16 01:37:45 -04:00
Address various MISRA warnings v2 (#238)
* Address some MISRA warnings * Change the return type * Update FreeRTOS_Sockets.c
This commit is contained in:
parent
0341050048
commit
cacf4ad7f9
5 changed files with 20 additions and 14 deletions
|
@ -515,13 +515,6 @@ socket events. */
|
|||
#define ARRAY_SIZE(x) ( ( BaseType_t ) ( sizeof( x ) / sizeof( ( x )[ 0 ] ) ) )
|
||||
#endif
|
||||
|
||||
/*
|
||||
* A version of FreeRTOS_GetReleaseNetworkBuffer() that can be called from an
|
||||
* interrupt. If a non zero value is returned, then the calling ISR should
|
||||
* perform a context switch before exiting the ISR.
|
||||
*/
|
||||
BaseType_t FreeRTOS_ReleaseFreeNetworkBufferFromISR( void );
|
||||
|
||||
/*
|
||||
* Create a message that contains a command to initialise the network interface.
|
||||
* This is used during initialisation, and at any time the network interface
|
||||
|
@ -585,7 +578,9 @@ BaseType_t xIPIsNetworkTaskReady( void );
|
|||
* Actually a user thing, but because xBoundTCPSocketsList, let it do by the
|
||||
* IP-task
|
||||
*/
|
||||
void vTCPNetStat( void );
|
||||
#if( ipconfigHAS_PRINTF != 0 )
|
||||
void vTCPNetStat( void );
|
||||
#endif
|
||||
|
||||
/*
|
||||
* At least one socket needs to check for timeouts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue