Skip to content

Commit

Permalink
Code review suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Aggarwal <[email protected]>
  • Loading branch information
aggarg committed Dec 7, 2023
1 parent 27b6f58 commit f9059e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions MISRA.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ _Ref 8.6.1_

#### Rule 11.1
MISRA C:2012 Rule 11.1: Conversions shall not be performed between a pointer to
function and any other type.
function and any other type.

_Ref 11.1.1_
- This rule requires that a pointer to a function shall not be converted into
or from a pointer to a function with a compatible type.
`pxSendCompletedCallback` and `pxReceiveCompletedCallback` are parameters to
`prvInitialiseNewStreamBuffer`. These two callback functions are not used when
`configUSE_SB_COMPLETED_CALLBACK` is set to 0.
- The pointer to function is casted into void to avoid unused parameter
compiler warning when Stream Buffer's Tx and Rx Completed callback feature is
not used.

#### Rule 11.3

Expand Down

0 comments on commit f9059e2

Please sign in to comment.