Home
last modified time | relevance | path

Searched +full:- +full:- +full:dir (Results 1 – 7 of 7) sorted by relevance

/Kernel-v11.1.0/examples/coverity/
DREADME.md1 # MISRA Compliance for FreeRTOS-Kernel
2 FreeRTOS-Kernel is MISRA C:2012 compliant. This directory contains a project to
3 … [Synopsys Coverity](https://www.synopsys.com/software-integrity/security-testing/static-analysis-
20 …run on any platform mentioned [here](https://sig-docs.synopsys.com/polaris/topics/c_coverity-compa…
23 1. CMake version > 3.13.0 (You can check whether you have this by typing `cmake --version`).
25 - See download and installation instructions [here](https://gcc.gnu.org/install/).
27 - `git clone https://github.com/FreeRTOS/FreeRTOS-Kernel.git ./FreeRTOS-Kernel`
30 Go to the root directory of the FreeRTOS-Kernel repo and run the following
34 cov-configure --force --compiler cc --comptype gcc
40 cmake -B build -S examples/coverity
[all …]
/Kernel-v11.1.0/
DMISRA.md3 FreeRTOS-Kernel conforms to [MISRA C:2012](https://www.misra.org.uk/misra-c)
6 designed for small-embedded devices, it needs to have a very small memory
18 grep 'MISRA Ref 8.4.1' . -rI
21 #### Dir 4.7
22 MISRA C:2012 Dir 4.7: If a function returns error information, then that error
26 - `taskENTER_CRITICAL_FROM_ISR` returns the interrupt mask and not any error
35 - pxCurrentTCB(s) is defined with external linkage but it is only referenced
41 - xQueueRegistry is defined with external linkage because it is accessed by the
51 - This rule prohibits an identifier with external linkage to have multiple
60 - The pointer to function is casted into void to avoid unused parameter
[all …]
Dstream_buffer.c5 * SPDX-License-Identifier: MIT
70 if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) \
72 ( void ) xTaskNotifyIndexed( ( pxStreamBuffer )->xTaskWaitingToSend, \
73 ( pxStreamBuffer )->uxNotificationIndex, \
76 ( pxStreamBuffer )->xTaskWaitingToSend = NULL; \
83 /* If user has provided a per-instance receive complete callback, then
89 if( ( pxStreamBuffer )->pxReceiveCompletedCallback != NULL ) \
91 ( pxStreamBuffer )->pxReceiveCompletedCallback( ( pxStreamBuffer ), pdFALSE, NULL ); \
110 if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL ) \
112 ( void ) xTaskNotifyIndexedFromISR( ( pxStreamBuffer )->xTaskWaitingToSend, \
[all …]
Dqueue.c5 * SPDX-License-Identifier: MIT
52 #define queueUNLOCKED ( ( int8_t ) -1 )
101 * rationale: https://www.FreeRTOS.org/Embedded-RTOS-Queues.html
142 /*-----------------------------------------------------------*/
169 /* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-84 */
246 * disinherit the priority - but only down to the highest priority of any
252 /*-----------------------------------------------------------*/
261 if( ( pxQueue )->cRxLock == queueUNLOCKED ) \
263 ( pxQueue )->cRxLock = queueLOCKED_UNMODIFIED; \
265 if( ( pxQueue )->cTxLock == queueUNLOCKED ) \
[all …]
Devent_groups.c5 * SPDX-License-Identifier: MIT
68 /*-----------------------------------------------------------*/
82 /*-----------------------------------------------------------*/
105 /* The user has provided a statically allocated event group - use it. */ in xEventGroupCreateStatic()
107 … /* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-113 */ in xEventGroupCreateStatic()
113 pxEventBits->uxEventBits = 0; in xEventGroupCreateStatic()
114 vListInitialise( &( pxEventBits->xTasksWaitingForBits ) ); in xEventGroupCreateStatic()
121 pxEventBits->ucStaticallyAllocated = pdTRUE; in xEventGroupCreateStatic()
130 * pxEventGroupBuffer pointing to a pre-allocated (compile time in xEventGroupCreateStatic()
141 /*-----------------------------------------------------------*/
[all …]
Dtasks.c5 * SPDX-License-Identifier: MIT
44 /* The default definitions are only available for non-MPU ports. The
89 if( pxCurrentTCB->uxPriority < ( pxTCB )->uxPriority ) \
102 …#define taskYIELD_TASK_CORE_IF_USING_PREEMPTION( pxTCB ) prvYieldCore( ( pxTCB )->xTaskRunState…
175 /*-----------------------------------------------------------*/
186 --uxTopPriority; \
200 /*-----------------------------------------------------------*/
217 /*-----------------------------------------------------------*/
229 /*-----------------------------------------------------------*/
244 /*-----------------------------------------------------------*/
[all …]
/Kernel-v11.1.0/.github/workflows/
Dcoverity_scan.yml10 bashPass: \033[32;1mPASSED -
11 bashInfo: \033[33;1mINFO -
12 bashFail: \033[31;1mFAILED -
16 Coverity-Scan:
17 if: ( github.repository == 'FreeRTOS/FreeRTOS-Kernel' )
19 runs-on: ubuntu-latest
21 - name: Checkout the Repository
24 - env:
29 echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
31 sudo apt-get -y update
[all …]