Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cortex-M Assert when NVIC implements 8 PRIO bits #639

Merged
merged 28 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c6edb33
Cortex-M Assert when NVIC implements 8 PRIO bits
kar-rahul-aws Mar 6, 2023
5f224d4
Merge branch 'main' into main
kar-rahul-aws Mar 6, 2023
450057b
Merge branch 'main' into main
kar-rahul-aws Mar 13, 2023
336655b
Fix CM3 ports
kar-rahul-aws Mar 13, 2023
cf8dcd6
Merge branch 'main' of github.com:kar-rahul-aws/FreeRTOS-Kernel into …
kar-rahul-aws Mar 13, 2023
9a0ef2e
Fix ARM_CM3_MPU
kar-rahul-aws Mar 13, 2023
d1c714e
Fix ARM CM3
kar-rahul-aws Mar 13, 2023
cd9c113
Fix ARM_CM4_MPU
kar-rahul-aws Mar 13, 2023
d05b46a
Fix ARM_CM4
kar-rahul-aws Mar 13, 2023
cb183b7
Fix GCC ARM_CM7
kar-rahul-aws Mar 13, 2023
28e9870
Fix IAR ARM ports
kar-rahul-aws Mar 13, 2023
dea9333
Uncrustify changes
kar-rahul-aws Mar 13, 2023
5c24d9d
Fix MikroC_ARM_CM4F port
kar-rahul-aws Mar 13, 2023
d41460b
Fix MikroC_ARM_CM4F port-(2)
kar-rahul-aws Mar 13, 2023
4104192
Fix RVDS ARM ports
kar-rahul-aws Mar 13, 2023
e90f148
Revert changes for Tasking/ARM_CM4F port
kar-rahul-aws Mar 13, 2023
35a1c36
Revert changes for Tasking/ARM_CM4F port-(2)
kar-rahul-aws Mar 13, 2023
ead62e5
Merge branch 'main' into main
kar-rahul-aws Mar 15, 2023
82131fe
Merge branch 'main' into main
aggarg Mar 17, 2023
8f572fd
Update port.c
kar-rahul-aws Mar 18, 2023
60e9006
Update port.c
kar-rahul-aws Mar 18, 2023
5143ed1
update GCC\ARM_CM4F port
kar-rahul-aws Mar 18, 2023
4d3759f
Merge branch 'main' of github.com:kar-rahul-aws/FreeRTOS-Kernel into …
kar-rahul-aws Mar 18, 2023
0b7d65f
update port.c
kar-rahul-aws Mar 18, 2023
b52734b
Assert to check configMAX_SYSCALL_INTERRUPT_PRIORITY is set to higher…
kar-rahul-aws Mar 20, 2023
bdb67f5
Fix merge error: remove duplicate code
kar-rahul-aws Mar 21, 2023
79739e5
Fix typos
Mar 21, 2023
d9eb1a2
Merge branch 'main' into main
aggarg Mar 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions portable/GCC/ARM_CM4F/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ BaseType_t xPortStartScheduler( void )

#if ( configASSERT_DEFINED == 1 )
{
volatile uint32_t ulOriginalPriority , ulImplementedPrioBits = 0;
volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
volatile uint32_t ulOriginalPriority;
volatile uint32_t ulImplementedPrioBits = 0;
volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
volatile uint8_t ucMaxPriorityValue;

/* Determine the maximum priority from which ISR safe FreeRTOS API
Expand Down Expand Up @@ -343,15 +344,6 @@ BaseType_t xPortStartScheduler( void )
ucMaxPriorityValue <<= ( uint8_t ) 0x01;
}

if( ulImplementedPrioBits == 8 )
{
ulMaxPRIGROUPValue = 0;
}
else
{
ulMaxPRIGROUPValue = ulMAX_PRIGROUP_BITS - ulImplementedPrioBits;
}

kar-rahul-aws marked this conversation as resolved.
Show resolved Hide resolved
#ifdef __NVIC_PRIO_BITS
{
/* Check the CMSIS configuration that defines the number of
Expand Down Expand Up @@ -849,4 +841,4 @@ static void vPortEnableVFP( void )
configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
}

#endif /* configASSERT_DEFINED */
#endif /* configASSERT_DEFINED */
Loading