mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:59:01 +01:00 
			
		
		
		
	fix conversion warning (#658)
FreeRTOS-Kernel/portable/GCC/ARM_CM4F/port.c:399:41: error: conversion from 'uint32_t' {aka 'long unsigned int'} to 'uint8_t' {aka 'unsigned char'} may change value [-Werror=conversion]
Signed-off-by: Vo Trung Chi <chi.votrung@vn.bosch.com>
			
			
This commit is contained in:
		
							parent
							
								
									1b8a4244bd
								
							
						
					
					
						commit
						aa987a3443
					
				@ -218,7 +218,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint32_t ulImplementedPrioBits = 0;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
@ -229,7 +229,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -310,7 +310,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -237,7 +237,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint32_t ulImplementedPrioBits = 0;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
@ -248,7 +248,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -329,7 +329,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -270,14 +270,14 @@ uint32_t ulAPSR;
 | 
			
		||||
 | 
			
		||||
    #if( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( configINTERRUPT_CONTROLLER_BASE_ADDRESS + portINTERRUPT_PRIORITY_REGISTER_OFFSET );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
 | 
			
		||||
        /* Determine how many priority bits are implemented in the GIC.
 | 
			
		||||
 | 
			
		||||
        Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to
 | 
			
		||||
        all possible bits. */
 | 
			
		||||
@ -300,7 +300,7 @@ uint32_t ulAPSR;
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
        value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -329,14 +329,14 @@ uint32_t ulAPSR;
 | 
			
		||||
 | 
			
		||||
    #if( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( configINTERRUPT_CONTROLLER_BASE_ADDRESS + portINTERRUPT_PRIORITY_REGISTER_OFFSET );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
 | 
			
		||||
        /* Determine how many priority bits are implemented in the GIC.
 | 
			
		||||
 | 
			
		||||
        Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to
 | 
			
		||||
        all possible bits. */
 | 
			
		||||
@ -357,7 +357,7 @@ uint32_t ulAPSR;
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
        value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -261,7 +261,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -272,7 +272,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -353,7 +353,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -384,7 +384,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
        {
 | 
			
		||||
            volatile uint32_t ulOriginalPriority;
 | 
			
		||||
            volatile uint8_t ucOriginalPriority;
 | 
			
		||||
            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;
 | 
			
		||||
@ -395,7 +395,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
             * to ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
             *
 | 
			
		||||
             * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
            ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
            ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
            /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
             * possible bits. */
 | 
			
		||||
@ -476,7 +476,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
            /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
             * value. */
 | 
			
		||||
            *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
            *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
        }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -304,7 +304,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -315,7 +315,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -396,7 +396,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -427,7 +427,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
        {
 | 
			
		||||
            volatile uint32_t ulOriginalPriority;
 | 
			
		||||
            volatile uint8_t ucOriginalPriority;
 | 
			
		||||
            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;
 | 
			
		||||
@ -438,7 +438,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
             * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
             *
 | 
			
		||||
             * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
            ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
            ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
            /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
             * possible bits. */
 | 
			
		||||
@ -519,7 +519,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
            /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
             * value. */
 | 
			
		||||
            *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
            *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
        }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -292,7 +292,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -303,7 +303,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -384,7 +384,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -411,7 +411,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( configINTERRUPT_CONTROLLER_BASE_ADDRESS + portINTERRUPT_PRIORITY_REGISTER_OFFSET );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
 | 
			
		||||
@ -419,7 +419,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * Determine how many priority bits are implemented in the GIC.
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered.
 | 
			
		||||
         */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /*
 | 
			
		||||
         * Determine the number of priority bits available.  First write to
 | 
			
		||||
@ -457,7 +457,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value.
 | 
			
		||||
         */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -210,7 +210,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -221,7 +221,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -302,7 +302,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -248,7 +248,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -259,7 +259,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -340,7 +340,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -362,7 +362,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -373,7 +373,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -454,7 +454,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -236,7 +236,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -247,7 +247,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -328,7 +328,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -298,7 +298,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        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;
 | 
			
		||||
@ -309,7 +309,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -390,7 +390,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -263,7 +263,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint32_t ulImplementedPrioBits = 0;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
@ -274,7 +274,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -355,7 +355,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -329,7 +329,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint32_t ulImplementedPrioBits = 0;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
@ -340,7 +340,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -421,7 +421,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -422,7 +422,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint32_t ulImplementedPrioBits = 0;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
@ -433,7 +433,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -514,7 +514,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -313,7 +313,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    #if ( configASSERT_DEFINED == 1 )
 | 
			
		||||
    {
 | 
			
		||||
        volatile uint32_t ulOriginalPriority;
 | 
			
		||||
        volatile uint8_t ucOriginalPriority;
 | 
			
		||||
        volatile uint32_t ulImplementedPrioBits = 0;
 | 
			
		||||
        volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
 | 
			
		||||
        volatile uint8_t ucMaxPriorityValue;
 | 
			
		||||
@ -324,7 +324,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
         * ensure interrupt entry is as fast and simple as possible.
 | 
			
		||||
         *
 | 
			
		||||
         * Save the interrupt priority value that is about to be clobbered. */
 | 
			
		||||
        ulOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
        ucOriginalPriority = *pucFirstUserPriorityRegister;
 | 
			
		||||
 | 
			
		||||
        /* Determine the number of priority bits available.  First write to all
 | 
			
		||||
         * possible bits. */
 | 
			
		||||
@ -405,7 +405,7 @@ BaseType_t xPortStartScheduler( void )
 | 
			
		||||
 | 
			
		||||
        /* Restore the clobbered interrupt priority register to its original
 | 
			
		||||
         * value. */
 | 
			
		||||
        *pucFirstUserPriorityRegister = ulOriginalPriority;
 | 
			
		||||
        *pucFirstUserPriorityRegister = ucOriginalPriority;
 | 
			
		||||
    }
 | 
			
		||||
    #endif /* configASSERT_DEFINED */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user