Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/targets/f6/cube/Src/app_freertos.c')
-rw-r--r--firmware/targets/f6/cube/Src/app_freertos.c102
1 files changed, 46 insertions, 56 deletions
diff --git a/firmware/targets/f6/cube/Src/app_freertos.c b/firmware/targets/f6/cube/Src/app_freertos.c
index c4af8e87..fcb18ce6 100644
--- a/firmware/targets/f6/cube/Src/app_freertos.c
+++ b/firmware/targets/f6/cube/Src/app_freertos.c
@@ -51,17 +51,16 @@
/* Definitions for app_main */
osThreadId_t app_mainHandle;
const osThreadAttr_t app_main_attributes = {
- .name = "app_main",
- .priority = (osPriority_t) osPriorityNormal,
- .stack_size = 1024 * 4
-};
+ .name = "app_main",
+ .priority = (osPriority_t)osPriorityNormal,
+ .stack_size = 1024 * 4};
/* Private function prototypes -----------------------------------------------*/
/* USER CODE BEGIN FunctionPrototypes */
/* USER CODE END FunctionPrototypes */
-void app(void *argument);
+void app(void* argument);
void MX_FREERTOS_Init(void); /* (MISRA C 2004 rule 8.1) */
@@ -69,25 +68,21 @@ void MX_FREERTOS_Init(void); /* (MISRA C 2004 rule 8.1) */
void configureTimerForRunTimeStats(void);
unsigned long getRunTimeCounterValue(void);
void vApplicationIdleHook(void);
-void vApplicationStackOverflowHook(TaskHandle_t xTask, signed char *pcTaskName);
+void vApplicationStackOverflowHook(TaskHandle_t xTask, signed char* pcTaskName);
/* USER CODE BEGIN 1 */
/* Functions needed when configGENERATE_RUN_TIME_STATS is on */
-__weak void configureTimerForRunTimeStats(void)
-{
-
+__weak void configureTimerForRunTimeStats(void) {
}
-__weak unsigned long getRunTimeCounterValue(void)
-{
-return 0;
+__weak unsigned long getRunTimeCounterValue(void) {
+ return 0;
}
/* USER CODE END 1 */
/* USER CODE BEGIN 2 */
-void vApplicationIdleHook( void )
-{
- /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set
+void vApplicationIdleHook(void) {
+ /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set
to 1 in FreeRTOSConfig.h. It will be called on each iteration of the idle
task. It is essential that code added to this hook function never attempts
to block in any way (for example, call xQueueReceive() with a block time
@@ -100,20 +95,18 @@ void vApplicationIdleHook( void )
/* USER CODE END 2 */
/* USER CODE BEGIN 4 */
-void vApplicationStackOverflowHook(TaskHandle_t xTask, signed char *pcTaskName)
-{
- /* Run time stack overflow checking is performed if
+void vApplicationStackOverflowHook(TaskHandle_t xTask, signed char* pcTaskName) {
+ /* Run time stack overflow checking is performed if
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
called if a stack overflow is detected. */
}
/* USER CODE END 4 */
/* USER CODE BEGIN VPORT_SUPPORT_TICKS_AND_SLEEP */
-__weak void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )
-{
- // Generated when configUSE_TICKLESS_IDLE == 2.
- // Function called in tasks.c (in portTASK_FUNCTION).
- // TO BE COMPLETED or TO BE REPLACED by a user one, overriding that weak one.
+__weak void vPortSuppressTicksAndSleep(TickType_t xExpectedIdleTime) {
+ // Generated when configUSE_TICKLESS_IDLE == 2.
+ // Function called in tasks.c (in portTASK_FUNCTION).
+ // TO BE COMPLETED or TO BE REPLACED by a user one, overriding that weak one.
}
/* USER CODE END VPORT_SUPPORT_TICKS_AND_SLEEP */
@@ -123,38 +116,37 @@ __weak void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )
* @retval None
*/
void MX_FREERTOS_Init(void) {
- /* USER CODE BEGIN Init */
-
- /* USER CODE END Init */
+ /* USER CODE BEGIN Init */
- /* USER CODE BEGIN RTOS_MUTEX */
- /* add mutexes, ... */
- /* USER CODE END RTOS_MUTEX */
+ /* USER CODE END Init */
- /* USER CODE BEGIN RTOS_SEMAPHORES */
- /* add semaphores, ... */
- /* USER CODE END RTOS_SEMAPHORES */
+ /* USER CODE BEGIN RTOS_MUTEX */
+ /* add mutexes, ... */
+ /* USER CODE END RTOS_MUTEX */
- /* USER CODE BEGIN RTOS_TIMERS */
- /* start timers, add new ones, ... */
- /* USER CODE END RTOS_TIMERS */
+ /* USER CODE BEGIN RTOS_SEMAPHORES */
+ /* add semaphores, ... */
+ /* USER CODE END RTOS_SEMAPHORES */
- /* USER CODE BEGIN RTOS_QUEUES */
- /* add queues, ... */
- /* USER CODE END RTOS_QUEUES */
+ /* USER CODE BEGIN RTOS_TIMERS */
+ /* start timers, add new ones, ... */
+ /* USER CODE END RTOS_TIMERS */
- /* Create the thread(s) */
- /* creation of app_main */
- app_mainHandle = osThreadNew(app, NULL, &app_main_attributes);
+ /* USER CODE BEGIN RTOS_QUEUES */
+ /* add queues, ... */
+ /* USER CODE END RTOS_QUEUES */
- /* USER CODE BEGIN RTOS_THREADS */
- /* add threads, ... */
- /* USER CODE END RTOS_THREADS */
+ /* Create the thread(s) */
+ /* creation of app_main */
+ app_mainHandle = osThreadNew(app, NULL, &app_main_attributes);
- /* USER CODE BEGIN RTOS_EVENTS */
- /* add events, ... */
- /* USER CODE END RTOS_EVENTS */
+ /* USER CODE BEGIN RTOS_THREADS */
+ /* add threads, ... */
+ /* USER CODE END RTOS_THREADS */
+ /* USER CODE BEGIN RTOS_EVENTS */
+ /* add events, ... */
+ /* USER CODE END RTOS_EVENTS */
}
/* USER CODE BEGIN Header_app */
@@ -164,15 +156,13 @@ void MX_FREERTOS_Init(void) {
* @retval None
*/
/* USER CODE END Header_app */
-__weak void app(void *argument)
-{
- /* USER CODE BEGIN app */
- /* Infinite loop */
- for(;;)
- {
- osDelay(1);
- }
- /* USER CODE END app */
+__weak void app(void* argument) {
+ /* USER CODE BEGIN app */
+ /* Infinite loop */
+ for(;;) {
+ osDelay(1);
+ }
+ /* USER CODE END app */
}
/* Private application code --------------------------------------------------*/