aliexpress sucks

This commit is contained in:
2023-03-12 02:59:17 +01:00
parent 2521cd75c7
commit ddde12e4c3
8 changed files with 51 additions and 11 deletions
@@ -281,6 +281,8 @@ BaseType_t xPortStartScheduler( void )
/* Read the value back to see how many bits stuck. */
ucMaxPriorityValue = *pucFirstUserPriorityRegister;
printf("ucMaxPriorityValue %02x, \r\n", ucMaxPriorityValue);
/* Use the same mask on the maximum system call priority. */
ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
@@ -292,6 +294,7 @@ BaseType_t xPortStartScheduler( void )
ulMaxPRIGROUPValue--;
ucMaxPriorityValue <<= ( uint8_t ) 0x01;
}
printf("portMAX_PRIGROUP_BITS %02x, ulMaxPRIGROUPValue %02x \r\n", portMAX_PRIGROUP_BITS, ulMaxPRIGROUPValue);
#ifdef __NVIC_PRIO_BITS
{
@@ -304,6 +307,8 @@ BaseType_t xPortStartScheduler( void )
#ifdef configPRIO_BITS
{
printf("( portMAX_PRIGROUP_BITS %d - ulMaxPRIGROUPValue %d ) == configPRIO_BITS %d \r\n",
portMAX_PRIGROUP_BITS, ulMaxPRIGROUPValue, configPRIO_BITS );
/* Check the FreeRTOS configuration that defines the number of
priority bits matches the number of priority bits actually queried
from the hardware. */