Ignore:
Timestamp:
Oct 14, 2026, 10:56:57 AM (3 weeks ago)
Author:
Zed
Message:

FreeRTOS was added to the project.

Location:
trunk/firmware/App/CubeMX/Appli/Core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/App/CubeMX/Appli/Core/Inc/stm32n6xx_hal_conf.h

    r24 r29  
    163163  */
    164164#define  VDD_VALUE                  3300UL /*!< Value of VDD in mv */
    165 #define  TICK_INT_PRIORITY          15U  /*!< tick interrupt priority (lowest by default) */
     165#define  TICK_INT_PRIORITY          0U  /*!< tick interrupt priority */
    166166#define  USE_RTOS                   0U
    167167
  • trunk/firmware/App/CubeMX/Appli/Core/Inc/stm32n6xx_it.h

    r21 r29  
    5353void UsageFault_Handler(void);
    5454void SecureFault_Handler(void);
    55 void SVC_Handler(void);
    5655void DebugMon_Handler(void);
    57 void PendSV_Handler(void);
    58 void SysTick_Handler(void);
    5956/* USER CODE BEGIN EFP */
    6057
  • trunk/firmware/App/CubeMX/Appli/Core/Src/main.c

    r28 r29  
    1919/* Includes ------------------------------------------------------------------*/
    2020#include "main.h"
     21#include "app_freertos.h"
    2122#include "bsec.h"
    2223#include "gpio.h"
    … …  
    113114  /* USER CODE END 2 */
    114115
     116  /* Init scheduler */
     117  osKernelInitialize();
     118  /* Call init function for freertos objects (in app_freertos.c) */
     119  MX_FREERTOS_Init();
     120
     121  /* Start scheduler */
     122  osKernelStart();
     123
     124  /* We should never get here as control is now taken by the scheduler */
     125
    115126  /* Infinite loop */
    116127  /* USER CODE BEGIN WHILE */
    117128  while (1)
    118129  {
    119 
    120         HAL_GPIO_TogglePin(LED_GREEN_GPIO_Port, LED_GREEN_Pin);
    121         HAL_Delay(500U);
    122         printf("Programm is running at %u MHz\n", SystemCoreClock / 1000000U);
    123130    /* USER CODE END WHILE */
    124131
  • trunk/firmware/App/CubeMX/Appli/Core/Src/stm32n6xx_it.c

    r21 r29  
    155155
    156156/**
    157   * @brief This function handles System service call via SWI instruction.
    158   */
    159 void SVC_Handler(void)
    160 {
    161   /* USER CODE BEGIN SVCall_IRQn 0 */
    162 
    163   /* USER CODE END SVCall_IRQn 0 */
    164   /* USER CODE BEGIN SVCall_IRQn 1 */
    165 
    166   /* USER CODE END SVCall_IRQn 1 */
    167 }
    168 
    169 /**
    170157  * @brief This function handles Debug monitor.
    171158  */
    … …  
    180167}
    181168
    182 /**
    183   * @brief This function handles Pendable request for system service.
    184   */
    185 void PendSV_Handler(void)
    186 {
    187   /* USER CODE BEGIN PendSV_IRQn 0 */
    188 
    189   /* USER CODE END PendSV_IRQn 0 */
    190   /* USER CODE BEGIN PendSV_IRQn 1 */
    191 
    192   /* USER CODE END PendSV_IRQn 1 */
    193 }
    194 
    195 /**
    196   * @brief This function handles System tick timer.
    197   */
    198 void SysTick_Handler(void)
    199 {
    200   /* USER CODE BEGIN SysTick_IRQn 0 */
    201 
    202   /* USER CODE END SysTick_IRQn 0 */
    203   HAL_IncTick();
    204   /* USER CODE BEGIN SysTick_IRQn 1 */
    205 
    206   /* USER CODE END SysTick_IRQn 1 */
    207 }
    208 
    209169/******************************************************************************/
    210170/* STM32N6xx Peripheral Interrupt Handlers                                    */
Note: See TracChangeset for help on using the changeset viewer.