mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
uncrustified FreeRTOSConfig.h
This commit is contained in:
parent
eeb47f9f20
commit
f465720418
|
@ -23,7 +23,7 @@
|
||||||
* The default value is set to 20MHz and matches the QEMU demo settings. Your
|
* The default value is set to 20MHz and matches the QEMU demo settings. Your
|
||||||
* application will certainly need a different value so set this correctly.
|
* application will certainly need a different value so set this correctly.
|
||||||
* This is very often, but not always, equal to the main system clock frequency. */
|
* This is very often, but not always, equal to the main system clock frequency. */
|
||||||
#define configCPU_CLOCK_HZ ((unsigned long)20000000)
|
#define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 )
|
||||||
|
|
||||||
/* configSYSTICK_CLOCK_HZ is an optional parameter for ARM Cortex-M ports only.
|
/* configSYSTICK_CLOCK_HZ is an optional parameter for ARM Cortex-M ports only.
|
||||||
*
|
*
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
* task, so its priority is set like any other task. See
|
* task, so its priority is set like any other task. See
|
||||||
* https://www.freertos.org/RTOS-software-timer-service-daemon-task.html Only used
|
* https://www.freertos.org/RTOS-software-timer-service-daemon-task.html Only used
|
||||||
* if configUSE_TIMERS is set to 1. */
|
* if configUSE_TIMERS is set to 1. */
|
||||||
#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
|
#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
|
||||||
|
|
||||||
/* configTIMER_TASK_STACK_DEPTH sets the size of the stack allocated to the
|
/* configTIMER_TASK_STACK_DEPTH sets the size of the stack allocated to the
|
||||||
* timer task (in words, not in bytes!). The timer task is a standard FreeRTOS
|
* timer task (in words, not in bytes!). The timer task is a standard FreeRTOS
|
||||||
|
@ -271,9 +271,9 @@
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
/* Set configGENERATE_RUN_TIME_STATS to 1 to have FreeRTOS collect data on the
|
/* Set configGENERATE_RUN_TIME_STATS to 1 to have FreeRTOS collect data on the
|
||||||
* processing time used by each task. Set to 0 to not collect the data. The
|
* processing time used by each task. Set to 0 to not collect the data. The
|
||||||
* application writer needs to provide a clock source if set to 1. Defaults to 0
|
* application writer needs to provide a clock source if set to 1. Defaults to 0
|
||||||
* if left undefined. See https://www.freertos.org/rtos-run-time-stats.html */
|
* if left undefined. See https://www.freertos.org/rtos-run-time-stats.html */
|
||||||
#define configGENERATE_RUN_TIME_STATS 0
|
#define configGENERATE_RUN_TIME_STATS 0
|
||||||
|
|
||||||
/* Set configUSE_TRACE_FACILITY to include additional task structure members
|
/* Set configUSE_TRACE_FACILITY to include additional task structure members
|
||||||
|
@ -301,11 +301,11 @@
|
||||||
* number of the failing assert (for example, "vAssertCalled( __FILE__, __LINE__ )"
|
* number of the failing assert (for example, "vAssertCalled( __FILE__, __LINE__ )"
|
||||||
* or it can simple disable interrupts and sit in a loop to halt all execution
|
* or it can simple disable interrupts and sit in a loop to halt all execution
|
||||||
* on the failing line for viewing in a debugger. */
|
* on the failing line for viewing in a debugger. */
|
||||||
#define configASSERT(x) \
|
#define configASSERT( x ) \
|
||||||
if ((x) == 0) \
|
if( ( x ) == 0 ) \
|
||||||
{ \
|
{ \
|
||||||
taskDISABLE_INTERRUPTS(); \
|
taskDISABLE_INTERRUPTS(); \
|
||||||
for (;;) \
|
for( ;; ) \
|
||||||
; \
|
; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue