|
61 | 61 | portRAISE_PRIVILEGE(); |
62 | 62 | portMEMORY_BARRIER(); |
63 | 63 |
|
| 64 | + uxPriority = uxPriority & ~( portPRIVILEGE_BIT ); |
| 65 | + portMEMORY_BARRIER(); |
| 66 | + |
64 | 67 | xReturn = xTaskCreate( pvTaskCode, pcName, usStackDepth, pvParameters, uxPriority, pxCreatedTask ); |
65 | 68 | portMEMORY_BARRIER(); |
66 | 69 |
|
|
93 | 96 | portRAISE_PRIVILEGE(); |
94 | 97 | portMEMORY_BARRIER(); |
95 | 98 |
|
| 99 | + uxPriority = uxPriority & ~( portPRIVILEGE_BIT ); |
| 100 | + portMEMORY_BARRIER(); |
| 101 | + |
96 | 102 | xReturn = xTaskCreateStatic( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, puxStackBuffer, pxTaskBuffer ); |
97 | 103 | portMEMORY_BARRIER(); |
98 | 104 |
|
@@ -1678,67 +1684,6 @@ void MPU_vQueueDelete( QueueHandle_t xQueue ) /* FREERTOS_SYSTEM_CALL */ |
1678 | 1684 | } |
1679 | 1685 | /*-----------------------------------------------------------*/ |
1680 | 1686 |
|
1681 | | -#if ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) ) |
1682 | | - TimerHandle_t MPU_xTimerCreate( const char * const pcTimerName, |
1683 | | - const TickType_t xTimerPeriodInTicks, |
1684 | | - const UBaseType_t uxAutoReload, |
1685 | | - void * const pvTimerID, |
1686 | | - TimerCallbackFunction_t pxCallbackFunction ) /* FREERTOS_SYSTEM_CALL */ |
1687 | | - { |
1688 | | - TimerHandle_t xReturn; |
1689 | | - |
1690 | | - if( portIS_PRIVILEGED() == pdFALSE ) |
1691 | | - { |
1692 | | - portRAISE_PRIVILEGE(); |
1693 | | - portMEMORY_BARRIER(); |
1694 | | - |
1695 | | - xReturn = xTimerCreate( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction ); |
1696 | | - portMEMORY_BARRIER(); |
1697 | | - |
1698 | | - portRESET_PRIVILEGE(); |
1699 | | - portMEMORY_BARRIER(); |
1700 | | - } |
1701 | | - else |
1702 | | - { |
1703 | | - xReturn = xTimerCreate( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction ); |
1704 | | - } |
1705 | | - |
1706 | | - return xReturn; |
1707 | | - } |
1708 | | -#endif /* if ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) ) */ |
1709 | | -/*-----------------------------------------------------------*/ |
1710 | | - |
1711 | | -#if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) ) |
1712 | | - TimerHandle_t MPU_xTimerCreateStatic( const char * const pcTimerName, |
1713 | | - const TickType_t xTimerPeriodInTicks, |
1714 | | - const UBaseType_t uxAutoReload, |
1715 | | - void * const pvTimerID, |
1716 | | - TimerCallbackFunction_t pxCallbackFunction, |
1717 | | - StaticTimer_t * pxTimerBuffer ) /* FREERTOS_SYSTEM_CALL */ |
1718 | | - { |
1719 | | - TimerHandle_t xReturn; |
1720 | | - |
1721 | | - if( portIS_PRIVILEGED() == pdFALSE ) |
1722 | | - { |
1723 | | - portRAISE_PRIVILEGE(); |
1724 | | - portMEMORY_BARRIER(); |
1725 | | - |
1726 | | - xReturn = xTimerCreateStatic( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxTimerBuffer ); |
1727 | | - portMEMORY_BARRIER(); |
1728 | | - |
1729 | | - portRESET_PRIVILEGE(); |
1730 | | - portMEMORY_BARRIER(); |
1731 | | - } |
1732 | | - else |
1733 | | - { |
1734 | | - xReturn = xTimerCreateStatic( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxTimerBuffer ); |
1735 | | - } |
1736 | | - |
1737 | | - return xReturn; |
1738 | | - } |
1739 | | -#endif /* if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_TIMERS == 1 ) ) */ |
1740 | | -/*-----------------------------------------------------------*/ |
1741 | | - |
1742 | 1687 | #if ( configUSE_TIMERS == 1 ) |
1743 | 1688 | void * MPU_pvTimerGetTimerID( const TimerHandle_t xTimer ) /* FREERTOS_SYSTEM_CALL */ |
1744 | 1689 | { |
@@ -1840,35 +1785,6 @@ void MPU_vQueueDelete( QueueHandle_t xQueue ) /* FREERTOS_SYSTEM_CALL */ |
1840 | 1785 | #endif /* if ( configUSE_TIMERS == 1 ) */ |
1841 | 1786 | /*-----------------------------------------------------------*/ |
1842 | 1787 |
|
1843 | | -#if ( ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) ) |
1844 | | - BaseType_t MPU_xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, |
1845 | | - void * pvParameter1, |
1846 | | - uint32_t ulParameter2, |
1847 | | - TickType_t xTicksToWait ) /* FREERTOS_SYSTEM_CALL */ |
1848 | | - { |
1849 | | - BaseType_t xReturn; |
1850 | | - |
1851 | | - if( portIS_PRIVILEGED() == pdFALSE ) |
1852 | | - { |
1853 | | - portRAISE_PRIVILEGE(); |
1854 | | - portMEMORY_BARRIER(); |
1855 | | - |
1856 | | - xReturn = xTimerPendFunctionCall( xFunctionToPend, pvParameter1, ulParameter2, xTicksToWait ); |
1857 | | - portMEMORY_BARRIER(); |
1858 | | - |
1859 | | - portRESET_PRIVILEGE(); |
1860 | | - portMEMORY_BARRIER(); |
1861 | | - } |
1862 | | - else |
1863 | | - { |
1864 | | - xReturn = xTimerPendFunctionCall( xFunctionToPend, pvParameter1, ulParameter2, xTicksToWait ); |
1865 | | - } |
1866 | | - |
1867 | | - return xReturn; |
1868 | | - } |
1869 | | -#endif /* if ( ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) ) */ |
1870 | | -/*-----------------------------------------------------------*/ |
1871 | | - |
1872 | 1788 | #if ( configUSE_TIMERS == 1 ) |
1873 | 1789 | void MPU_vTimerSetReloadMode( TimerHandle_t xTimer, |
1874 | 1790 | const UBaseType_t uxAutoReload ) /* FREERTOS_SYSTEM_CALL */ |
|
0 commit comments