diff --git a/doxygen/history.dox b/doxygen/history.dox index f3c85702..0c144387 100644 --- a/doxygen/history.dox +++ b/doxygen/history.dox @@ -11,7 +11,7 @@ This release fixes the following bugs: Also, this release demonstrates the new features of QM 4.3.0 in several example models (qpc/examples/ directory). Finally, this release updates `3rd_party/CMSIS/Include` to the latest version from GitHub. - + ------------------------------------------------------------------------------ @section qpc_6_3_2 Version 6.3.2, 2018-06-20 diff --git a/doxygen/metrics.dox b/doxygen/metrics.dox index c03cb7d0..75dbfe6f 100644 --- a/doxygen/metrics.dox +++ b/doxygen/metrics.dox @@ -1,2293 +1,2293 @@ -/** @page metrics Code Metrics - -@code - Standard Code Metrics for QP/C 6.3.3 - - Resource Standard Metrics (TM) for C, C++, C# and Java - Version 7.75 - mSquaredTechnologies.com - - License Type: Windows Single User License - Licensed To : Quantum Leaps, LLC - License No. : WS2975 License Date: Dec 15, 2013 - Build Date : Sep 2 2009 Run Date: Jun 25, 2018 - (C)1996-2009 M Squared Technologies LLC - ________________________________________________________________________ - - ~~ Function Metrics ~~ - ~~ Complexity Detail Analysis ~~ - - File: ..\include\qassert.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 54 eLOC 53 lLOC 5 Comment 258 Lines 338 - ________________________________________________________________________ - End of File: ..\include\qassert.h - - - File: ..\include\qep.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 155 eLOC 151 lLOC 56 Comment 404 Lines 613 - ________________________________________________________________________ - End of File: ..\include\qep.h - - - File: ..\include\qequeue.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 33 eLOC 33 lLOC 15 Comment 180 Lines 233 - ________________________________________________________________________ - End of File: ..\include\qequeue.h - - - File: ..\include\qf.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 196 eLOC 196 lLOC 78 Comment 543 Lines 844 - ________________________________________________________________________ - End of File: ..\include\qf.h - - - File: ..\include\qk.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 62 eLOC 62 lLOC 22 Comment 130 Lines 209 - ________________________________________________________________________ - End of File: ..\include\qk.h - - - File: ..\include\qmpool.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 42 eLOC 42 lLOC 18 Comment 109 Lines 169 - ________________________________________________________________________ - End of File: ..\include\qmpool.h - - - File: ..\include\qpc.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 66 eLOC 65 lLOC 8 Comment 125 Lines 224 - ________________________________________________________________________ - End of File: ..\include\qpc.h - - - File: ..\include\qpset.h - ________________________________________________________________________ - - Inline Function: QF_LOG2 - Parameters: (uint32_t x) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 25 eLOC 20 lLOC 12 Comment 7 Lines 26 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 97 eLOC 92 lLOC 23 Comment 91 Lines 211 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 25 Total Function Pts LOC : 0.0 - Total Function eLOC....: 20 Total Function Pts eLOC: 0.0 - Total Function lLOC....: 12 Total Function Pts lLOC: 0.0 - Total Function Params .: 1 Total Function Return .: 1 - Total Cyclo Complexity : 4 Total Function Complex.: 6 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 25 Average Function LOC ..: 25.00 - Max Function eLOC .....: 20 Average Function eLOC .: 20.00 - Max Function lLOC .....: 12 Average Function lLOC .: 12.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 1 Avg Function Parameters: 1.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 2 Avg Interface Complex. : 2.00 - Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 4.00 - Max Total Complexity ..: 6 Avg Total Complexity ..: 6.00 - ________________________________________________________________________ - End of File: ..\include\qpset.h - - - File: ..\include\qs.h - ________________________________________________________________________ - - - NOTICE: The end of the source file has been reached where the - open brace count { 29 != 27 } close brace count - This is an indication of non-compilable code within the source - file. RSM processes all source code including code wrapped - with preprocessor directives. Accurate metrics requires that - all code present in this file must be compilable. - ~~ Total File Summary ~~ - - LOC 507 eLOC 498 lLOC 124 Comment 719 Lines 1239 - ________________________________________________________________________ - End of File: ..\include\qs.h - - - File: ..\include\qs_dummy.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 72 eLOC 72 lLOC 0 Comment 43 Lines 124 - ________________________________________________________________________ - End of File: ..\include\qs_dummy.h - - - File: ..\include\qv.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 25 eLOC 25 lLOC 2 Comment 80 Lines 111 - ________________________________________________________________________ - End of File: ..\include\qv.h - - - File: ..\include\qxk.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 67 eLOC 67 lLOC 25 Comment 139 Lines 221 - ________________________________________________________________________ - End of File: ..\include\qxk.h - - - File: ..\include\qxthread.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 44 eLOC 44 lLOC 26 Comment 206 Lines 269 - ________________________________________________________________________ - End of File: ..\include\qxthread.h - - - File: ..\include\stdint_c.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 33 eLOC 33 lLOC 0 Comment 44 Lines 87 - ________________________________________________________________________ - End of File: ..\include\stdint_c.h - - - File: ..\src\qf_pkg.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 80 eLOC 80 lLOC 12 Comment 125 Lines 231 - ________________________________________________________________________ - End of File: ..\src\qf_pkg.h - - - File: ..\src\qs_pkg.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 25 eLOC 23 lLOC 6 Comment 59 Lines 93 - ________________________________________________________________________ - End of File: ..\src\qs_pkg.h - - - File: ..\src\qxk_pkg.h - ________________________________________________________________________ - - ~~ Total File Summary ~~ - - LOC 19 eLOC 18 lLOC 8 Comment 49 Lines 77 - ________________________________________________________________________ - End of File: ..\src\qxk_pkg.h - - - File: ..\src\qf\qep_hsm.c - ________________________________________________________________________ - - Function: QHsm_ctor - Parameters: (QHsm * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 9 eLOC 7 lLOC 4 Comment 21 Lines 9 - - Function: QHsm_init_ - Parameters: (QHsm * const me, QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 3 - Conditional if / else if: 1 - Logical and ( && ) : 2 - Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 - LOC 50 eLOC 47 lLOC 31 Comment 35 Lines 70 - - Function: QHsm_top - Parameters: (void const * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 18 Lines 5 - - Function: QHsm_dispatch_ - Parameters: (QHsm * const me, QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 4 - Loops for / foreach : 2 - Conditional if / else if: 5 - Logical and ( && ) : 1 - Complexity Param 2 Return 1 Cyclo Vg 13 Total 16 - LOC 106 eLOC 95 lLOC 62 Comment 67 Lines 147 - - Function: QHsm_tran_ - Parameters: (QHsm * const me, QStateHandler path[QHSM_MAX_NEST_DEPTH_]) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 4 - Conditional if / else if: 10 - Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 - LOC 97 eLOC 76 lLOC 48 Comment 63 Lines 134 - - Function: QHsm_isIn - Parameters: (QHsm * const me, QStateHandler const state) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 1 - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 16 eLOC 13 lLOC 9 Comment 22 Lines 21 - - Function: QHsm_childState_ - Parameters: (QHsm * const me, QStateHandler const parent) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 1 - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 19 eLOC 15 lLOC 12 Comment 33 Lines 25 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 346 eLOC 299 lLOC 177 Comment 322 Lines 634 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 7 - Total Function LOC.....: 302 Total Function Pts LOC : 2.7 - Total Function eLOC....: 257 Total Function Pts eLOC: 2.3 - Total Function lLOC....: 169 Total Function Pts lLOC: 1.4 - Total Function Params .: 14 Total Function Return .: 7 - Total Cyclo Complexity : 43 Total Function Complex.: 64 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 106 Average Function LOC ..: 43.14 - Max Function eLOC .....: 95 Average Function eLOC .: 36.71 - Max Function lLOC .....: 62 Average Function lLOC .: 24.14 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 2.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 3.00 - Max Cyclomatic Complex.: 15 Avg Cyclomatic Complex.: 6.14 - Max Total Complexity ..: 18 Avg Total Complexity ..: 9.14 - ________________________________________________________________________ - End of File: ..\src\qf\qep_hsm.c - - - File: ..\src\qf\qep_msm.c - ________________________________________________________________________ - - Function: QMsm_ctor - Parameters: (QMsm * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 9 eLOC 7 lLOC 4 Comment 29 Lines 10 - - Function: QMsm_init_ - Parameters: (QMsm * const me, QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Logical and ( && ) : 2 - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 23 eLOC 22 lLOC 13 Comment 26 Lines 37 - - Function: QMsm_dispatch_ - Parameters: (QMsm * const me, QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 2 - Conditional if / else if: 12 - Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 - LOC 124 eLOC 107 lLOC 65 Comment 83 Lines 164 - - Function: QMsm_execTatbl_ - Parameters: (QMsm * const me, QMTranActTable const *tatbl) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 5 - Inlined if-else ( ? : ) : 1 - Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 - LOC 50 eLOC 42 lLOC 20 Comment 32 Lines 60 - - Function: QMsm_exitToTranSource_ - Parameters: (QMsm * const me, QMState const *s, QMState const *ts) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 2 - Complexity Param 3 Return 1 Cyclo Vg 4 Total 8 - LOC 17 eLOC 12 lLOC 6 Comment 20 Lines 23 - - Function: QMsm_enterHistory_ - Parameters: (QMsm * const me, QMState const *const hist) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 2 - Conditional if / else if: 3 - Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 - LOC 40 eLOC 33 lLOC 21 Comment 25 Lines 48 - - Function: QMsm_isInState - Parameters: (QMsm const * const me, QMState const * const state) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 1 - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 11 eLOC 8 lLOC 6 Comment 17 Lines 12 - - Function: QMsm_childStateObj_ - Parameters: (QMsm const * const me, QMState const * const parent) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 1 - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 19 eLOC 13 lLOC 9 Comment 22 Lines 23 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 321 eLOC 270 lLOC 149 Comment 313 Lines 595 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 8 - Total Function LOC.....: 293 Total Function Pts LOC : 2.5 - Total Function eLOC....: 244 Total Function Pts eLOC: 2.1 - Total Function lLOC....: 144 Total Function Pts lLOC: 1.2 - Total Function Params .: 17 Total Function Return .: 8 - Total Cyclo Complexity : 44 Total Function Complex.: 69 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 124 Average Function LOC ..: 36.63 - Max Function eLOC .....: 107 Average Function eLOC .: 30.50 - Max Function lLOC .....: 65 Average Function lLOC .: 18.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 2.13 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 3.13 - Max Cyclomatic Complex.: 15 Avg Cyclomatic Complex.: 5.50 - Max Total Complexity ..: 18 Avg Total Complexity ..: 8.63 - ________________________________________________________________________ - End of File: ..\src\qf\qep_msm.c - - - File: ..\src\qf\qf_act.c - ________________________________________________________________________ - - Function: QF_add_ - Parameters: (QActive * const a) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 10 eLOC 9 lLOC 5 Comment 20 Lines 17 - - Function: QF_remove_ - Parameters: (QActive * const a) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 11 eLOC 10 lLOC 6 Comment 21 Lines 17 - - Function: QF_bzero - Parameters: (void * const start, uint_fast16_t len) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 8 eLOC 6 lLOC 4 Comment 14 Lines 8 - - Function: QF_LOG2 - Parameters: (uint32_t x) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 25 eLOC 20 lLOC 12 Comment 1 Lines 26 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 71 eLOC 62 lLOC 28 Comment 119 Lines 194 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 54 Total Function Pts LOC : 0.6 - Total Function eLOC....: 45 Total Function Pts eLOC: 0.5 - Total Function lLOC....: 27 Total Function Pts lLOC: 0.2 - Total Function Params .: 5 Total Function Return .: 4 - Total Cyclo Complexity : 12 Total Function Complex.: 21 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 25 Average Function LOC ..: 13.50 - Max Function eLOC .....: 20 Average Function eLOC .: 11.25 - Max Function lLOC .....: 12 Average Function lLOC .: 6.75 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.25 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.25 - Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 3.00 - Max Total Complexity ..: 6 Avg Total Complexity ..: 5.25 - ________________________________________________________________________ - End of File: ..\src\qf\qf_act.c - - - File: ..\src\qf\qf_actq.c - ________________________________________________________________________ - - Function: QActive_post_ - Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con - st margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 9 - Logical or ( || ) : 3 - Logical and ( && ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 14 Total 18 - LOC 85 eLOC 68 lLOC 38 Comment 76 Lines 110 - - Function: QActive_postLIFO_ - Parameters: (QActive * const me, QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 41 eLOC 34 lLOC 23 Comment 41 Lines 56 - - Function: QActive_get_ - Parameters: (QActive * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 37 eLOC 33 lLOC 23 Comment 41 Lines 47 - - Function: QF_getQueueMin - Parameters: (uint_fast8_t const prio) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 6 Comment 19 Lines 13 - - Function: QTicker_ctor - Parameters: (QTicker * const me, uint8_t tickRate) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 12 eLOC 10 lLOC 4 Comment 6 Lines 14 - - Function: QTicker_init_ - Parameters: (QHsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 - - Function: QTicker_dispatch_ - Parameters: (QHsm * const me, QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 12 eLOC 10 lLOC 8 Comment 4 Lines 15 - - Function: QTicker_post_ - Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con - st margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 24 eLOC 21 lLOC 17 Comment 15 Lines 32 - - Function: QTicker_postLIFO_ - Parameters: (QActive * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 267 eLOC 229 lLOC 130 Comment 266 Lines 495 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 9 - Total Function LOC.....: 231 Total Function Pts LOC : 2.1 - Total Function eLOC....: 193 Total Function Pts eLOC: 1.8 - Total Function lLOC....: 125 Total Function Pts lLOC: 1.0 - Total Function Params .: 18 Total Function Return .: 9 - Total Cyclo Complexity : 31 Total Function Complex.: 58 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 85 Average Function LOC ..: 25.67 - Max Function eLOC .....: 68 Average Function eLOC .: 21.44 - Max Function lLOC .....: 38 Average Function lLOC .: 13.89 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 2.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 3.00 - Max Cyclomatic Complex.: 14 Avg Cyclomatic Complex.: 3.44 - Max Total Complexity ..: 18 Avg Total Complexity ..: 6.44 - ________________________________________________________________________ - End of File: ..\src\qf\qf_actq.c - - - File: ..\src\qf\qf_defer.c - ________________________________________________________________________ - - Function: QActive_defer - Parameters: (QActive const * const me, QEQueue * const eq, QEvt const * - const e) - Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 - LOC 13 eLOC 11 lLOC 8 Comment 31 Lines 16 - - Function: QActive_recall - Parameters: (QActive * const me, QEQueue * const eq) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 32 eLOC 28 lLOC 18 Comment 43 Lines 52 - - Function: QActive_flushDeferred - Parameters: (QActive const * const me, QEQueue * const eq) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 10 eLOC 7 lLOC 7 Comment 19 Lines 12 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 69 eLOC 60 lLOC 33 Comment 140 Lines 201 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 3 - Total Function LOC.....: 55 Total Function Pts LOC : 0.5 - Total Function eLOC....: 46 Total Function Pts eLOC: 0.5 - Total Function lLOC....: 33 Total Function Pts lLOC: 0.3 - Total Function Params .: 7 Total Function Return .: 3 - Total Cyclo Complexity : 6 Total Function Complex.: 16 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 32 Average Function LOC ..: 18.33 - Max Function eLOC .....: 28 Average Function eLOC .: 15.33 - Max Function lLOC .....: 18 Average Function lLOC .: 11.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 2.33 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 3.33 - Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 2.00 - Max Total Complexity ..: 6 Avg Total Complexity ..: 5.33 - ________________________________________________________________________ - End of File: ..\src\qf\qf_defer.c - - - File: ..\src\qf\qf_dyn.c - ________________________________________________________________________ - - Function: QEvt_ctor - Parameters: (QEvt * const me, enum_t const sig) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 6 - - Function: QF_poolInit - Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa - st16_t const evtSize) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical or ( || ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 8 eLOC 6 lLOC 4 Comment 38 Lines 12 - - Function: QF_newX_ - Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en - um_t const sig) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 2 - Inlined if-else ( ? : ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 - LOC 29 eLOC 23 lLOC 14 Comment 40 Lines 39 - - Function: QF_gc - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 26 eLOC 22 lLOC 13 Comment 36 Lines 40 - - Function: QF_newRef_ - Parameters: (QEvt const * const e, void const * const evtRef) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 15 eLOC 14 lLOC 8 Comment 21 Lines 23 - - Function: QF_deleteRef_ - Parameters: (void const * const evtRef) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 10 eLOC 9 lLOC 5 Comment 14 Lines 12 - - Function: QF_poolGetMaxBlockSize - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 5 Lines 3 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 114 eLOC 98 lLOC 50 Comment 216 Lines 331 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 7 - Total Function LOC.....: 96 Total Function Pts LOC : 0.9 - Total Function eLOC....: 80 Total Function Pts eLOC: 0.8 - Total Function lLOC....: 48 Total Function Pts lLOC: 0.4 - Total Function Params .: 12 Total Function Return .: 7 - Total Cyclo Complexity : 15 Total Function Complex.: 34 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 29 Average Function LOC ..: 13.71 - Max Function eLOC .....: 23 Average Function eLOC .: 11.43 - Max Function lLOC .....: 14 Average Function lLOC .: 6.86 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 1.71 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 2.71 - Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.14 - Max Total Complexity ..: 9 Avg Total Complexity ..: 4.86 - ________________________________________________________________________ - End of File: ..\src\qf\qf_dyn.c - - - File: ..\src\qf\qf_mem.c - ________________________________________________________________________ - - Function: QMPool_init - Parameters: (QMPool * const me, void * const poolSto, uint_fast32_t pool - Size, uint_fast16_t blockSize) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 2 - Logical and ( && ) : 2 - Complexity Param 4 Return 1 Cyclo Vg 5 Total 10 - LOC 31 eLOC 27 lLOC 22 Comment 59 Lines 46 - - Function: QMPool_put - Parameters: (QMPool * const me, void *b) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 15 eLOC 14 lLOC 9 Comment 31 Lines 22 - - Function: QMPool_get - Parameters: (QMPool * const me, uint_fast16_t const margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 42 eLOC 36 lLOC 23 Comment 56 Lines 65 - - Function: QF_getPoolMin - Parameters: (uint_fast8_t const poolId) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 6 Comment 14 Lines 14 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 110 eLOC 98 lLOC 60 Comment 207 Lines 304 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 98 Total Function Pts LOC : 0.9 - Total Function eLOC....: 86 Total Function Pts eLOC: 0.8 - Total Function lLOC....: 60 Total Function Pts lLOC: 0.5 - Total Function Params .: 9 Total Function Return .: 4 - Total Cyclo Complexity : 13 Total Function Complex.: 26 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 42 Average Function LOC ..: 24.50 - Max Function eLOC .....: 36 Average Function eLOC .: 21.50 - Max Function lLOC .....: 23 Average Function lLOC .: 15.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 4 Avg Function Parameters: 2.25 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 5 Avg Interface Complex. : 3.25 - Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 3.25 - Max Total Complexity ..: 10 Avg Total Complexity ..: 6.50 - ________________________________________________________________________ - End of File: ..\src\qf\qf_mem.c - - - File: ..\src\qf\qf_ps.c - ________________________________________________________________________ - - Function: QF_psInit - Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 7 eLOC 6 lLOC 3 Comment 33 Lines 12 - - Function: QF_publish_ - Parameters: (QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 36 eLOC 30 lLOC 21 Comment 50 Lines 63 - - Function: QActive_subscribe - Parameters: (QActive const * const me, enum_t const sig) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 4 - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 16 eLOC 15 lLOC 8 Comment 23 Lines 22 - - Function: QActive_unsubscribe - Parameters: (QActive const * const me, enum_t const sig) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 4 - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 16 eLOC 15 lLOC 8 Comment 32 Lines 25 - - Function: QActive_unsubscribeAll - Parameters: (QActive const * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 1 - Logical and ( && ) : 2 - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 24 eLOC 20 lLOC 11 Comment 27 Lines 29 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 116 eLOC 103 lLOC 53 Comment 213 Lines 333 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 5 - Total Function LOC.....: 99 Total Function Pts LOC : 0.9 - Total Function eLOC....: 86 Total Function Pts eLOC: 0.8 - Total Function lLOC....: 51 Total Function Pts lLOC: 0.4 - Total Function Params .: 8 Total Function Return .: 5 - Total Cyclo Complexity : 21 Total Function Complex.: 34 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 36 Average Function LOC ..: 19.80 - Max Function eLOC .....: 30 Average Function eLOC .: 17.20 - Max Function lLOC .....: 21 Average Function lLOC .: 10.20 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.60 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.60 - Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 4.20 - Max Total Complexity ..: 8 Avg Total Complexity ..: 6.80 - ________________________________________________________________________ - End of File: ..\src\qf\qf_ps.c - - - File: ..\src\qf\qf_qact.c - ________________________________________________________________________ - - Function: QActive_ctor - Parameters: (QActive * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 12 eLOC 10 lLOC 4 Comment 19 Lines 17 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 14 eLOC 12 lLOC 4 Comment 69 Lines 82 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 12 Total Function Pts LOC : 0.1 - Total Function eLOC....: 10 Total Function Pts eLOC: 0.1 - Total Function lLOC....: 4 Total Function Pts lLOC: 0.0 - Total Function Params .: 2 Total Function Return .: 1 - Total Cyclo Complexity : 1 Total Function Complex.: 4 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 12 Average Function LOC ..: 12.00 - Max Function eLOC .....: 10 Average Function eLOC .: 10.00 - Max Function lLOC .....: 4 Average Function lLOC .: 4.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 2.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 3.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 4 Avg Total Complexity ..: 4.00 - ________________________________________________________________________ - End of File: ..\src\qf\qf_qact.c - - - File: ..\src\qf\qf_qeq.c - ________________________________________________________________________ - - Function: QEQueue_init - Parameters: (QEQueue * const me, QEvt const *qSto[], uint_fast16_t const - qLen) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 11 eLOC 8 lLOC 7 Comment 21 Lines 11 - - Function: QEQueue_post - Parameters: (QEQueue * const me, QEvt const * const e, uint_fast16_t con - st margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 5 - Logical or ( || ) : 1 - Logical and ( && ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 8 Total 12 - LOC 55 eLOC 45 lLOC 30 Comment 56 Lines 74 - - Function: QEQueue_postLIFO - Parameters: (QEQueue * const me, QEvt const * const e) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 34 eLOC 29 lLOC 21 Comment 44 Lines 44 - - Function: QEQueue_get - Parameters: (QEQueue * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 37 eLOC 32 lLOC 21 Comment 38 Lines 47 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 151 eLOC 128 lLOC 79 Comment 210 Lines 325 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 137 Total Function Pts LOC : 1.2 - Total Function eLOC....: 114 Total Function Pts eLOC: 1.0 - Total Function lLOC....: 79 Total Function Pts lLOC: 0.6 - Total Function Params .: 9 Total Function Return .: 4 - Total Cyclo Complexity : 19 Total Function Complex.: 32 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 55 Average Function LOC ..: 34.25 - Max Function eLOC .....: 45 Average Function eLOC .: 28.50 - Max Function lLOC .....: 30 Average Function lLOC .: 19.75 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 2.25 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 3.25 - Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 4.75 - Max Total Complexity ..: 12 Avg Total Complexity ..: 8.00 - ________________________________________________________________________ - End of File: ..\src\qf\qf_qeq.c - - - File: ..\src\qf\qf_qmact.c - ________________________________________________________________________ - - Function: QMActive_ctor - Parameters: (QMActive * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 12 eLOC 10 lLOC 4 Comment 28 Lines 28 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 15 eLOC 13 lLOC 4 Comment 79 Lines 95 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 1 - Total Function LOC.....: 12 Total Function Pts LOC : 0.1 - Total Function eLOC....: 10 Total Function Pts eLOC: 0.1 - Total Function lLOC....: 4 Total Function Pts lLOC: 0.0 - Total Function Params .: 2 Total Function Return .: 1 - Total Cyclo Complexity : 1 Total Function Complex.: 4 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 12 Average Function LOC ..: 12.00 - Max Function eLOC .....: 10 Average Function eLOC .: 10.00 - Max Function lLOC .....: 4 Average Function lLOC .: 4.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 2.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 3.00 - Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 - Max Total Complexity ..: 4 Avg Total Complexity ..: 4.00 - ________________________________________________________________________ - End of File: ..\src\qf\qf_qmact.c - - - File: ..\src\qf\qf_time.c - ________________________________________________________________________ - - Function: QF_tickX_ - Parameters: (uint_fast8_t const tickRate) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 5 - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 66 eLOC 54 lLOC 36 Comment 56 Lines 94 - - Function: QF_noTimeEvtsActiveX - Parameters: (uint_fast8_t const tickRate) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 13 eLOC 9 lLOC 5 Comment 14 Lines 14 - - Function: QTimeEvt_ctorX - Parameters: (QTimeEvt * const me, QActive * const act, enum_t const sig, - uint_fast8_t tickRate) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 1 - Complexity Param 4 Return 1 Cyclo Vg 2 Total 7 - LOC 11 eLOC 9 lLOC 8 Comment 32 Lines 31 - - Function: QTimeEvt_armX - Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks, QTimeEvtCtr - const interval) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 4 - Complexity Param 3 Return 1 Cyclo Vg 6 Total 10 - LOC 28 eLOC 25 lLOC 16 Comment 51 Lines 50 - - Function: QTimeEvt_disarm - Parameters: (QTimeEvt * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 29 eLOC 26 lLOC 17 Comment 32 Lines 37 - - Function: QTimeEvt_rearm - Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Inlined if-else ( ? : ) : 1 - Logical and ( && ) : 3 - Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 - LOC 34 eLOC 30 lLOC 18 Comment 47 Lines 60 - - Function: QTimeEvt_ctr - Parameters: (QTimeEvt const * const me) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 8 eLOC 7 lLOC 5 Comment 16 Lines 10 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 209 eLOC 180 lLOC 106 Comment 308 Lines 514 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 7 - Total Function LOC.....: 189 Total Function Pts LOC : 1.6 - Total Function eLOC....: 160 Total Function Pts eLOC: 1.4 - Total Function lLOC....: 105 Total Function Pts lLOC: 0.8 - Total Function Params .: 13 Total Function Return .: 7 - Total Cyclo Complexity : 28 Total Function Complex.: 48 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 66 Average Function LOC ..: 27.00 - Max Function eLOC .....: 54 Average Function eLOC .: 22.86 - Max Function lLOC .....: 36 Average Function lLOC .: 15.00 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 4 Avg Function Parameters: 1.86 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 5 Avg Interface Complex. : 2.86 - Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 4.00 - Max Total Complexity ..: 10 Avg Total Complexity ..: 6.86 - ________________________________________________________________________ - End of File: ..\src\qf\qf_time.c - - - File: ..\src\qv\qv.c - ________________________________________________________________________ - - Function: QF_init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 11 eLOC 10 lLOC 7 Comment 12 Lines 13 - - Function: QF_stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 - - Function: QF_run - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Conditional if / else if: 3 - Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 - LOC 48 eLOC 42 lLOC 24 Comment 37 Lines 75 - - Function: QActive_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 2 - Complexity Param 7 Return 1 Cyclo Vg 3 Total 11 - LOC 11 eLOC 9 lLOC 7 Comment 31 Lines 17 - - Function: QActive_stop - Parameters: (QActive * const me) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 6 lLOC 4 Comment 13 Lines 10 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 98 eLOC 87 lLOC 44 Comment 159 Lines 252 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 5 - Total Function LOC.....: 80 Total Function Pts LOC : 0.8 - Total Function eLOC....: 69 Total Function Pts eLOC: 0.7 - Total Function lLOC....: 43 Total Function Pts lLOC: 0.3 - Total Function Params .: 8 Total Function Return .: 5 - Total Cyclo Complexity : 11 Total Function Complex.: 24 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 48 Average Function LOC ..: 16.00 - Max Function eLOC .....: 42 Average Function eLOC .: 13.80 - Max Function lLOC .....: 24 Average Function lLOC .: 8.60 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 7 Avg Function Parameters: 1.60 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 8 Avg Interface Complex. : 2.60 - Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.20 - Max Total Complexity ..: 11 Avg Total Complexity ..: 4.80 - ________________________________________________________________________ - End of File: ..\src\qv\qv.c - - - File: ..\src\qk\qk.c - ________________________________________________________________________ - - Function: QF_init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 13 eLOC 12 lLOC 9 Comment 14 Lines 16 - - Function: QF_stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 - - Function: initial_events - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QF_run - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 13 Lines 14 - - Function: QActive_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 3 - Complexity Param 7 Return 1 Cyclo Vg 5 Total 13 - LOC 18 eLOC 15 lLOC 10 Comment 34 Lines 29 - - Function: QActive_stop - Parameters: (QActive * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 - - Function: QK_schedLock - Parameters: (uint_fast8_t ceiling) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 22 eLOC 19 lLOC 12 Comment 32 Lines 33 - - Function: QK_schedUnlock - Parameters: (QSchedStatus stat) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 21 eLOC 18 lLOC 10 Comment 28 Lines 33 - - Function: QK_sched_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 - LOC 15 eLOC 11 lLOC 7 Comment 21 Lines 19 - - Function: QK_activate_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 5 - Inlined if-else ( ? : ) : 1 - Logical or ( || ) : 3 - Complexity Param 0 Return 1 Cyclo Vg 11 Total 12 - LOC 69 eLOC 61 lLOC 32 Comment 53 Lines 101 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 209 eLOC 180 lLOC 98 Comment 279 Lines 475 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 10 - Total Function LOC.....: 190 Total Function Pts LOC : 1.6 - Total Function eLOC....: 161 Total Function Pts eLOC: 1.4 - Total Function lLOC....: 96 Total Function Pts lLOC: 0.8 - Total Function Params .: 10 Total Function Return .: 10 - Total Cyclo Complexity : 33 Total Function Complex.: 53 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 69 Average Function LOC ..: 19.00 - Max Function eLOC .....: 61 Average Function eLOC .: 16.10 - Max Function lLOC .....: 32 Average Function lLOC .: 9.60 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 7 Avg Function Parameters: 1.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 8 Avg Interface Complex. : 2.00 - Max Cyclomatic Complex.: 11 Avg Cyclomatic Complex.: 3.30 - Max Total Complexity ..: 13 Avg Total Complexity ..: 5.30 - ________________________________________________________________________ - End of File: ..\src\qk\qk.c - - - File: ..\src\qxk\qxk.c - ________________________________________________________________________ - - Function: QF_init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 17 eLOC 16 lLOC 13 Comment 17 Lines 23 - - Function: QF_stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 - - Function: initial_events - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QF_run - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops for / foreach : 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 - - Function: QActive_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 4 - Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 - LOC 20 eLOC 17 lLOC 11 Comment 38 Lines 31 - - Function: QActive_stop - Parameters: (QActive * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 - - Function: QXK_schedLock - Parameters: (uint_fast8_t ceiling) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Inlined if-else ( ? : ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 25 eLOC 22 lLOC 12 Comment 40 Lines 35 - - Function: QXK_schedUnlock - Parameters: (QSchedStatus stat) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 21 eLOC 18 lLOC 10 Comment 33 Lines 33 - - Function: QXK_sched_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 5 - Logical or ( || ) : 1 - Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 - LOC 52 eLOC 42 lLOC 23 Comment 36 Lines 68 - - Function: QXK_activate_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Loops while / do : 1 - Conditional if / else if: 6 - Inlined if-else ( ? : ) : 1 - Logical or ( || ) : 4 - Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 - LOC 88 eLOC 78 lLOC 42 Comment 64 Lines 130 - - Function: QXK_current - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 13 eLOC 11 lLOC 8 Comment 4 Lines 20 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 288 eLOC 249 lLOC 138 Comment 329 Lines 602 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 11 - Total Function LOC.....: 268 Total Function Pts LOC : 2.3 - Total Function eLOC....: 229 Total Function Pts eLOC: 1.9 - Total Function lLOC....: 135 Total Function Pts lLOC: 1.1 - Total Function Params .: 10 Total Function Return .: 11 - Total Cyclo Complexity : 43 Total Function Complex.: 64 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 88 Average Function LOC ..: 24.36 - Max Function eLOC .....: 78 Average Function eLOC .: 20.82 - Max Function lLOC .....: 42 Average Function lLOC .: 12.27 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 7 Avg Function Parameters: 0.91 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 8 Avg Interface Complex. : 1.91 - Max Cyclomatic Complex.: 13 Avg Cyclomatic Complex.: 3.91 - Max Total Complexity ..: 14 Avg Total Complexity ..: 5.82 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk.c - - - File: ..\src\qxk\qxk_mutex.c - ________________________________________________________________________ - - Function: QXMutex_init - Parameters: (QXMutex * const me, uint_fast8_t ceiling) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical or ( || ) : 1 - Logical and ( && ) : 1 - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 16 eLOC 14 lLOC 8 Comment 33 Lines 25 - - Function: QXMutex_lock - Parameters: (QXMutex * const me, uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Logical or ( || ) : 1 - Logical and ( && ) : 4 - Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 - LOC 52 eLOC 45 lLOC 29 Comment 53 Lines 89 - - Function: QXMutex_tryLock - Parameters: (QXMutex * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 5 - Logical or ( || ) : 1 - Logical and ( && ) : 5 - Complexity Param 1 Return 1 Cyclo Vg 12 Total 14 - LOC 44 eLOC 37 lLOC 20 Comment 46 Lines 69 - - Function: QXMutex_unlock - Parameters: (QXMutex * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 7 - Logical or ( || ) : 2 - Logical and ( && ) : 8 - Complexity Param 1 Return 1 Cyclo Vg 18 Total 20 - LOC 67 eLOC 57 lLOC 29 Comment 66 Lines 114 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 194 eLOC 168 lLOC 86 Comment 248 Lines 449 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 179 Total Function Pts LOC : 1.5 - Total Function eLOC....: 153 Total Function Pts eLOC: 1.3 - Total Function lLOC....: 86 Total Function Pts lLOC: 0.7 - Total Function Params .: 6 Total Function Return .: 4 - Total Cyclo Complexity : 44 Total Function Complex.: 54 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 67 Average Function LOC ..: 44.75 - Max Function eLOC .....: 57 Average Function eLOC .: 38.25 - Max Function lLOC .....: 29 Average Function lLOC .: 21.50 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 2 Avg Function Parameters: 1.50 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 3 Avg Interface Complex. : 2.50 - Max Cyclomatic Complex.: 18 Avg Cyclomatic Complex.: 11.00 - Max Total Complexity ..: 20 Avg Total Complexity ..: 13.50 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk_mutex.c - - - File: ..\src\qxk\qxk_sema.c - ________________________________________________________________________ - - Function: QXSemaphore_init - Parameters: (QXSemaphore * const me, uint_fast16_t count, uint_fast16_t - max_count) - Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 - LOC 6 eLOC 4 lLOC 4 Comment 22 Lines 7 - - Function: QXSemaphore_wait - Parameters: (QXSemaphore * const me, uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 4 - Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 - LOC 29 eLOC 26 lLOC 18 Comment 44 Lines 44 - - Function: QXSemaphore_tryWait - Parameters: (QXSemaphore * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 15 eLOC 12 lLOC 8 Comment 18 Lines 20 - - Function: QXSemaphore_signal - Parameters: (QXSemaphore * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 3 - Logical and ( && ) : 3 - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 32 eLOC 26 lLOC 16 Comment 35 Lines 48 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 97 eLOC 83 lLOC 46 Comment 168 Lines 262 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 4 - Total Function LOC.....: 82 Total Function Pts LOC : 0.8 - Total Function eLOC....: 68 Total Function Pts eLOC: 0.6 - Total Function lLOC....: 46 Total Function Pts lLOC: 0.4 - Total Function Params .: 7 Total Function Return .: 4 - Total Cyclo Complexity : 16 Total Function Complex.: 27 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 32 Average Function LOC ..: 20.50 - Max Function eLOC .....: 26 Average Function eLOC .: 17.00 - Max Function lLOC .....: 18 Average Function lLOC .: 11.50 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 3 Avg Function Parameters: 1.75 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 4 Avg Interface Complex. : 2.75 - Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 4.00 - Max Total Complexity ..: 9 Avg Total Complexity ..: 6.75 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk_sema.c - - - File: ..\src\qxk\qxk_xthr.c - ________________________________________________________________________ - - Function: QXThread_ctor - Parameters: (QXThread * const me, QXThreadHandler handler, uint_fast8_t - tickRate) - Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 - LOC 13 eLOC 10 lLOC 5 Comment 27 Lines 16 - - Function: QXThread_init_ - Parameters: (QMsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 2 Lines 5 - - Function: QXThread_dispatch_ - Parameters: (QMsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 - - Function: QXThread_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 4 - Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 - LOC 21 eLOC 18 lLOC 12 Comment 42 Lines 43 - - Function: QXThread_post_ - Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con - st margin) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 9 - Logical or ( || ) : 1 - Logical and ( && ) : 1 - Complexity Param 3 Return 1 Cyclo Vg 12 Total 16 - LOC 80 eLOC 65 lLOC 45 Comment 83 Lines 115 - - Function: QXThread_postLIFO_ - Parameters: (QActive * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 11 Lines 5 - - Function: QXThread_queueGet - Parameters: (uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 4 - Logical and ( && ) : 3 - Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 - LOC 61 eLOC 54 lLOC 35 Comment 55 Lines 87 - - Function: QXThread_block_ - Parameters: (QXThread const * const me) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 7 - - Function: QXThread_unblock_ - Parameters: (QXThread const * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Logical and ( && ) : 1 - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 8 eLOC 5 lLOC 2 Comment 10 Lines 8 - - Function: QXThread_teArm_ - Parameters: (QXThread * const me, QSignal sig, uint_fast16_t const nTick - s) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 2 - Complexity Param 3 Return 1 Cyclo Vg 3 Total 7 - LOC 14 eLOC 10 lLOC 8 Comment 23 Lines 31 - - Function: QXThread_teDisarm_ - Parameters: (QXThread * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 8 lLOC 5 Comment 11 Lines 13 - - Function: QXThread_delay - Parameters: (uint_fast16_t const nTicks) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 3 - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 21 eLOC 20 lLOC 14 Comment 19 Lines 37 - - Function: QXThread_delayCancel - Parameters: (QXThread * const me) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Conditional if / else if: 1 - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 - - Function: QXK_threadRet_ - Parameters: (void) - Cyclomatic Complexity Vg Detail - Function Base : 1 - Logical and ( && ) : 3 - Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 - LOC 16 eLOC 15 lLOC 10 Comment 22 Lines 27 - - ------------------------------------------------------------------------ - - ~~ Total File Summary ~~ - - LOC 322 eLOC 275 lLOC 161 Comment 367 Lines 682 - ------------------------------------------------------------------------ - - ~~ File Functional Summary ~~ - - File Function Count....: 14 - Total Function LOC.....: 279 Total Function Pts LOC : 2.5 - Total Function eLOC....: 232 Total Function Pts eLOC: 2.1 - Total Function lLOC....: 155 Total Function Pts lLOC: 1.3 - Total Function Params .: 28 Total Function Return .: 14 - Total Cyclo Complexity : 49 Total Function Complex.: 91 - ------ ----- ----- ------ ------ ----- - Max Function LOC ......: 80 Average Function LOC ..: 19.93 - Max Function eLOC .....: 65 Average Function eLOC .: 16.57 - Max Function lLOC .....: 45 Average Function lLOC .: 11.07 - ------ ----- ----- ------ ------ ----- - Max Function Parameters: 7 Avg Function Parameters: 2.00 - Max Function Returns ..: 1 Avg Function Returns ..: 1.00 - Max Interface Complex. : 8 Avg Interface Complex. : 3.00 - Max Cyclomatic Complex.: 12 Avg Cyclomatic Complex.: 3.50 - Max Total Complexity ..: 16 Avg Total Complexity ..: 6.50 - ________________________________________________________________________ - End of File: ..\src\qxk\qxk_xthr.c - - - ------------------------------------------------------------------------ - - ~~ Project Analysis For 35 Files ~~ - - ------------------------------------------------------------------------ - - ~~ Total Project Summary ~~ - - LOC 4588 eLOC 4148 lLOC 1874 Comment 7316 Lines 12118 - Average per File, metric/35 files - LOC 131 eLOC 118 lLOC 53 Comment 209 Lines 346 - - ------------------------------------------------------------------------ - - ~~ Project Functional Metrics ~~ - - Function: QF_LOG2 - Parameters: (uint32_t x) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 25 eLOC 20 lLOC 12 Comment 7 Lines 26 - - Function: QHsm_ctor - Parameters: (QHsm * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 9 eLOC 7 lLOC 4 Comment 21 Lines 9 - - Function: QHsm_init_ - Parameters: (QHsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 - LOC 50 eLOC 47 lLOC 31 Comment 35 Lines 70 - - Function: QHsm_top - Parameters: (void const * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 18 Lines 5 - - Function: QHsm_dispatch_ - Parameters: (QHsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 13 Total 16 - LOC 106 eLOC 95 lLOC 62 Comment 67 Lines 147 - - Function: QHsm_tran_ - Parameters: (QHsm * const me, QStateHandler path[QHSM_MAX_NEST_DEPTH_]) - Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 - LOC 97 eLOC 76 lLOC 48 Comment 63 Lines 134 - - Function: QHsm_isIn - Parameters: (QHsm * const me, QStateHandler const state) - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 16 eLOC 13 lLOC 9 Comment 22 Lines 21 - - Function: QHsm_childState_ - Parameters: (QHsm * const me, QStateHandler const parent) - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 19 eLOC 15 lLOC 12 Comment 33 Lines 25 - - Function: QMsm_ctor - Parameters: (QMsm * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 9 eLOC 7 lLOC 4 Comment 29 Lines 10 - - Function: QMsm_init_ - Parameters: (QMsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 23 eLOC 22 lLOC 13 Comment 26 Lines 37 - - Function: QMsm_dispatch_ - Parameters: (QMsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 - LOC 124 eLOC 107 lLOC 65 Comment 83 Lines 164 - - Function: QMsm_execTatbl_ - Parameters: (QMsm * const me, QMTranActTable const *tatbl) - Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 - LOC 50 eLOC 42 lLOC 20 Comment 32 Lines 60 - - Function: QMsm_exitToTranSource_ - Parameters: (QMsm * const me, QMState const *s, QMState const *ts) - Complexity Param 3 Return 1 Cyclo Vg 4 Total 8 - LOC 17 eLOC 12 lLOC 6 Comment 20 Lines 23 - - Function: QMsm_enterHistory_ - Parameters: (QMsm * const me, QMState const *const hist) - Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 - LOC 40 eLOC 33 lLOC 21 Comment 25 Lines 48 - - Function: QMsm_isInState - Parameters: (QMsm const * const me, QMState const * const state) - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 11 eLOC 8 lLOC 6 Comment 17 Lines 12 - - Function: QMsm_childStateObj_ - Parameters: (QMsm const * const me, QMState const * const parent) - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 19 eLOC 13 lLOC 9 Comment 22 Lines 23 - - Function: QF_add_ - Parameters: (QActive * const a) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 10 eLOC 9 lLOC 5 Comment 20 Lines 17 - - Function: QF_remove_ - Parameters: (QActive * const a) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 11 eLOC 10 lLOC 6 Comment 21 Lines 17 - - Function: QF_bzero - Parameters: (void * const start, uint_fast16_t len) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 8 eLOC 6 lLOC 4 Comment 14 Lines 8 - - Function: QF_LOG2 - Parameters: (uint32_t x) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 25 eLOC 20 lLOC 12 Comment 1 Lines 26 - - Function: QActive_post_ - Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con - st margin) - Complexity Param 3 Return 1 Cyclo Vg 14 Total 18 - LOC 85 eLOC 68 lLOC 38 Comment 76 Lines 110 - - Function: QActive_postLIFO_ - Parameters: (QActive * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 41 eLOC 34 lLOC 23 Comment 41 Lines 56 - - Function: QActive_get_ - Parameters: (QActive * const me) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 37 eLOC 33 lLOC 23 Comment 41 Lines 47 - - Function: QF_getQueueMin - Parameters: (uint_fast8_t const prio) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 6 Comment 19 Lines 13 - - Function: QTicker_ctor - Parameters: (QTicker * const me, uint8_t tickRate) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 12 eLOC 10 lLOC 4 Comment 6 Lines 14 - - Function: QTicker_init_ - Parameters: (QHsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 - - Function: QTicker_dispatch_ - Parameters: (QHsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 12 eLOC 10 lLOC 8 Comment 4 Lines 15 - - Function: QTicker_post_ - Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con - st margin) - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 24 eLOC 21 lLOC 17 Comment 15 Lines 32 - - Function: QTicker_postLIFO_ - Parameters: (QActive * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 - - Function: QActive_defer - Parameters: (QActive const * const me, QEQueue * const eq, QEvt const * - const e) - Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 - LOC 13 eLOC 11 lLOC 8 Comment 31 Lines 16 - - Function: QActive_recall - Parameters: (QActive * const me, QEQueue * const eq) - Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 - LOC 32 eLOC 28 lLOC 18 Comment 43 Lines 52 - - Function: QActive_flushDeferred - Parameters: (QActive const * const me, QEQueue * const eq) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 10 eLOC 7 lLOC 7 Comment 19 Lines 12 - - Function: QEvt_ctor - Parameters: (QEvt * const me, enum_t const sig) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 6 - - Function: QF_poolInit - Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa - st16_t const evtSize) - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 8 eLOC 6 lLOC 4 Comment 38 Lines 12 - - Function: QF_newX_ - Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en - um_t const sig) - Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 - LOC 29 eLOC 23 lLOC 14 Comment 40 Lines 39 - - Function: QF_gc - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 26 eLOC 22 lLOC 13 Comment 36 Lines 40 - - Function: QF_newRef_ - Parameters: (QEvt const * const e, void const * const evtRef) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 15 eLOC 14 lLOC 8 Comment 21 Lines 23 - - Function: QF_deleteRef_ - Parameters: (void const * const evtRef) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 10 eLOC 9 lLOC 5 Comment 14 Lines 12 - - Function: QF_poolGetMaxBlockSize - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 5 Lines 3 - - Function: QMPool_init - Parameters: (QMPool * const me, void * const poolSto, uint_fast32_t pool - Size, uint_fast16_t blockSize) - Complexity Param 4 Return 1 Cyclo Vg 5 Total 10 - LOC 31 eLOC 27 lLOC 22 Comment 59 Lines 46 - - Function: QMPool_put - Parameters: (QMPool * const me, void *b) - Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 - LOC 15 eLOC 14 lLOC 9 Comment 31 Lines 22 - - Function: QMPool_get - Parameters: (QMPool * const me, uint_fast16_t const margin) - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 42 eLOC 36 lLOC 23 Comment 56 Lines 65 - - Function: QF_getPoolMin - Parameters: (uint_fast8_t const poolId) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 10 eLOC 9 lLOC 6 Comment 14 Lines 14 - - Function: QF_psInit - Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 7 eLOC 6 lLOC 3 Comment 33 Lines 12 - - Function: QF_publish_ - Parameters: (QEvt const * const e) - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 36 eLOC 30 lLOC 21 Comment 50 Lines 63 - - Function: QActive_subscribe - Parameters: (QActive const * const me, enum_t const sig) - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 16 eLOC 15 lLOC 8 Comment 23 Lines 22 - - Function: QActive_unsubscribe - Parameters: (QActive const * const me, enum_t const sig) - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 16 eLOC 15 lLOC 8 Comment 32 Lines 25 - - Function: QActive_unsubscribeAll - Parameters: (QActive const * const me) - Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 - LOC 24 eLOC 20 lLOC 11 Comment 27 Lines 29 - - Function: QActive_ctor - Parameters: (QActive * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 12 eLOC 10 lLOC 4 Comment 19 Lines 17 - - Function: QEQueue_init - Parameters: (QEQueue * const me, QEvt const *qSto[], uint_fast16_t const - qLen) - Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 - LOC 11 eLOC 8 lLOC 7 Comment 21 Lines 11 - - Function: QEQueue_post - Parameters: (QEQueue * const me, QEvt const * const e, uint_fast16_t con - st margin) - Complexity Param 3 Return 1 Cyclo Vg 8 Total 12 - LOC 55 eLOC 45 lLOC 30 Comment 56 Lines 74 - - Function: QEQueue_postLIFO - Parameters: (QEQueue * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 - LOC 34 eLOC 29 lLOC 21 Comment 44 Lines 44 - - Function: QEQueue_get - Parameters: (QEQueue * const me) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 37 eLOC 32 lLOC 21 Comment 38 Lines 47 - - Function: QMActive_ctor - Parameters: (QMActive * const me, QStateHandler initial) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 12 eLOC 10 lLOC 4 Comment 28 Lines 28 - - Function: QF_tickX_ - Parameters: (uint_fast8_t const tickRate) - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 66 eLOC 54 lLOC 36 Comment 56 Lines 94 - - Function: QF_noTimeEvtsActiveX - Parameters: (uint_fast8_t const tickRate) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 13 eLOC 9 lLOC 5 Comment 14 Lines 14 - - Function: QTimeEvt_ctorX - Parameters: (QTimeEvt * const me, QActive * const act, enum_t const sig, - uint_fast8_t tickRate) - Complexity Param 4 Return 1 Cyclo Vg 2 Total 7 - LOC 11 eLOC 9 lLOC 8 Comment 32 Lines 31 - - Function: QTimeEvt_armX - Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks, QTimeEvtCtr - const interval) - Complexity Param 3 Return 1 Cyclo Vg 6 Total 10 - LOC 28 eLOC 25 lLOC 16 Comment 51 Lines 50 - - Function: QTimeEvt_disarm - Parameters: (QTimeEvt * const me) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 29 eLOC 26 lLOC 17 Comment 32 Lines 37 - - Function: QTimeEvt_rearm - Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 - LOC 34 eLOC 30 lLOC 18 Comment 47 Lines 60 - - Function: QTimeEvt_ctr - Parameters: (QTimeEvt const * const me) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 8 eLOC 7 lLOC 5 Comment 16 Lines 10 - - Function: QF_init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 11 eLOC 10 lLOC 7 Comment 12 Lines 13 - - Function: QF_stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 - - Function: QF_run - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 - LOC 48 eLOC 42 lLOC 24 Comment 37 Lines 75 - - Function: QActive_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Complexity Param 7 Return 1 Cyclo Vg 3 Total 11 - LOC 11 eLOC 9 lLOC 7 Comment 31 Lines 17 - - Function: QActive_stop - Parameters: (QActive * const me) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 7 eLOC 6 lLOC 4 Comment 13 Lines 10 - - Function: QF_init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 13 eLOC 12 lLOC 9 Comment 14 Lines 16 - - Function: QF_stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 - - Function: initial_events - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QF_run - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 13 Lines 14 - - Function: QActive_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Complexity Param 7 Return 1 Cyclo Vg 5 Total 13 - LOC 18 eLOC 15 lLOC 10 Comment 34 Lines 29 - - Function: QActive_stop - Parameters: (QActive * const me) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 - - Function: QK_schedLock - Parameters: (uint_fast8_t ceiling) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 22 eLOC 19 lLOC 12 Comment 32 Lines 33 - - Function: QK_schedUnlock - Parameters: (QSchedStatus stat) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 21 eLOC 18 lLOC 10 Comment 28 Lines 33 - - Function: QK_sched_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 - LOC 15 eLOC 11 lLOC 7 Comment 21 Lines 19 - - Function: QK_activate_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 11 Total 12 - LOC 69 eLOC 61 lLOC 32 Comment 53 Lines 101 - - Function: QF_init - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 17 eLOC 16 lLOC 13 Comment 17 Lines 23 - - Function: QF_stop - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 - LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 - - Function: initial_events - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 - - Function: QF_run - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 - - Function: QActive_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 - LOC 20 eLOC 17 lLOC 11 Comment 38 Lines 31 - - Function: QActive_stop - Parameters: (QActive * const me) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 - - Function: QXK_schedLock - Parameters: (uint_fast8_t ceiling) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 25 eLOC 22 lLOC 12 Comment 40 Lines 35 - - Function: QXK_schedUnlock - Parameters: (QSchedStatus stat) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 21 eLOC 18 lLOC 10 Comment 33 Lines 33 - - Function: QXK_sched_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 - LOC 52 eLOC 42 lLOC 23 Comment 36 Lines 68 - - Function: QXK_activate_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 - LOC 88 eLOC 78 lLOC 42 Comment 64 Lines 130 - - Function: QXK_current - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 - LOC 13 eLOC 11 lLOC 8 Comment 4 Lines 20 - - Function: QXMutex_init - Parameters: (QXMutex * const me, uint_fast8_t ceiling) - Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 - LOC 16 eLOC 14 lLOC 8 Comment 33 Lines 25 - - Function: QXMutex_lock - Parameters: (QXMutex * const me, uint_fast16_t const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 - LOC 52 eLOC 45 lLOC 29 Comment 53 Lines 89 - - Function: QXMutex_tryLock - Parameters: (QXMutex * const me) - Complexity Param 1 Return 1 Cyclo Vg 12 Total 14 - LOC 44 eLOC 37 lLOC 20 Comment 46 Lines 69 - - Function: QXMutex_unlock - Parameters: (QXMutex * const me) - Complexity Param 1 Return 1 Cyclo Vg 18 Total 20 - LOC 67 eLOC 57 lLOC 29 Comment 66 Lines 114 - - Function: QXSemaphore_init - Parameters: (QXSemaphore * const me, uint_fast16_t count, uint_fast16_t - max_count) - Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 - LOC 6 eLOC 4 lLOC 4 Comment 22 Lines 7 - - Function: QXSemaphore_wait - Parameters: (QXSemaphore * const me, uint_fast16_t const nTicks) - Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 - LOC 29 eLOC 26 lLOC 18 Comment 44 Lines 44 - - Function: QXSemaphore_tryWait - Parameters: (QXSemaphore * const me) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 15 eLOC 12 lLOC 8 Comment 18 Lines 20 - - Function: QXSemaphore_signal - Parameters: (QXSemaphore * const me) - Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 - LOC 32 eLOC 26 lLOC 16 Comment 35 Lines 48 - - Function: QXThread_ctor - Parameters: (QXThread * const me, QXThreadHandler handler, uint_fast8_t - tickRate) - Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 - LOC 13 eLOC 10 lLOC 5 Comment 27 Lines 16 - - Function: QXThread_init_ - Parameters: (QMsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 2 Lines 5 - - Function: QXThread_dispatch_ - Parameters: (QMsm * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 - - Function: QXThread_start_ - Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], - uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv - t const *ie) - Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 - LOC 21 eLOC 18 lLOC 12 Comment 42 Lines 43 - - Function: QXThread_post_ - Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con - st margin) - Complexity Param 3 Return 1 Cyclo Vg 12 Total 16 - LOC 80 eLOC 65 lLOC 45 Comment 83 Lines 115 - - Function: QXThread_postLIFO_ - Parameters: (QActive * const me, QEvt const * const e) - Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 - LOC 5 eLOC 4 lLOC 3 Comment 11 Lines 5 - - Function: QXThread_queueGet - Parameters: (uint_fast16_t const nTicks) - Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 - LOC 61 eLOC 54 lLOC 35 Comment 55 Lines 87 - - Function: QXThread_block_ - Parameters: (QXThread const * const me) - Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 - LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 7 - - Function: QXThread_unblock_ - Parameters: (QXThread const * const me) - Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 - LOC 8 eLOC 5 lLOC 2 Comment 10 Lines 8 - - Function: QXThread_teArm_ - Parameters: (QXThread * const me, QSignal sig, uint_fast16_t const nTick - s) - Complexity Param 3 Return 1 Cyclo Vg 3 Total 7 - LOC 14 eLOC 10 lLOC 8 Comment 23 Lines 31 - - Function: QXThread_teDisarm_ - Parameters: (QXThread * const me) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 11 eLOC 8 lLOC 5 Comment 11 Lines 13 - - Function: QXThread_delay - Parameters: (uint_fast16_t const nTicks) - Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 - LOC 21 eLOC 20 lLOC 14 Comment 19 Lines 37 - - Function: QXThread_delayCancel - Parameters: (QXThread * const me) - Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 - LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 - - Function: QXK_threadRet_ - Parameters: (void) - Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 - LOC 16 eLOC 15 lLOC 10 Comment 22 Lines 27 - - Total: Functions - LOC 2681 eLOC 2263 lLOC 1422 InCmp 295 CycloCmp 434 - Function Points FP(LOC) 20.8 FP(eLOC) 17.5 FP(lLOC) 11.0 - - ------------------------------------------------------------------------ - - ~~ Project Functional Analysis ~~ - - Total Functions .......: 109 Total Physical Lines ..: 3813 - Total LOC .............: 2681 Total Function Pts LOC : 20.8 - Total eLOC ............: 2263 Total Function Pts eLOC: 17.5 - Total lLOC.............: 1422 Total Function Pts lLOC: 11.0 - Total Cyclomatic Comp. : 434 Total Interface Comp. .: 295 - Total Parameters ......: 186 Total Return Points ...: 109 - Total Comment Lines ...: 3061 Total Blank Lines .....: 567 - ------ ----- ----- ------ ------ ----- - Avg Physical Lines ....: 34.98 - Avg LOC ...............: 24.60 Avg eLOC ..............: 20.76 - Avg lLOC ..............: 13.05 Avg Cyclomatic Comp. ..: 3.98 - Avg Interface Comp. ...: 2.71 Avg Parameters ........: 1.71 - Avg Return Points .....: 1.00 Avg Comment Lines .....: 28.08 - ------ ----- ----- ------ ------ ----- - Max LOC ...............: 124 - Max eLOC ..............: 107 Max lLOC ..............: 65 - Max Cyclomatic Comp. ..: 18 Max Interface Comp. ...: 8 - Max Parameters ........: 7 Max Return Points .....: 1 - Max Comment Lines .....: 83 Max Total Lines .......: 164 - ------ ----- ----- ------ ------ ----- - Min LOC ...............: 3 - Min eLOC ..............: 2 Min lLOC ..............: 1 - Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1 - Min Parameters ........: 0 Min Return Points .....: 1 - Min Comment Lines .....: 1 Min Total Lines .......: 3 - - ------------------------------------------------------------------------ - - ~~ File Summary ~~ - - C Source Files *.c ....: 18 C/C++ Include Files *.h: 17 - C++ Source Files *.c* .: 0 C++ Include Files *.h* : 0 - C# Source Files *.cs ..: 0 Java Source File *.jav*: 0 - Other File Count ......: 0 Total File Count ......: 35 - ________________________________________________________________________ - -@endcode -*/ +/** @page metrics Code Metrics + +@code + Standard Code Metrics for QP/C 6.3.3 + + Resource Standard Metrics (TM) for C, C++, C# and Java + Version 7.75 - mSquaredTechnologies.com + + License Type: Windows Single User License + Licensed To : Quantum Leaps, LLC + License No. : WS2975 License Date: Dec 15, 2013 + Build Date : Sep 2 2009 Run Date: Jun 25, 2018 + (C)1996-2009 M Squared Technologies LLC + ________________________________________________________________________ + + ~~ Function Metrics ~~ + ~~ Complexity Detail Analysis ~~ + + File: ..\include\qassert.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 54 eLOC 53 lLOC 5 Comment 258 Lines 338 + ________________________________________________________________________ + End of File: ..\include\qassert.h + + + File: ..\include\qep.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 155 eLOC 151 lLOC 56 Comment 404 Lines 613 + ________________________________________________________________________ + End of File: ..\include\qep.h + + + File: ..\include\qequeue.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 33 eLOC 33 lLOC 15 Comment 180 Lines 233 + ________________________________________________________________________ + End of File: ..\include\qequeue.h + + + File: ..\include\qf.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 196 eLOC 196 lLOC 78 Comment 543 Lines 844 + ________________________________________________________________________ + End of File: ..\include\qf.h + + + File: ..\include\qk.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 62 eLOC 62 lLOC 22 Comment 130 Lines 209 + ________________________________________________________________________ + End of File: ..\include\qk.h + + + File: ..\include\qmpool.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 42 eLOC 42 lLOC 18 Comment 109 Lines 169 + ________________________________________________________________________ + End of File: ..\include\qmpool.h + + + File: ..\include\qpc.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 66 eLOC 65 lLOC 8 Comment 125 Lines 224 + ________________________________________________________________________ + End of File: ..\include\qpc.h + + + File: ..\include\qpset.h + ________________________________________________________________________ + + Inline Function: QF_LOG2 + Parameters: (uint32_t x) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 25 eLOC 20 lLOC 12 Comment 7 Lines 26 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 97 eLOC 92 lLOC 23 Comment 91 Lines 211 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 25 Total Function Pts LOC : 0.0 + Total Function eLOC....: 20 Total Function Pts eLOC: 0.0 + Total Function lLOC....: 12 Total Function Pts lLOC: 0.0 + Total Function Params .: 1 Total Function Return .: 1 + Total Cyclo Complexity : 4 Total Function Complex.: 6 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 25 Average Function LOC ..: 25.00 + Max Function eLOC .....: 20 Average Function eLOC .: 20.00 + Max Function lLOC .....: 12 Average Function lLOC .: 12.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 1 Avg Function Parameters: 1.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 2 Avg Interface Complex. : 2.00 + Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 4.00 + Max Total Complexity ..: 6 Avg Total Complexity ..: 6.00 + ________________________________________________________________________ + End of File: ..\include\qpset.h + + + File: ..\include\qs.h + ________________________________________________________________________ + + + NOTICE: The end of the source file has been reached where the + open brace count { 29 != 27 } close brace count + This is an indication of non-compilable code within the source + file. RSM processes all source code including code wrapped + with preprocessor directives. Accurate metrics requires that + all code present in this file must be compilable. + ~~ Total File Summary ~~ + + LOC 507 eLOC 498 lLOC 124 Comment 719 Lines 1239 + ________________________________________________________________________ + End of File: ..\include\qs.h + + + File: ..\include\qs_dummy.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 72 eLOC 72 lLOC 0 Comment 43 Lines 124 + ________________________________________________________________________ + End of File: ..\include\qs_dummy.h + + + File: ..\include\qv.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 25 eLOC 25 lLOC 2 Comment 80 Lines 111 + ________________________________________________________________________ + End of File: ..\include\qv.h + + + File: ..\include\qxk.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 67 eLOC 67 lLOC 25 Comment 139 Lines 221 + ________________________________________________________________________ + End of File: ..\include\qxk.h + + + File: ..\include\qxthread.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 44 eLOC 44 lLOC 26 Comment 206 Lines 269 + ________________________________________________________________________ + End of File: ..\include\qxthread.h + + + File: ..\include\stdint_c.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 33 eLOC 33 lLOC 0 Comment 44 Lines 87 + ________________________________________________________________________ + End of File: ..\include\stdint_c.h + + + File: ..\src\qf_pkg.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 80 eLOC 80 lLOC 12 Comment 125 Lines 231 + ________________________________________________________________________ + End of File: ..\src\qf_pkg.h + + + File: ..\src\qs_pkg.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 25 eLOC 23 lLOC 6 Comment 59 Lines 93 + ________________________________________________________________________ + End of File: ..\src\qs_pkg.h + + + File: ..\src\qxk_pkg.h + ________________________________________________________________________ + + ~~ Total File Summary ~~ + + LOC 19 eLOC 18 lLOC 8 Comment 49 Lines 77 + ________________________________________________________________________ + End of File: ..\src\qxk_pkg.h + + + File: ..\src\qf\qep_hsm.c + ________________________________________________________________________ + + Function: QHsm_ctor + Parameters: (QHsm * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 9 eLOC 7 lLOC 4 Comment 21 Lines 9 + + Function: QHsm_init_ + Parameters: (QHsm * const me, QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 3 + Conditional if / else if: 1 + Logical and ( && ) : 2 + Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 + LOC 50 eLOC 47 lLOC 31 Comment 35 Lines 70 + + Function: QHsm_top + Parameters: (void const * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 18 Lines 5 + + Function: QHsm_dispatch_ + Parameters: (QHsm * const me, QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 4 + Loops for / foreach : 2 + Conditional if / else if: 5 + Logical and ( && ) : 1 + Complexity Param 2 Return 1 Cyclo Vg 13 Total 16 + LOC 106 eLOC 95 lLOC 62 Comment 67 Lines 147 + + Function: QHsm_tran_ + Parameters: (QHsm * const me, QStateHandler path[QHSM_MAX_NEST_DEPTH_]) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 4 + Conditional if / else if: 10 + Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 + LOC 97 eLOC 76 lLOC 48 Comment 63 Lines 134 + + Function: QHsm_isIn + Parameters: (QHsm * const me, QStateHandler const state) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 1 + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 16 eLOC 13 lLOC 9 Comment 22 Lines 21 + + Function: QHsm_childState_ + Parameters: (QHsm * const me, QStateHandler const parent) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 1 + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 19 eLOC 15 lLOC 12 Comment 33 Lines 25 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 346 eLOC 299 lLOC 177 Comment 322 Lines 634 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 7 + Total Function LOC.....: 302 Total Function Pts LOC : 2.7 + Total Function eLOC....: 257 Total Function Pts eLOC: 2.3 + Total Function lLOC....: 169 Total Function Pts lLOC: 1.4 + Total Function Params .: 14 Total Function Return .: 7 + Total Cyclo Complexity : 43 Total Function Complex.: 64 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 106 Average Function LOC ..: 43.14 + Max Function eLOC .....: 95 Average Function eLOC .: 36.71 + Max Function lLOC .....: 62 Average Function lLOC .: 24.14 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 2.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 3.00 + Max Cyclomatic Complex.: 15 Avg Cyclomatic Complex.: 6.14 + Max Total Complexity ..: 18 Avg Total Complexity ..: 9.14 + ________________________________________________________________________ + End of File: ..\src\qf\qep_hsm.c + + + File: ..\src\qf\qep_msm.c + ________________________________________________________________________ + + Function: QMsm_ctor + Parameters: (QMsm * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 9 eLOC 7 lLOC 4 Comment 29 Lines 10 + + Function: QMsm_init_ + Parameters: (QMsm * const me, QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Logical and ( && ) : 2 + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 23 eLOC 22 lLOC 13 Comment 26 Lines 37 + + Function: QMsm_dispatch_ + Parameters: (QMsm * const me, QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 2 + Conditional if / else if: 12 + Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 + LOC 124 eLOC 107 lLOC 65 Comment 83 Lines 164 + + Function: QMsm_execTatbl_ + Parameters: (QMsm * const me, QMTranActTable const *tatbl) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 5 + Inlined if-else ( ? : ) : 1 + Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 + LOC 50 eLOC 42 lLOC 20 Comment 32 Lines 60 + + Function: QMsm_exitToTranSource_ + Parameters: (QMsm * const me, QMState const *s, QMState const *ts) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 2 + Complexity Param 3 Return 1 Cyclo Vg 4 Total 8 + LOC 17 eLOC 12 lLOC 6 Comment 20 Lines 23 + + Function: QMsm_enterHistory_ + Parameters: (QMsm * const me, QMState const *const hist) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 2 + Conditional if / else if: 3 + Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 + LOC 40 eLOC 33 lLOC 21 Comment 25 Lines 48 + + Function: QMsm_isInState + Parameters: (QMsm const * const me, QMState const * const state) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 1 + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 11 eLOC 8 lLOC 6 Comment 17 Lines 12 + + Function: QMsm_childStateObj_ + Parameters: (QMsm const * const me, QMState const * const parent) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 1 + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 19 eLOC 13 lLOC 9 Comment 22 Lines 23 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 321 eLOC 270 lLOC 149 Comment 313 Lines 595 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 8 + Total Function LOC.....: 293 Total Function Pts LOC : 2.5 + Total Function eLOC....: 244 Total Function Pts eLOC: 2.1 + Total Function lLOC....: 144 Total Function Pts lLOC: 1.2 + Total Function Params .: 17 Total Function Return .: 8 + Total Cyclo Complexity : 44 Total Function Complex.: 69 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 124 Average Function LOC ..: 36.63 + Max Function eLOC .....: 107 Average Function eLOC .: 30.50 + Max Function lLOC .....: 65 Average Function lLOC .: 18.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 2.13 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 3.13 + Max Cyclomatic Complex.: 15 Avg Cyclomatic Complex.: 5.50 + Max Total Complexity ..: 18 Avg Total Complexity ..: 8.63 + ________________________________________________________________________ + End of File: ..\src\qf\qep_msm.c + + + File: ..\src\qf\qf_act.c + ________________________________________________________________________ + + Function: QF_add_ + Parameters: (QActive * const a) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 10 eLOC 9 lLOC 5 Comment 20 Lines 17 + + Function: QF_remove_ + Parameters: (QActive * const a) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 11 eLOC 10 lLOC 6 Comment 21 Lines 17 + + Function: QF_bzero + Parameters: (void * const start, uint_fast16_t len) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 8 eLOC 6 lLOC 4 Comment 14 Lines 8 + + Function: QF_LOG2 + Parameters: (uint32_t x) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 25 eLOC 20 lLOC 12 Comment 1 Lines 26 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 71 eLOC 62 lLOC 28 Comment 119 Lines 194 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 54 Total Function Pts LOC : 0.6 + Total Function eLOC....: 45 Total Function Pts eLOC: 0.5 + Total Function lLOC....: 27 Total Function Pts lLOC: 0.2 + Total Function Params .: 5 Total Function Return .: 4 + Total Cyclo Complexity : 12 Total Function Complex.: 21 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 25 Average Function LOC ..: 13.50 + Max Function eLOC .....: 20 Average Function eLOC .: 11.25 + Max Function lLOC .....: 12 Average Function lLOC .: 6.75 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.25 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.25 + Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 3.00 + Max Total Complexity ..: 6 Avg Total Complexity ..: 5.25 + ________________________________________________________________________ + End of File: ..\src\qf\qf_act.c + + + File: ..\src\qf\qf_actq.c + ________________________________________________________________________ + + Function: QActive_post_ + Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con + st margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 9 + Logical or ( || ) : 3 + Logical and ( && ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 14 Total 18 + LOC 85 eLOC 68 lLOC 38 Comment 76 Lines 110 + + Function: QActive_postLIFO_ + Parameters: (QActive * const me, QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 41 eLOC 34 lLOC 23 Comment 41 Lines 56 + + Function: QActive_get_ + Parameters: (QActive * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 37 eLOC 33 lLOC 23 Comment 41 Lines 47 + + Function: QF_getQueueMin + Parameters: (uint_fast8_t const prio) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 6 Comment 19 Lines 13 + + Function: QTicker_ctor + Parameters: (QTicker * const me, uint8_t tickRate) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 12 eLOC 10 lLOC 4 Comment 6 Lines 14 + + Function: QTicker_init_ + Parameters: (QHsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 + + Function: QTicker_dispatch_ + Parameters: (QHsm * const me, QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 12 eLOC 10 lLOC 8 Comment 4 Lines 15 + + Function: QTicker_post_ + Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con + st margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 24 eLOC 21 lLOC 17 Comment 15 Lines 32 + + Function: QTicker_postLIFO_ + Parameters: (QActive * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 267 eLOC 229 lLOC 130 Comment 266 Lines 495 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 9 + Total Function LOC.....: 231 Total Function Pts LOC : 2.1 + Total Function eLOC....: 193 Total Function Pts eLOC: 1.8 + Total Function lLOC....: 125 Total Function Pts lLOC: 1.0 + Total Function Params .: 18 Total Function Return .: 9 + Total Cyclo Complexity : 31 Total Function Complex.: 58 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 85 Average Function LOC ..: 25.67 + Max Function eLOC .....: 68 Average Function eLOC .: 21.44 + Max Function lLOC .....: 38 Average Function lLOC .: 13.89 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 2.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 3.00 + Max Cyclomatic Complex.: 14 Avg Cyclomatic Complex.: 3.44 + Max Total Complexity ..: 18 Avg Total Complexity ..: 6.44 + ________________________________________________________________________ + End of File: ..\src\qf\qf_actq.c + + + File: ..\src\qf\qf_defer.c + ________________________________________________________________________ + + Function: QActive_defer + Parameters: (QActive const * const me, QEQueue * const eq, QEvt const * + const e) + Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 + LOC 13 eLOC 11 lLOC 8 Comment 31 Lines 16 + + Function: QActive_recall + Parameters: (QActive * const me, QEQueue * const eq) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 32 eLOC 28 lLOC 18 Comment 43 Lines 52 + + Function: QActive_flushDeferred + Parameters: (QActive const * const me, QEQueue * const eq) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 10 eLOC 7 lLOC 7 Comment 19 Lines 12 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 69 eLOC 60 lLOC 33 Comment 140 Lines 201 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 3 + Total Function LOC.....: 55 Total Function Pts LOC : 0.5 + Total Function eLOC....: 46 Total Function Pts eLOC: 0.5 + Total Function lLOC....: 33 Total Function Pts lLOC: 0.3 + Total Function Params .: 7 Total Function Return .: 3 + Total Cyclo Complexity : 6 Total Function Complex.: 16 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 32 Average Function LOC ..: 18.33 + Max Function eLOC .....: 28 Average Function eLOC .: 15.33 + Max Function lLOC .....: 18 Average Function lLOC .: 11.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 2.33 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 3.33 + Max Cyclomatic Complex.: 3 Avg Cyclomatic Complex.: 2.00 + Max Total Complexity ..: 6 Avg Total Complexity ..: 5.33 + ________________________________________________________________________ + End of File: ..\src\qf\qf_defer.c + + + File: ..\src\qf\qf_dyn.c + ________________________________________________________________________ + + Function: QEvt_ctor + Parameters: (QEvt * const me, enum_t const sig) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 6 + + Function: QF_poolInit + Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa + st16_t const evtSize) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical or ( || ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 8 eLOC 6 lLOC 4 Comment 38 Lines 12 + + Function: QF_newX_ + Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en + um_t const sig) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 2 + Inlined if-else ( ? : ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 + LOC 29 eLOC 23 lLOC 14 Comment 40 Lines 39 + + Function: QF_gc + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 26 eLOC 22 lLOC 13 Comment 36 Lines 40 + + Function: QF_newRef_ + Parameters: (QEvt const * const e, void const * const evtRef) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 15 eLOC 14 lLOC 8 Comment 21 Lines 23 + + Function: QF_deleteRef_ + Parameters: (void const * const evtRef) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 10 eLOC 9 lLOC 5 Comment 14 Lines 12 + + Function: QF_poolGetMaxBlockSize + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 5 Lines 3 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 114 eLOC 98 lLOC 50 Comment 216 Lines 331 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 7 + Total Function LOC.....: 96 Total Function Pts LOC : 0.9 + Total Function eLOC....: 80 Total Function Pts eLOC: 0.8 + Total Function lLOC....: 48 Total Function Pts lLOC: 0.4 + Total Function Params .: 12 Total Function Return .: 7 + Total Cyclo Complexity : 15 Total Function Complex.: 34 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 29 Average Function LOC ..: 13.71 + Max Function eLOC .....: 23 Average Function eLOC .: 11.43 + Max Function lLOC .....: 14 Average Function lLOC .: 6.86 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 1.71 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 2.71 + Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.14 + Max Total Complexity ..: 9 Avg Total Complexity ..: 4.86 + ________________________________________________________________________ + End of File: ..\src\qf\qf_dyn.c + + + File: ..\src\qf\qf_mem.c + ________________________________________________________________________ + + Function: QMPool_init + Parameters: (QMPool * const me, void * const poolSto, uint_fast32_t pool + Size, uint_fast16_t blockSize) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 2 + Logical and ( && ) : 2 + Complexity Param 4 Return 1 Cyclo Vg 5 Total 10 + LOC 31 eLOC 27 lLOC 22 Comment 59 Lines 46 + + Function: QMPool_put + Parameters: (QMPool * const me, void *b) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 15 eLOC 14 lLOC 9 Comment 31 Lines 22 + + Function: QMPool_get + Parameters: (QMPool * const me, uint_fast16_t const margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 42 eLOC 36 lLOC 23 Comment 56 Lines 65 + + Function: QF_getPoolMin + Parameters: (uint_fast8_t const poolId) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 6 Comment 14 Lines 14 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 110 eLOC 98 lLOC 60 Comment 207 Lines 304 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 98 Total Function Pts LOC : 0.9 + Total Function eLOC....: 86 Total Function Pts eLOC: 0.8 + Total Function lLOC....: 60 Total Function Pts lLOC: 0.5 + Total Function Params .: 9 Total Function Return .: 4 + Total Cyclo Complexity : 13 Total Function Complex.: 26 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 42 Average Function LOC ..: 24.50 + Max Function eLOC .....: 36 Average Function eLOC .: 21.50 + Max Function lLOC .....: 23 Average Function lLOC .: 15.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 4 Avg Function Parameters: 2.25 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 5 Avg Interface Complex. : 3.25 + Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 3.25 + Max Total Complexity ..: 10 Avg Total Complexity ..: 6.50 + ________________________________________________________________________ + End of File: ..\src\qf\qf_mem.c + + + File: ..\src\qf\qf_ps.c + ________________________________________________________________________ + + Function: QF_psInit + Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 7 eLOC 6 lLOC 3 Comment 33 Lines 12 + + Function: QF_publish_ + Parameters: (QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 36 eLOC 30 lLOC 21 Comment 50 Lines 63 + + Function: QActive_subscribe + Parameters: (QActive const * const me, enum_t const sig) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 4 + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 16 eLOC 15 lLOC 8 Comment 23 Lines 22 + + Function: QActive_unsubscribe + Parameters: (QActive const * const me, enum_t const sig) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 4 + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 16 eLOC 15 lLOC 8 Comment 32 Lines 25 + + Function: QActive_unsubscribeAll + Parameters: (QActive const * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 1 + Logical and ( && ) : 2 + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 24 eLOC 20 lLOC 11 Comment 27 Lines 29 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 116 eLOC 103 lLOC 53 Comment 213 Lines 333 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 5 + Total Function LOC.....: 99 Total Function Pts LOC : 0.9 + Total Function eLOC....: 86 Total Function Pts eLOC: 0.8 + Total Function lLOC....: 51 Total Function Pts lLOC: 0.4 + Total Function Params .: 8 Total Function Return .: 5 + Total Cyclo Complexity : 21 Total Function Complex.: 34 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 36 Average Function LOC ..: 19.80 + Max Function eLOC .....: 30 Average Function eLOC .: 17.20 + Max Function lLOC .....: 21 Average Function lLOC .: 10.20 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.60 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.60 + Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 4.20 + Max Total Complexity ..: 8 Avg Total Complexity ..: 6.80 + ________________________________________________________________________ + End of File: ..\src\qf\qf_ps.c + + + File: ..\src\qf\qf_qact.c + ________________________________________________________________________ + + Function: QActive_ctor + Parameters: (QActive * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 12 eLOC 10 lLOC 4 Comment 19 Lines 17 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 14 eLOC 12 lLOC 4 Comment 69 Lines 82 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 12 Total Function Pts LOC : 0.1 + Total Function eLOC....: 10 Total Function Pts eLOC: 0.1 + Total Function lLOC....: 4 Total Function Pts lLOC: 0.0 + Total Function Params .: 2 Total Function Return .: 1 + Total Cyclo Complexity : 1 Total Function Complex.: 4 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 12 Average Function LOC ..: 12.00 + Max Function eLOC .....: 10 Average Function eLOC .: 10.00 + Max Function lLOC .....: 4 Average Function lLOC .: 4.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 2.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 3.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 4 Avg Total Complexity ..: 4.00 + ________________________________________________________________________ + End of File: ..\src\qf\qf_qact.c + + + File: ..\src\qf\qf_qeq.c + ________________________________________________________________________ + + Function: QEQueue_init + Parameters: (QEQueue * const me, QEvt const *qSto[], uint_fast16_t const + qLen) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 11 eLOC 8 lLOC 7 Comment 21 Lines 11 + + Function: QEQueue_post + Parameters: (QEQueue * const me, QEvt const * const e, uint_fast16_t con + st margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 5 + Logical or ( || ) : 1 + Logical and ( && ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 8 Total 12 + LOC 55 eLOC 45 lLOC 30 Comment 56 Lines 74 + + Function: QEQueue_postLIFO + Parameters: (QEQueue * const me, QEvt const * const e) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 34 eLOC 29 lLOC 21 Comment 44 Lines 44 + + Function: QEQueue_get + Parameters: (QEQueue * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 37 eLOC 32 lLOC 21 Comment 38 Lines 47 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 151 eLOC 128 lLOC 79 Comment 210 Lines 325 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 137 Total Function Pts LOC : 1.2 + Total Function eLOC....: 114 Total Function Pts eLOC: 1.0 + Total Function lLOC....: 79 Total Function Pts lLOC: 0.6 + Total Function Params .: 9 Total Function Return .: 4 + Total Cyclo Complexity : 19 Total Function Complex.: 32 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 55 Average Function LOC ..: 34.25 + Max Function eLOC .....: 45 Average Function eLOC .: 28.50 + Max Function lLOC .....: 30 Average Function lLOC .: 19.75 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 2.25 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 3.25 + Max Cyclomatic Complex.: 8 Avg Cyclomatic Complex.: 4.75 + Max Total Complexity ..: 12 Avg Total Complexity ..: 8.00 + ________________________________________________________________________ + End of File: ..\src\qf\qf_qeq.c + + + File: ..\src\qf\qf_qmact.c + ________________________________________________________________________ + + Function: QMActive_ctor + Parameters: (QMActive * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 12 eLOC 10 lLOC 4 Comment 28 Lines 28 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 15 eLOC 13 lLOC 4 Comment 79 Lines 95 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 1 + Total Function LOC.....: 12 Total Function Pts LOC : 0.1 + Total Function eLOC....: 10 Total Function Pts eLOC: 0.1 + Total Function lLOC....: 4 Total Function Pts lLOC: 0.0 + Total Function Params .: 2 Total Function Return .: 1 + Total Cyclo Complexity : 1 Total Function Complex.: 4 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 12 Average Function LOC ..: 12.00 + Max Function eLOC .....: 10 Average Function eLOC .: 10.00 + Max Function lLOC .....: 4 Average Function lLOC .: 4.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 2.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 3.00 + Max Cyclomatic Complex.: 1 Avg Cyclomatic Complex.: 1.00 + Max Total Complexity ..: 4 Avg Total Complexity ..: 4.00 + ________________________________________________________________________ + End of File: ..\src\qf\qf_qmact.c + + + File: ..\src\qf\qf_time.c + ________________________________________________________________________ + + Function: QF_tickX_ + Parameters: (uint_fast8_t const tickRate) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 5 + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 66 eLOC 54 lLOC 36 Comment 56 Lines 94 + + Function: QF_noTimeEvtsActiveX + Parameters: (uint_fast8_t const tickRate) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 13 eLOC 9 lLOC 5 Comment 14 Lines 14 + + Function: QTimeEvt_ctorX + Parameters: (QTimeEvt * const me, QActive * const act, enum_t const sig, + uint_fast8_t tickRate) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 1 + Complexity Param 4 Return 1 Cyclo Vg 2 Total 7 + LOC 11 eLOC 9 lLOC 8 Comment 32 Lines 31 + + Function: QTimeEvt_armX + Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks, QTimeEvtCtr + const interval) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 4 + Complexity Param 3 Return 1 Cyclo Vg 6 Total 10 + LOC 28 eLOC 25 lLOC 16 Comment 51 Lines 50 + + Function: QTimeEvt_disarm + Parameters: (QTimeEvt * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 29 eLOC 26 lLOC 17 Comment 32 Lines 37 + + Function: QTimeEvt_rearm + Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Inlined if-else ( ? : ) : 1 + Logical and ( && ) : 3 + Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 + LOC 34 eLOC 30 lLOC 18 Comment 47 Lines 60 + + Function: QTimeEvt_ctr + Parameters: (QTimeEvt const * const me) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 8 eLOC 7 lLOC 5 Comment 16 Lines 10 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 209 eLOC 180 lLOC 106 Comment 308 Lines 514 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 7 + Total Function LOC.....: 189 Total Function Pts LOC : 1.6 + Total Function eLOC....: 160 Total Function Pts eLOC: 1.4 + Total Function lLOC....: 105 Total Function Pts lLOC: 0.8 + Total Function Params .: 13 Total Function Return .: 7 + Total Cyclo Complexity : 28 Total Function Complex.: 48 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 66 Average Function LOC ..: 27.00 + Max Function eLOC .....: 54 Average Function eLOC .: 22.86 + Max Function lLOC .....: 36 Average Function lLOC .: 15.00 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 4 Avg Function Parameters: 1.86 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 5 Avg Interface Complex. : 2.86 + Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 4.00 + Max Total Complexity ..: 10 Avg Total Complexity ..: 6.86 + ________________________________________________________________________ + End of File: ..\src\qf\qf_time.c + + + File: ..\src\qv\qv.c + ________________________________________________________________________ + + Function: QF_init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 11 eLOC 10 lLOC 7 Comment 12 Lines 13 + + Function: QF_stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 + + Function: QF_run + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Conditional if / else if: 3 + Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 + LOC 48 eLOC 42 lLOC 24 Comment 37 Lines 75 + + Function: QActive_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 2 + Complexity Param 7 Return 1 Cyclo Vg 3 Total 11 + LOC 11 eLOC 9 lLOC 7 Comment 31 Lines 17 + + Function: QActive_stop + Parameters: (QActive * const me) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 6 lLOC 4 Comment 13 Lines 10 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 98 eLOC 87 lLOC 44 Comment 159 Lines 252 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 5 + Total Function LOC.....: 80 Total Function Pts LOC : 0.8 + Total Function eLOC....: 69 Total Function Pts eLOC: 0.7 + Total Function lLOC....: 43 Total Function Pts lLOC: 0.3 + Total Function Params .: 8 Total Function Return .: 5 + Total Cyclo Complexity : 11 Total Function Complex.: 24 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 48 Average Function LOC ..: 16.00 + Max Function eLOC .....: 42 Average Function eLOC .: 13.80 + Max Function lLOC .....: 24 Average Function lLOC .: 8.60 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 7 Avg Function Parameters: 1.60 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 8 Avg Interface Complex. : 2.60 + Max Cyclomatic Complex.: 5 Avg Cyclomatic Complex.: 2.20 + Max Total Complexity ..: 11 Avg Total Complexity ..: 4.80 + ________________________________________________________________________ + End of File: ..\src\qv\qv.c + + + File: ..\src\qk\qk.c + ________________________________________________________________________ + + Function: QF_init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 13 eLOC 12 lLOC 9 Comment 14 Lines 16 + + Function: QF_stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 + + Function: initial_events + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QF_run + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 13 Lines 14 + + Function: QActive_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 3 + Complexity Param 7 Return 1 Cyclo Vg 5 Total 13 + LOC 18 eLOC 15 lLOC 10 Comment 34 Lines 29 + + Function: QActive_stop + Parameters: (QActive * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 + + Function: QK_schedLock + Parameters: (uint_fast8_t ceiling) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 22 eLOC 19 lLOC 12 Comment 32 Lines 33 + + Function: QK_schedUnlock + Parameters: (QSchedStatus stat) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 21 eLOC 18 lLOC 10 Comment 28 Lines 33 + + Function: QK_sched_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 + LOC 15 eLOC 11 lLOC 7 Comment 21 Lines 19 + + Function: QK_activate_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 5 + Inlined if-else ( ? : ) : 1 + Logical or ( || ) : 3 + Complexity Param 0 Return 1 Cyclo Vg 11 Total 12 + LOC 69 eLOC 61 lLOC 32 Comment 53 Lines 101 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 209 eLOC 180 lLOC 98 Comment 279 Lines 475 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 10 + Total Function LOC.....: 190 Total Function Pts LOC : 1.6 + Total Function eLOC....: 161 Total Function Pts eLOC: 1.4 + Total Function lLOC....: 96 Total Function Pts lLOC: 0.8 + Total Function Params .: 10 Total Function Return .: 10 + Total Cyclo Complexity : 33 Total Function Complex.: 53 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 69 Average Function LOC ..: 19.00 + Max Function eLOC .....: 61 Average Function eLOC .: 16.10 + Max Function lLOC .....: 32 Average Function lLOC .: 9.60 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 7 Avg Function Parameters: 1.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 8 Avg Interface Complex. : 2.00 + Max Cyclomatic Complex.: 11 Avg Cyclomatic Complex.: 3.30 + Max Total Complexity ..: 13 Avg Total Complexity ..: 5.30 + ________________________________________________________________________ + End of File: ..\src\qk\qk.c + + + File: ..\src\qxk\qxk.c + ________________________________________________________________________ + + Function: QF_init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 17 eLOC 16 lLOC 13 Comment 17 Lines 23 + + Function: QF_stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 + + Function: initial_events + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QF_run + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops for / foreach : 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 + + Function: QActive_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 4 + Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 + LOC 20 eLOC 17 lLOC 11 Comment 38 Lines 31 + + Function: QActive_stop + Parameters: (QActive * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 + + Function: QXK_schedLock + Parameters: (uint_fast8_t ceiling) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Inlined if-else ( ? : ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 25 eLOC 22 lLOC 12 Comment 40 Lines 35 + + Function: QXK_schedUnlock + Parameters: (QSchedStatus stat) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 21 eLOC 18 lLOC 10 Comment 33 Lines 33 + + Function: QXK_sched_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 5 + Logical or ( || ) : 1 + Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 + LOC 52 eLOC 42 lLOC 23 Comment 36 Lines 68 + + Function: QXK_activate_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Loops while / do : 1 + Conditional if / else if: 6 + Inlined if-else ( ? : ) : 1 + Logical or ( || ) : 4 + Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 + LOC 88 eLOC 78 lLOC 42 Comment 64 Lines 130 + + Function: QXK_current + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 13 eLOC 11 lLOC 8 Comment 4 Lines 20 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 288 eLOC 249 lLOC 138 Comment 329 Lines 602 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 11 + Total Function LOC.....: 268 Total Function Pts LOC : 2.3 + Total Function eLOC....: 229 Total Function Pts eLOC: 1.9 + Total Function lLOC....: 135 Total Function Pts lLOC: 1.1 + Total Function Params .: 10 Total Function Return .: 11 + Total Cyclo Complexity : 43 Total Function Complex.: 64 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 88 Average Function LOC ..: 24.36 + Max Function eLOC .....: 78 Average Function eLOC .: 20.82 + Max Function lLOC .....: 42 Average Function lLOC .: 12.27 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 7 Avg Function Parameters: 0.91 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 8 Avg Interface Complex. : 1.91 + Max Cyclomatic Complex.: 13 Avg Cyclomatic Complex.: 3.91 + Max Total Complexity ..: 14 Avg Total Complexity ..: 5.82 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk.c + + + File: ..\src\qxk\qxk_mutex.c + ________________________________________________________________________ + + Function: QXMutex_init + Parameters: (QXMutex * const me, uint_fast8_t ceiling) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical or ( || ) : 1 + Logical and ( && ) : 1 + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 16 eLOC 14 lLOC 8 Comment 33 Lines 25 + + Function: QXMutex_lock + Parameters: (QXMutex * const me, uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Logical or ( || ) : 1 + Logical and ( && ) : 4 + Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 + LOC 52 eLOC 45 lLOC 29 Comment 53 Lines 89 + + Function: QXMutex_tryLock + Parameters: (QXMutex * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 5 + Logical or ( || ) : 1 + Logical and ( && ) : 5 + Complexity Param 1 Return 1 Cyclo Vg 12 Total 14 + LOC 44 eLOC 37 lLOC 20 Comment 46 Lines 69 + + Function: QXMutex_unlock + Parameters: (QXMutex * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 7 + Logical or ( || ) : 2 + Logical and ( && ) : 8 + Complexity Param 1 Return 1 Cyclo Vg 18 Total 20 + LOC 67 eLOC 57 lLOC 29 Comment 66 Lines 114 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 194 eLOC 168 lLOC 86 Comment 248 Lines 449 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 179 Total Function Pts LOC : 1.5 + Total Function eLOC....: 153 Total Function Pts eLOC: 1.3 + Total Function lLOC....: 86 Total Function Pts lLOC: 0.7 + Total Function Params .: 6 Total Function Return .: 4 + Total Cyclo Complexity : 44 Total Function Complex.: 54 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 67 Average Function LOC ..: 44.75 + Max Function eLOC .....: 57 Average Function eLOC .: 38.25 + Max Function lLOC .....: 29 Average Function lLOC .: 21.50 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 2 Avg Function Parameters: 1.50 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 3 Avg Interface Complex. : 2.50 + Max Cyclomatic Complex.: 18 Avg Cyclomatic Complex.: 11.00 + Max Total Complexity ..: 20 Avg Total Complexity ..: 13.50 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk_mutex.c + + + File: ..\src\qxk\qxk_sema.c + ________________________________________________________________________ + + Function: QXSemaphore_init + Parameters: (QXSemaphore * const me, uint_fast16_t count, uint_fast16_t + max_count) + Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 + LOC 6 eLOC 4 lLOC 4 Comment 22 Lines 7 + + Function: QXSemaphore_wait + Parameters: (QXSemaphore * const me, uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 4 + Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 + LOC 29 eLOC 26 lLOC 18 Comment 44 Lines 44 + + Function: QXSemaphore_tryWait + Parameters: (QXSemaphore * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 15 eLOC 12 lLOC 8 Comment 18 Lines 20 + + Function: QXSemaphore_signal + Parameters: (QXSemaphore * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 3 + Logical and ( && ) : 3 + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 32 eLOC 26 lLOC 16 Comment 35 Lines 48 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 97 eLOC 83 lLOC 46 Comment 168 Lines 262 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 4 + Total Function LOC.....: 82 Total Function Pts LOC : 0.8 + Total Function eLOC....: 68 Total Function Pts eLOC: 0.6 + Total Function lLOC....: 46 Total Function Pts lLOC: 0.4 + Total Function Params .: 7 Total Function Return .: 4 + Total Cyclo Complexity : 16 Total Function Complex.: 27 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 32 Average Function LOC ..: 20.50 + Max Function eLOC .....: 26 Average Function eLOC .: 17.00 + Max Function lLOC .....: 18 Average Function lLOC .: 11.50 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 3 Avg Function Parameters: 1.75 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 4 Avg Interface Complex. : 2.75 + Max Cyclomatic Complex.: 7 Avg Cyclomatic Complex.: 4.00 + Max Total Complexity ..: 9 Avg Total Complexity ..: 6.75 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk_sema.c + + + File: ..\src\qxk\qxk_xthr.c + ________________________________________________________________________ + + Function: QXThread_ctor + Parameters: (QXThread * const me, QXThreadHandler handler, uint_fast8_t + tickRate) + Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 + LOC 13 eLOC 10 lLOC 5 Comment 27 Lines 16 + + Function: QXThread_init_ + Parameters: (QMsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 2 Lines 5 + + Function: QXThread_dispatch_ + Parameters: (QMsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 + + Function: QXThread_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 4 + Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 + LOC 21 eLOC 18 lLOC 12 Comment 42 Lines 43 + + Function: QXThread_post_ + Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con + st margin) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 9 + Logical or ( || ) : 1 + Logical and ( && ) : 1 + Complexity Param 3 Return 1 Cyclo Vg 12 Total 16 + LOC 80 eLOC 65 lLOC 45 Comment 83 Lines 115 + + Function: QXThread_postLIFO_ + Parameters: (QActive * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 11 Lines 5 + + Function: QXThread_queueGet + Parameters: (uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 4 + Logical and ( && ) : 3 + Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 + LOC 61 eLOC 54 lLOC 35 Comment 55 Lines 87 + + Function: QXThread_block_ + Parameters: (QXThread const * const me) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 7 + + Function: QXThread_unblock_ + Parameters: (QXThread const * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Logical and ( && ) : 1 + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 8 eLOC 5 lLOC 2 Comment 10 Lines 8 + + Function: QXThread_teArm_ + Parameters: (QXThread * const me, QSignal sig, uint_fast16_t const nTick + s) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 2 + Complexity Param 3 Return 1 Cyclo Vg 3 Total 7 + LOC 14 eLOC 10 lLOC 8 Comment 23 Lines 31 + + Function: QXThread_teDisarm_ + Parameters: (QXThread * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 8 lLOC 5 Comment 11 Lines 13 + + Function: QXThread_delay + Parameters: (uint_fast16_t const nTicks) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 3 + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 21 eLOC 20 lLOC 14 Comment 19 Lines 37 + + Function: QXThread_delayCancel + Parameters: (QXThread * const me) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Conditional if / else if: 1 + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 + + Function: QXK_threadRet_ + Parameters: (void) + Cyclomatic Complexity Vg Detail + Function Base : 1 + Logical and ( && ) : 3 + Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 + LOC 16 eLOC 15 lLOC 10 Comment 22 Lines 27 + + ------------------------------------------------------------------------ + + ~~ Total File Summary ~~ + + LOC 322 eLOC 275 lLOC 161 Comment 367 Lines 682 + ------------------------------------------------------------------------ + + ~~ File Functional Summary ~~ + + File Function Count....: 14 + Total Function LOC.....: 279 Total Function Pts LOC : 2.5 + Total Function eLOC....: 232 Total Function Pts eLOC: 2.1 + Total Function lLOC....: 155 Total Function Pts lLOC: 1.3 + Total Function Params .: 28 Total Function Return .: 14 + Total Cyclo Complexity : 49 Total Function Complex.: 91 + ------ ----- ----- ------ ------ ----- + Max Function LOC ......: 80 Average Function LOC ..: 19.93 + Max Function eLOC .....: 65 Average Function eLOC .: 16.57 + Max Function lLOC .....: 45 Average Function lLOC .: 11.07 + ------ ----- ----- ------ ------ ----- + Max Function Parameters: 7 Avg Function Parameters: 2.00 + Max Function Returns ..: 1 Avg Function Returns ..: 1.00 + Max Interface Complex. : 8 Avg Interface Complex. : 3.00 + Max Cyclomatic Complex.: 12 Avg Cyclomatic Complex.: 3.50 + Max Total Complexity ..: 16 Avg Total Complexity ..: 6.50 + ________________________________________________________________________ + End of File: ..\src\qxk\qxk_xthr.c + + + ------------------------------------------------------------------------ + + ~~ Project Analysis For 35 Files ~~ + + ------------------------------------------------------------------------ + + ~~ Total Project Summary ~~ + + LOC 4588 eLOC 4148 lLOC 1874 Comment 7316 Lines 12118 + Average per File, metric/35 files + LOC 131 eLOC 118 lLOC 53 Comment 209 Lines 346 + + ------------------------------------------------------------------------ + + ~~ Project Functional Metrics ~~ + + Function: QF_LOG2 + Parameters: (uint32_t x) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 25 eLOC 20 lLOC 12 Comment 7 Lines 26 + + Function: QHsm_ctor + Parameters: (QHsm * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 9 eLOC 7 lLOC 4 Comment 21 Lines 9 + + Function: QHsm_init_ + Parameters: (QHsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 + LOC 50 eLOC 47 lLOC 31 Comment 35 Lines 70 + + Function: QHsm_top + Parameters: (void const * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 18 Lines 5 + + Function: QHsm_dispatch_ + Parameters: (QHsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 13 Total 16 + LOC 106 eLOC 95 lLOC 62 Comment 67 Lines 147 + + Function: QHsm_tran_ + Parameters: (QHsm * const me, QStateHandler path[QHSM_MAX_NEST_DEPTH_]) + Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 + LOC 97 eLOC 76 lLOC 48 Comment 63 Lines 134 + + Function: QHsm_isIn + Parameters: (QHsm * const me, QStateHandler const state) + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 16 eLOC 13 lLOC 9 Comment 22 Lines 21 + + Function: QHsm_childState_ + Parameters: (QHsm * const me, QStateHandler const parent) + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 19 eLOC 15 lLOC 12 Comment 33 Lines 25 + + Function: QMsm_ctor + Parameters: (QMsm * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 9 eLOC 7 lLOC 4 Comment 29 Lines 10 + + Function: QMsm_init_ + Parameters: (QMsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 23 eLOC 22 lLOC 13 Comment 26 Lines 37 + + Function: QMsm_dispatch_ + Parameters: (QMsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 15 Total 18 + LOC 124 eLOC 107 lLOC 65 Comment 83 Lines 164 + + Function: QMsm_execTatbl_ + Parameters: (QMsm * const me, QMTranActTable const *tatbl) + Complexity Param 2 Return 1 Cyclo Vg 8 Total 11 + LOC 50 eLOC 42 lLOC 20 Comment 32 Lines 60 + + Function: QMsm_exitToTranSource_ + Parameters: (QMsm * const me, QMState const *s, QMState const *ts) + Complexity Param 3 Return 1 Cyclo Vg 4 Total 8 + LOC 17 eLOC 12 lLOC 6 Comment 20 Lines 23 + + Function: QMsm_enterHistory_ + Parameters: (QMsm * const me, QMState const *const hist) + Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 + LOC 40 eLOC 33 lLOC 21 Comment 25 Lines 48 + + Function: QMsm_isInState + Parameters: (QMsm const * const me, QMState const * const state) + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 11 eLOC 8 lLOC 6 Comment 17 Lines 12 + + Function: QMsm_childStateObj_ + Parameters: (QMsm const * const me, QMState const * const parent) + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 19 eLOC 13 lLOC 9 Comment 22 Lines 23 + + Function: QF_add_ + Parameters: (QActive * const a) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 10 eLOC 9 lLOC 5 Comment 20 Lines 17 + + Function: QF_remove_ + Parameters: (QActive * const a) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 11 eLOC 10 lLOC 6 Comment 21 Lines 17 + + Function: QF_bzero + Parameters: (void * const start, uint_fast16_t len) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 8 eLOC 6 lLOC 4 Comment 14 Lines 8 + + Function: QF_LOG2 + Parameters: (uint32_t x) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 25 eLOC 20 lLOC 12 Comment 1 Lines 26 + + Function: QActive_post_ + Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con + st margin) + Complexity Param 3 Return 1 Cyclo Vg 14 Total 18 + LOC 85 eLOC 68 lLOC 38 Comment 76 Lines 110 + + Function: QActive_postLIFO_ + Parameters: (QActive * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 41 eLOC 34 lLOC 23 Comment 41 Lines 56 + + Function: QActive_get_ + Parameters: (QActive * const me) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 37 eLOC 33 lLOC 23 Comment 41 Lines 47 + + Function: QF_getQueueMin + Parameters: (uint_fast8_t const prio) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 6 Comment 19 Lines 13 + + Function: QTicker_ctor + Parameters: (QTicker * const me, uint8_t tickRate) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 12 eLOC 10 lLOC 4 Comment 6 Lines 14 + + Function: QTicker_init_ + Parameters: (QHsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 + + Function: QTicker_dispatch_ + Parameters: (QHsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 12 eLOC 10 lLOC 8 Comment 4 Lines 15 + + Function: QTicker_post_ + Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con + st margin) + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 24 eLOC 21 lLOC 17 Comment 15 Lines 32 + + Function: QTicker_postLIFO_ + Parameters: (QActive * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 + + Function: QActive_defer + Parameters: (QActive const * const me, QEQueue * const eq, QEvt const * + const e) + Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 + LOC 13 eLOC 11 lLOC 8 Comment 31 Lines 16 + + Function: QActive_recall + Parameters: (QActive * const me, QEQueue * const eq) + Complexity Param 2 Return 1 Cyclo Vg 3 Total 6 + LOC 32 eLOC 28 lLOC 18 Comment 43 Lines 52 + + Function: QActive_flushDeferred + Parameters: (QActive const * const me, QEQueue * const eq) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 10 eLOC 7 lLOC 7 Comment 19 Lines 12 + + Function: QEvt_ctor + Parameters: (QEvt * const me, enum_t const sig) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 6 + + Function: QF_poolInit + Parameters: (void * const poolSto, uint_fast32_t const poolSize, uint_fa + st16_t const evtSize) + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 8 eLOC 6 lLOC 4 Comment 38 Lines 12 + + Function: QF_newX_ + Parameters: (uint_fast16_t const evtSize, uint_fast16_t const margin, en + um_t const sig) + Complexity Param 3 Return 1 Cyclo Vg 5 Total 9 + LOC 29 eLOC 23 lLOC 14 Comment 40 Lines 39 + + Function: QF_gc + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 26 eLOC 22 lLOC 13 Comment 36 Lines 40 + + Function: QF_newRef_ + Parameters: (QEvt const * const e, void const * const evtRef) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 15 eLOC 14 lLOC 8 Comment 21 Lines 23 + + Function: QF_deleteRef_ + Parameters: (void const * const evtRef) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 10 eLOC 9 lLOC 5 Comment 14 Lines 12 + + Function: QF_poolGetMaxBlockSize + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 5 Lines 3 + + Function: QMPool_init + Parameters: (QMPool * const me, void * const poolSto, uint_fast32_t pool + Size, uint_fast16_t blockSize) + Complexity Param 4 Return 1 Cyclo Vg 5 Total 10 + LOC 31 eLOC 27 lLOC 22 Comment 59 Lines 46 + + Function: QMPool_put + Parameters: (QMPool * const me, void *b) + Complexity Param 2 Return 1 Cyclo Vg 2 Total 5 + LOC 15 eLOC 14 lLOC 9 Comment 31 Lines 22 + + Function: QMPool_get + Parameters: (QMPool * const me, uint_fast16_t const margin) + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 42 eLOC 36 lLOC 23 Comment 56 Lines 65 + + Function: QF_getPoolMin + Parameters: (uint_fast8_t const poolId) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 10 eLOC 9 lLOC 6 Comment 14 Lines 14 + + Function: QF_psInit + Parameters: (QSubscrList * const subscrSto, enum_t const maxSignal) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 7 eLOC 6 lLOC 3 Comment 33 Lines 12 + + Function: QF_publish_ + Parameters: (QEvt const * const e) + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 36 eLOC 30 lLOC 21 Comment 50 Lines 63 + + Function: QActive_subscribe + Parameters: (QActive const * const me, enum_t const sig) + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 16 eLOC 15 lLOC 8 Comment 23 Lines 22 + + Function: QActive_unsubscribe + Parameters: (QActive const * const me, enum_t const sig) + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 16 eLOC 15 lLOC 8 Comment 32 Lines 25 + + Function: QActive_unsubscribeAll + Parameters: (QActive const * const me) + Complexity Param 1 Return 1 Cyclo Vg 5 Total 7 + LOC 24 eLOC 20 lLOC 11 Comment 27 Lines 29 + + Function: QActive_ctor + Parameters: (QActive * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 12 eLOC 10 lLOC 4 Comment 19 Lines 17 + + Function: QEQueue_init + Parameters: (QEQueue * const me, QEvt const *qSto[], uint_fast16_t const + qLen) + Complexity Param 3 Return 1 Cyclo Vg 2 Total 6 + LOC 11 eLOC 8 lLOC 7 Comment 21 Lines 11 + + Function: QEQueue_post + Parameters: (QEQueue * const me, QEvt const * const e, uint_fast16_t con + st margin) + Complexity Param 3 Return 1 Cyclo Vg 8 Total 12 + LOC 55 eLOC 45 lLOC 30 Comment 56 Lines 74 + + Function: QEQueue_postLIFO + Parameters: (QEQueue * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 5 Total 8 + LOC 34 eLOC 29 lLOC 21 Comment 44 Lines 44 + + Function: QEQueue_get + Parameters: (QEQueue * const me) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 37 eLOC 32 lLOC 21 Comment 38 Lines 47 + + Function: QMActive_ctor + Parameters: (QMActive * const me, QStateHandler initial) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 12 eLOC 10 lLOC 4 Comment 28 Lines 28 + + Function: QF_tickX_ + Parameters: (uint_fast8_t const tickRate) + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 66 eLOC 54 lLOC 36 Comment 56 Lines 94 + + Function: QF_noTimeEvtsActiveX + Parameters: (uint_fast8_t const tickRate) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 13 eLOC 9 lLOC 5 Comment 14 Lines 14 + + Function: QTimeEvt_ctorX + Parameters: (QTimeEvt * const me, QActive * const act, enum_t const sig, + uint_fast8_t tickRate) + Complexity Param 4 Return 1 Cyclo Vg 2 Total 7 + LOC 11 eLOC 9 lLOC 8 Comment 32 Lines 31 + + Function: QTimeEvt_armX + Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks, QTimeEvtCtr + const interval) + Complexity Param 3 Return 1 Cyclo Vg 6 Total 10 + LOC 28 eLOC 25 lLOC 16 Comment 51 Lines 50 + + Function: QTimeEvt_disarm + Parameters: (QTimeEvt * const me) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 29 eLOC 26 lLOC 17 Comment 32 Lines 37 + + Function: QTimeEvt_rearm + Parameters: (QTimeEvt * const me, QTimeEvtCtr const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 7 Total 10 + LOC 34 eLOC 30 lLOC 18 Comment 47 Lines 60 + + Function: QTimeEvt_ctr + Parameters: (QTimeEvt const * const me) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 8 eLOC 7 lLOC 5 Comment 16 Lines 10 + + Function: QF_init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 11 eLOC 10 lLOC 7 Comment 12 Lines 13 + + Function: QF_stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 + + Function: QF_run + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 5 Total 6 + LOC 48 eLOC 42 lLOC 24 Comment 37 Lines 75 + + Function: QActive_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Complexity Param 7 Return 1 Cyclo Vg 3 Total 11 + LOC 11 eLOC 9 lLOC 7 Comment 31 Lines 17 + + Function: QActive_stop + Parameters: (QActive * const me) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 7 eLOC 6 lLOC 4 Comment 13 Lines 10 + + Function: QF_init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 13 eLOC 12 lLOC 9 Comment 14 Lines 16 + + Function: QF_stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 + + Function: initial_events + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QF_run + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 13 Lines 14 + + Function: QActive_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Complexity Param 7 Return 1 Cyclo Vg 5 Total 13 + LOC 18 eLOC 15 lLOC 10 Comment 34 Lines 29 + + Function: QActive_stop + Parameters: (QActive * const me) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 + + Function: QK_schedLock + Parameters: (uint_fast8_t ceiling) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 22 eLOC 19 lLOC 12 Comment 32 Lines 33 + + Function: QK_schedUnlock + Parameters: (QSchedStatus stat) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 21 eLOC 18 lLOC 10 Comment 28 Lines 33 + + Function: QK_sched_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 + LOC 15 eLOC 11 lLOC 7 Comment 21 Lines 19 + + Function: QK_activate_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 11 Total 12 + LOC 69 eLOC 61 lLOC 32 Comment 53 Lines 101 + + Function: QF_init + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 17 eLOC 16 lLOC 13 Comment 17 Lines 23 + + Function: QF_stop + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 + LOC 3 eLOC 2 lLOC 1 Comment 14 Lines 4 + + Function: initial_events + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 6 eLOC 4 lLOC 2 Comment 6 Lines 8 + + Function: QF_run + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 12 eLOC 10 lLOC 7 Comment 12 Lines 15 + + Function: QActive_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 + LOC 20 eLOC 17 lLOC 11 Comment 38 Lines 31 + + Function: QActive_stop + Parameters: (QActive * const me) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 9 lLOC 6 Comment 13 Lines 15 + + Function: QXK_schedLock + Parameters: (uint_fast8_t ceiling) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 25 eLOC 22 lLOC 12 Comment 40 Lines 35 + + Function: QXK_schedUnlock + Parameters: (QSchedStatus stat) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 21 eLOC 18 lLOC 10 Comment 33 Lines 33 + + Function: QXK_sched_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 7 Total 8 + LOC 52 eLOC 42 lLOC 23 Comment 36 Lines 68 + + Function: QXK_activate_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 13 Total 14 + LOC 88 eLOC 78 lLOC 42 Comment 64 Lines 130 + + Function: QXK_current + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 + LOC 13 eLOC 11 lLOC 8 Comment 4 Lines 20 + + Function: QXMutex_init + Parameters: (QXMutex * const me, uint_fast8_t ceiling) + Complexity Param 2 Return 1 Cyclo Vg 4 Total 7 + LOC 16 eLOC 14 lLOC 8 Comment 33 Lines 25 + + Function: QXMutex_lock + Parameters: (QXMutex * const me, uint_fast16_t const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 10 Total 13 + LOC 52 eLOC 45 lLOC 29 Comment 53 Lines 89 + + Function: QXMutex_tryLock + Parameters: (QXMutex * const me) + Complexity Param 1 Return 1 Cyclo Vg 12 Total 14 + LOC 44 eLOC 37 lLOC 20 Comment 46 Lines 69 + + Function: QXMutex_unlock + Parameters: (QXMutex * const me) + Complexity Param 1 Return 1 Cyclo Vg 18 Total 20 + LOC 67 eLOC 57 lLOC 29 Comment 66 Lines 114 + + Function: QXSemaphore_init + Parameters: (QXSemaphore * const me, uint_fast16_t count, uint_fast16_t + max_count) + Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 + LOC 6 eLOC 4 lLOC 4 Comment 22 Lines 7 + + Function: QXSemaphore_wait + Parameters: (QXSemaphore * const me, uint_fast16_t const nTicks) + Complexity Param 2 Return 1 Cyclo Vg 6 Total 9 + LOC 29 eLOC 26 lLOC 18 Comment 44 Lines 44 + + Function: QXSemaphore_tryWait + Parameters: (QXSemaphore * const me) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 15 eLOC 12 lLOC 8 Comment 18 Lines 20 + + Function: QXSemaphore_signal + Parameters: (QXSemaphore * const me) + Complexity Param 1 Return 1 Cyclo Vg 7 Total 9 + LOC 32 eLOC 26 lLOC 16 Comment 35 Lines 48 + + Function: QXThread_ctor + Parameters: (QXThread * const me, QXThreadHandler handler, uint_fast8_t + tickRate) + Complexity Param 3 Return 1 Cyclo Vg 1 Total 5 + LOC 13 eLOC 10 lLOC 5 Comment 27 Lines 16 + + Function: QXThread_init_ + Parameters: (QMsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 2 Lines 5 + + Function: QXThread_dispatch_ + Parameters: (QMsm * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 1 Lines 5 + + Function: QXThread_start_ + Parameters: (QActive * const me, uint_fast8_t prio, QEvt const *qSto[], + uint_fast16_t qLen, void *stkSto, uint_fast16_t stkSize, QEv + t const *ie) + Complexity Param 7 Return 1 Cyclo Vg 6 Total 14 + LOC 21 eLOC 18 lLOC 12 Comment 42 Lines 43 + + Function: QXThread_post_ + Parameters: (QActive * const me, QEvt const * const e, uint_fast16_t con + st margin) + Complexity Param 3 Return 1 Cyclo Vg 12 Total 16 + LOC 80 eLOC 65 lLOC 45 Comment 83 Lines 115 + + Function: QXThread_postLIFO_ + Parameters: (QActive * const me, QEvt const * const e) + Complexity Param 2 Return 1 Cyclo Vg 1 Total 4 + LOC 5 eLOC 4 lLOC 3 Comment 11 Lines 5 + + Function: QXThread_queueGet + Parameters: (uint_fast16_t const nTicks) + Complexity Param 1 Return 1 Cyclo Vg 8 Total 10 + LOC 61 eLOC 54 lLOC 35 Comment 55 Lines 87 + + Function: QXThread_block_ + Parameters: (QXThread const * const me) + Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 + LOC 5 eLOC 4 lLOC 3 Comment 9 Lines 7 + + Function: QXThread_unblock_ + Parameters: (QXThread const * const me) + Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 + LOC 8 eLOC 5 lLOC 2 Comment 10 Lines 8 + + Function: QXThread_teArm_ + Parameters: (QXThread * const me, QSignal sig, uint_fast16_t const nTick + s) + Complexity Param 3 Return 1 Cyclo Vg 3 Total 7 + LOC 14 eLOC 10 lLOC 8 Comment 23 Lines 31 + + Function: QXThread_teDisarm_ + Parameters: (QXThread * const me) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 11 eLOC 8 lLOC 5 Comment 11 Lines 13 + + Function: QXThread_delay + Parameters: (uint_fast16_t const nTicks) + Complexity Param 1 Return 1 Cyclo Vg 4 Total 6 + LOC 21 eLOC 20 lLOC 14 Comment 19 Lines 37 + + Function: QXThread_delayCancel + Parameters: (QXThread * const me) + Complexity Param 1 Return 1 Cyclo Vg 2 Total 4 + LOC 14 eLOC 11 lLOC 7 Comment 2 Lines 16 + + Function: QXK_threadRet_ + Parameters: (void) + Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 + LOC 16 eLOC 15 lLOC 10 Comment 22 Lines 27 + + Total: Functions + LOC 2681 eLOC 2263 lLOC 1422 InCmp 295 CycloCmp 434 + Function Points FP(LOC) 20.8 FP(eLOC) 17.5 FP(lLOC) 11.0 + + ------------------------------------------------------------------------ + + ~~ Project Functional Analysis ~~ + + Total Functions .......: 109 Total Physical Lines ..: 3813 + Total LOC .............: 2681 Total Function Pts LOC : 20.8 + Total eLOC ............: 2263 Total Function Pts eLOC: 17.5 + Total lLOC.............: 1422 Total Function Pts lLOC: 11.0 + Total Cyclomatic Comp. : 434 Total Interface Comp. .: 295 + Total Parameters ......: 186 Total Return Points ...: 109 + Total Comment Lines ...: 3061 Total Blank Lines .....: 567 + ------ ----- ----- ------ ------ ----- + Avg Physical Lines ....: 34.98 + Avg LOC ...............: 24.60 Avg eLOC ..............: 20.76 + Avg lLOC ..............: 13.05 Avg Cyclomatic Comp. ..: 3.98 + Avg Interface Comp. ...: 2.71 Avg Parameters ........: 1.71 + Avg Return Points .....: 1.00 Avg Comment Lines .....: 28.08 + ------ ----- ----- ------ ------ ----- + Max LOC ...............: 124 + Max eLOC ..............: 107 Max lLOC ..............: 65 + Max Cyclomatic Comp. ..: 18 Max Interface Comp. ...: 8 + Max Parameters ........: 7 Max Return Points .....: 1 + Max Comment Lines .....: 83 Max Total Lines .......: 164 + ------ ----- ----- ------ ------ ----- + Min LOC ...............: 3 + Min eLOC ..............: 2 Min lLOC ..............: 1 + Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1 + Min Parameters ........: 0 Min Return Points .....: 1 + Min Comment Lines .....: 1 Min Total Lines .......: 3 + + ------------------------------------------------------------------------ + + ~~ File Summary ~~ + + C Source Files *.c ....: 18 C/C++ Include Files *.h: 17 + C++ Source Files *.c* .: 0 C++ Include Files *.h* : 0 + C# Source Files *.cs ..: 0 Java Source File *.jav*: 0 + Other File Count ......: 0 Total File Count ......: 35 + ________________________________________________________________________ + +@endcode +*/ diff --git a/examples/arm-cm/dpp_nucleo-l053r8/dpp.h b/examples/arm-cm/dpp_nucleo-l053r8/dpp.h index 74687650..d2f31a86 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/dpp.h +++ b/examples/arm-cm/dpp_nucleo-l053r8/dpp.h @@ -73,4 +73,4 @@ extern QActive * const AO_Table; extern QXThread * const XT_Test2; #endif /* qxk_h */ -#endif /* dpp_h */ \ No newline at end of file +#endif /* dpp_h */ diff --git a/examples/arm-cm/dpp_nucleo-l053r8/dpp.qm b/examples/arm-cm/dpp_nucleo-l053r8/dpp.qm index 3b8b756f..2adef95f 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/dpp.qm +++ b/examples/arm-cm/dpp_nucleo-l053r8/dpp.qm @@ -365,7 +365,8 @@ $declare${AOs::AO_Table} extern QXThread * const XT_Test2; #endif /* qxk_h */ -#endif /* dpp_h */ +#endif /* dpp_h */ + #include "qpc.h" diff --git a/examples/arm-cm/dpp_nucleo-l053r8/qk/bsp.c b/examples/arm-cm/dpp_nucleo-l053r8/qk/bsp.c index 219e0119..a5017f04 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/qk/bsp.c +++ b/examples/arm-cm/dpp_nucleo-l053r8/qk/bsp.c @@ -1,7 +1,7 @@ /***************************************************************************** * Product: DPP example, NUCLEO-L053R8 board, preemptive QK kernel -* Last Updated for Version: 6.1.1 -* Date of the Last Update: 2018-02-17 +* Last Updated for Version: 6.3.3 +* Date of the Last Update: 2018-06-23 * * Q u a n t u m L e a P s * --------------------------- @@ -289,7 +289,7 @@ void QK_onIdle(void) { /* called with interrupts enabled */ #elif defined NDEBUG /* Put the CPU and peripherals to the low-power mode. * you might need to customize the clock management for your application, - * see the datasheet for your particular Cortex-M3 MCU. + * see the datasheet for your particular Cortex-M MCU. */ /* !!!CAUTION!!! * The WFI instruction stops the CPU clock, which unfortunately disables diff --git a/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvoptx b/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvoptx index 80ccdc2c..876d5fcb 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvoptx +++ b/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvoptx @@ -118,12 +118,12 @@ 0 UL2CM3 - UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32L0xx_64 -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$Flash\STM32L0xx_64.FLM)) + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32L0xx_64 -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$CMSIS\Flash\STM32L0xx_64.FLM)) 0 ST-LINKIII-KEIL_SWO - -U066CFF484951775087074312 -O8431 -SF480 -C0 -A0 -I0 -HNlocalhost -HP7184 -P2 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32L0xx_64.FLM -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$Flash\STM32L0xx_64.FLM) + -U066CFF484951775087074312 -O8431 -SF480 -C0 -A0 -I0 -HNlocalhost -HP7184 -P2 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32L0xx_64.FLM -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$CMSIS\Flash\STM32L0xx_64.FLM) 0 @@ -205,6 +205,12 @@ + + 1 + 0 + 2 + 10000000 + diff --git a/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvprojx b/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvprojx index 7aebc17d..b0a33605 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvprojx +++ b/examples/arm-cm/dpp_nucleo-l053r8/qv/arm/dpp-qv.uvprojx @@ -16,7 +16,7 @@ STM32L053R8Tx STMicroelectronics - Keil.STM32L0xx_DFP.1.6.1 + Keil.STM32L0xx_DFP.2.0.0 http://www.keil.com/pack/ IRAM(0x20000000,0x00002000) IROM(0x08000000,0x00010000) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE @@ -662,7 +662,7 @@ STM32L053R8Tx STMicroelectronics - Keil.STM32L0xx_DFP.1.6.1 + Keil.STM32L0xx_DFP.2.0.0 http://www.keil.com/pack/ IRAM(0x20000000,0x00002000) IROM(0x08000000,0x00010000) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE @@ -1308,7 +1308,7 @@ STM32L053R8Tx STMicroelectronics - Keil.STM32L0xx_DFP.1.6.1 + Keil.STM32L0xx_DFP.2.0.0 http://www.keil.com/pack/ IRAM(0x20000000,0x00002000) IROM(0x08000000,0x00010000) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE diff --git a/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvoptx b/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvoptx index bc6da30c..bcc36071 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvoptx +++ b/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvoptx @@ -118,12 +118,12 @@ 0 UL2CM3 - UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32L0xx_64 -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$Flash\STM32L0xx_64.FLM)) + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32L0xx_64 -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$CMSIS\Flash\STM32L0xx_64.FLM)) 0 ST-LINKIII-KEIL_SWO - -U066CFF484951775087074312 -O8431 -SF480 -C0 -A0 -I0 -HNlocalhost -HP7184 -P2 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32L0xx_64.FLM -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$Flash\STM32L0xx_64.FLM) + -U066CFF484951775087074312 -O8431 -SF480 -C0 -A0 -I0 -HNlocalhost -HP7184 -P2 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32L0xx_64.FLM -FS08000000 -FL010000 -FP0($$Device:STM32L053R8Tx$CMSIS\Flash\STM32L0xx_64.FLM) 0 @@ -205,6 +205,12 @@ + + 1 + 0 + 2 + 10000000 + diff --git a/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvprojx b/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvprojx index 07f97c7f..fe7866f3 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvprojx +++ b/examples/arm-cm/dpp_nucleo-l053r8/qv/armclang/dpp-qv.uvprojx @@ -16,7 +16,7 @@ STM32L053R8Tx STMicroelectronics - Keil.STM32L0xx_DFP.1.6.1 + Keil.STM32L0xx_DFP.2.0.0 http://www.keil.com/pack/ IRAM(0x20000000,0x00002000) IROM(0x08000000,0x00010000) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE @@ -662,7 +662,7 @@ STM32L053R8Tx STMicroelectronics - Keil.STM32L0xx_DFP.1.6.1 + Keil.STM32L0xx_DFP.2.0.0 http://www.keil.com/pack/ IRAM(0x20000000,0x00002000) IROM(0x08000000,0x00010000) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE @@ -1308,7 +1308,7 @@ STM32L053R8Tx STMicroelectronics - Keil.STM32L0xx_DFP.1.6.1 + Keil.STM32L0xx_DFP.2.0.0 http://www.keil.com/pack/ IRAM(0x20000000,0x00002000) IROM(0x08000000,0x00010000) CPUTYPE("Cortex-M0+") CLOCK(12000000) ELITTLE diff --git a/examples/arm-cm/dpp_nucleo-l053r8/qv/bsp.c b/examples/arm-cm/dpp_nucleo-l053r8/qv/bsp.c index e0386c8e..82fe499e 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/qv/bsp.c +++ b/examples/arm-cm/dpp_nucleo-l053r8/qv/bsp.c @@ -1,7 +1,7 @@ /***************************************************************************** * Product: DPP example, NUCLEO-L053R8 board, cooperative QV kernel -* Last Updated for Version: 5.9.9 -* Date of the Last Update: 2017-10-09 +* Last Updated for Version: 6.3.3 +* Date of the Last Update: 2018-06-23 * * Q u a n t u m L e a P s * --------------------------- @@ -28,7 +28,7 @@ * along with this program. If not, see . * * Contact information: -* https://state-machine.com +* https://www.state-machine.com * mailto:info@state-machine.com *****************************************************************************/ #include "qpc.h" @@ -47,6 +47,7 @@ Q_DEFINE_THIS_FILE enum KernelAwareISRs { GPIOPORTA_PRIO = QF_AWARE_ISR_CMSIS_PRI, /* see NOTE00 */ SYSTICK_PRIO, + EXTI0_1_PRIO, /* ... */ MAX_KERNEL_AWARE_CMSIS_PRI /* keep always last */ }; @@ -54,6 +55,7 @@ enum KernelAwareISRs { Q_ASSERT_COMPILE(MAX_KERNEL_AWARE_CMSIS_PRI <= (0xFF >>(8-__NVIC_PRIO_BITS))); void SysTick_Handler(void); +void EXTI0_1_IRQHandler(void); /* Local-scope defines -----------------------------------------------------*/ /* LED pins available on the board (just one user LED LD2--Green on PA.5) */ @@ -73,7 +75,8 @@ static uint32_t l_rnd; /* random seed */ static uint8_t const l_SysTick_Handler = 0U; enum AppRecords { /* application-specific trace records */ - PHILO_STAT = QS_USER + PHILO_STAT = QS_USER, + ON_CONTEXT_SW }; #endif @@ -95,8 +98,8 @@ void SysTick_Handler(void) { /* system clock tick ISR */ } #endif - //QF_TICK_X(0U, &l_SysTick_Handler); /* process time events for rate 0 */ - QACTIVE_POST(the_Ticker0, 0, &l_SysTick_Handler); /* post to Ticker0 */ + QF_TICK_X(0U, &l_SysTick_Handler); /* process time events for rate 0 */ + //QACTIVE_POST(the_Ticker0, 0, &l_SysTick_Handler); /* post to Ticker0 */ /* get state of the user button */ /* Perform the debouncing of buttons. The algorithm for debouncing @@ -120,6 +123,13 @@ void SysTick_Handler(void) { /* system clock tick ISR */ } } } +/*..........................................................................*/ +/* interrupt handler for testing preemptions in QXK */ +void EXTI0_1_IRQHandler(void) { + static QEvt const testEvt = { TEST_SIG, 0U, 0U }; + QACTIVE_POST(AO_Table, &testEvt, (void *)0); +} + /* BSP functions ===========================================================*/ void BSP_init(void) { @@ -142,7 +152,7 @@ void BSP_init(void) { /* enable GPIOC clock port for the Button B1 */ RCC->IOPENR |= (1U << 2); - /* Configure Button (PC.13) pins as input, no pull-up, pull-down */ + /* configure Button (PC.13) pins as input, no pull-up, pull-down */ GPIOC->MODER &= ~(3U << 2*13); GPIOC->OSPEEDR &= ~(3U << 2*13); GPIOC->OSPEEDR |= (1U << 2*13); @@ -151,10 +161,12 @@ void BSP_init(void) { BSP_randomSeed(1234U); /* seed the random number generator */ /* initialize the QS software tracing... */ - if (QS_INIT((void *)0) == 0) { + if (QS_INIT((void *)0) == 0U) { Q_ERROR(); } QS_OBJ_DICTIONARY(&l_SysTick_Handler); + QS_USR_DICTIONARY(PHILO_STAT); + QS_USR_DICTIONARY(ON_CONTEXT_SW); } /*..........................................................................*/ void BSP_displayPhilStat(uint8_t n, char const *stat) { @@ -224,9 +236,11 @@ void QF_onStartup(void) { * DO NOT LEAVE THE ISR PRIORITIES AT THE DEFAULT VALUE! */ NVIC_SetPriority(SysTick_IRQn, SYSTICK_PRIO); + NVIC_SetPriority(EXTI0_1_IRQn, EXTI0_1_PRIO); /* ... */ /* enable IRQs... */ + NVIC_EnableIRQ(EXTI0_1_IRQn); } /*..........................................................................*/ void QF_onCleanup(void) { @@ -330,17 +344,8 @@ uint8_t QS_onStartup(void const *arg) { QS_tickTime_ = QS_tickPeriod_; /* to start the timestamp at zero */ /* setup the QS filters... */ - QS_FILTER_ON(QS_QEP_STATE_ENTRY); - QS_FILTER_ON(QS_QEP_STATE_EXIT); - QS_FILTER_ON(QS_QEP_STATE_INIT); - QS_FILTER_ON(QS_QEP_INIT_TRAN); - QS_FILTER_ON(QS_QEP_INTERN_TRAN); - QS_FILTER_ON(QS_QEP_TRAN); - QS_FILTER_ON(QS_QEP_IGNORED); - QS_FILTER_ON(QS_QEP_DISPATCH); - QS_FILTER_ON(QS_QEP_UNHANDLED); - - QS_FILTER_ON(PHILO_STAT); + QS_FILTER_ON(QS_SM_RECORDS); + QS_FILTER_ON(QS_UA_RECORDS); return (uint8_t)1; /* return success */ } @@ -370,6 +375,7 @@ void QS_onFlush(void) { } QF_INT_ENABLE(); } + #endif /* Q_SPY */ /*--------------------------------------------------------------------------*/ diff --git a/examples/arm-cm/dpp_nucleo-l053r8/qxk/bsp.c b/examples/arm-cm/dpp_nucleo-l053r8/qxk/bsp.c index 79b96171..2eebff36 100644 --- a/examples/arm-cm/dpp_nucleo-l053r8/qxk/bsp.c +++ b/examples/arm-cm/dpp_nucleo-l053r8/qxk/bsp.c @@ -1,7 +1,7 @@ /***************************************************************************** * Product: DPP example, NUCLEO-L053R8 board, preemptive QXK kernel -* Last Updated for Version: 6.1.1 -* Date of the Last Update: 2018-02-15 +* Last Updated for Version: 6.3.3 +* Date of the Last Update: 2018-06-23 * * Q u a n t u m L e a P s * --------------------------- @@ -289,7 +289,7 @@ void QXK_onIdle(void) { /* called with interrupts enabled */ #elif defined NDEBUG /* Put the CPU and peripherals to the low-power mode. * you might need to customize the clock management for your application, - * see the datasheet for your particular Cortex-M3 MCU. + * see the datasheet for your particular Cortex-M MCU. */ /* !!!CAUTION!!! * The WFI instruction stops the CPU clock, which unfortunately disables