Skip to content

Commit

Permalink
Initialise FPU context in the register tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
kar-rahul-aws committed Jul 9, 2024
1 parent 51ec0d6 commit 287924e
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 553 deletions.
26 changes: 4 additions & 22 deletions FreeRTOS/Demo/CORTEX_No_GIC_R5F_TI_RM57_HERCULES_GCC/.project
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,7 @@
</matcher>
</filter>
<filter>
<id>1703728684338</id>
<name>FreeRTOS-Kernel/portable</name>
<type>9</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-Common</arguments>
</matcher>
</filter>
<filter>
<id>1703728684340</id>
<id>1720520309667</id>
<name>FreeRTOS-Kernel/portable</name>
<type>9</type>
<matcher>
Expand All @@ -87,21 +78,12 @@
</matcher>
</filter>
<filter>
<id>1703263792368</id>
<name>FreeRTOS-Kernel/portable/Common</name>
<type>6</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-mpu_wrappers.c</arguments>
</matcher>
</filter>
<filter>
<id>1703728698924</id>
<id>1720518946690</id>
<name>FreeRTOS-Kernel/portable/GCC</name>
<type>9</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-ARM_CRx_MPU</arguments>
<arguments>1.0-name-matches-true-false-ARM_CRx_No_GIC</arguments>
</matcher>
</filter>
</filteredResources>
Expand All @@ -120,7 +102,7 @@
</variable>
<variable>
<name>FREERTOS_PORT_DIR</name>
<value>$%7BFREERTOS_KERNEL_DIR%7D/portable/GCC/ARM_CRx_MPU</value>
<value>$%7BFREERTOS_KERNEL_DIR%7D/portable/GCC/ARM_CRx_No_GIC</value>
</variable>
<variable>
<name>REPOSITORY_ROOT</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@

/** @brief MPU Region Aligned Stack used by the IRQ Test Task */

static StackType_t uxIRQTestTaskStack[ configMINIMAL_STACK_SIZE ]
__attribute__( ( aligned( configMINIMAL_STACK_SIZE * 0x4UL ) ) );
static StackType_t uxIRQTestTaskStack[ configMINIMAL_STACK_SIZE ];

/** @brief Parameters that are passed into the IRQ test task solely for
* the purpose of ensuring parameters are passed into tasks correctly. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,13 @@ void vApplicationIRQHandler( void );
static StaticTask_t xTimerTaskTCB;

/** @brief Statically declared MPU aligned stack used by the timer task */
static StackType_t uxTimerTaskStack[ configMINIMAL_STACK_SIZE ]
__attribute__( ( aligned( configMINIMAL_STACK_SIZE * 0x4U ) ) );
static StackType_t uxTimerTaskStack[ configMINIMAL_STACK_SIZE ];

/** @brief Statically declared TCB Used by the Idle Task */
static StaticTask_t xIdleTaskTCB;

/** @brief Statically declared MPU aligned stack used by the idle task */
static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ]
__attribute__( ( aligned( configMINIMAL_STACK_SIZE * 0x4U ) ) );
static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ];

/** @brief Simple variable to show how the idle tick hook can be used */
static volatile TickType_t ulIdleTickHookCount = 0x0;
Expand Down
Loading

0 comments on commit 287924e

Please sign in to comment.