@@ -1455,6 +1455,8 @@ BaseType_t xQueueIsQueueEmptyFromISR( const QueueHandle_t xQueue ) PRIVILEGED_FU
1455
1455
BaseType_t xQueueIsQueueFullFromISR ( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1456
1456
UBaseType_t uxQueueMessagesWaitingFromISR ( const QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1457
1457
1458
+ #if ( configUSE_CO_ROUTINES == 1 )
1459
+
1458
1460
/*
1459
1461
* The functions defined above are for passing data to and from tasks. The
1460
1462
* functions below are the equivalents for passing data to and from
@@ -1464,36 +1466,51 @@ UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue ) PRIVILEG
1464
1466
* should not be called directly from application code. Instead use the macro
1465
1467
* wrappers defined within croutine.h.
1466
1468
*/
1467
- BaseType_t xQueueCRSendFromISR ( QueueHandle_t xQueue ,
1468
- const void * pvItemToQueue ,
1469
- BaseType_t xCoRoutinePreviouslyWoken );
1470
- BaseType_t xQueueCRReceiveFromISR ( QueueHandle_t xQueue ,
1471
- void * pvBuffer ,
1472
- BaseType_t * pxTaskWoken );
1473
- BaseType_t xQueueCRSend ( QueueHandle_t xQueue ,
1474
- const void * pvItemToQueue ,
1475
- TickType_t xTicksToWait );
1476
- BaseType_t xQueueCRReceive ( QueueHandle_t xQueue ,
1477
- void * pvBuffer ,
1478
- TickType_t xTicksToWait );
1469
+ BaseType_t xQueueCRSendFromISR ( QueueHandle_t xQueue ,
1470
+ const void * pvItemToQueue ,
1471
+ BaseType_t xCoRoutinePreviouslyWoken );
1472
+ BaseType_t xQueueCRReceiveFromISR ( QueueHandle_t xQueue ,
1473
+ void * pvBuffer ,
1474
+ BaseType_t * pxTaskWoken );
1475
+ BaseType_t xQueueCRSend ( QueueHandle_t xQueue ,
1476
+ const void * pvItemToQueue ,
1477
+ TickType_t xTicksToWait );
1478
+ BaseType_t xQueueCRReceive ( QueueHandle_t xQueue ,
1479
+ void * pvBuffer ,
1480
+ TickType_t xTicksToWait );
1481
+
1482
+ #endif /* if ( configUSE_CO_ROUTINES == 1 ) */
1479
1483
1480
1484
/*
1481
1485
* For internal use only. Use xSemaphoreCreateMutex(),
1482
1486
* xSemaphoreCreateCounting() or xSemaphoreGetMutexHolder() instead of calling
1483
1487
* these functions directly.
1484
1488
*/
1485
1489
QueueHandle_t xQueueCreateMutex ( const uint8_t ucQueueType ) PRIVILEGED_FUNCTION ;
1486
- QueueHandle_t xQueueCreateMutexStatic ( const uint8_t ucQueueType ,
1487
- StaticQueue_t * pxStaticQueue ) PRIVILEGED_FUNCTION ;
1488
- QueueHandle_t xQueueCreateCountingSemaphore ( const UBaseType_t uxMaxCount ,
1489
- const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION ;
1490
- QueueHandle_t xQueueCreateCountingSemaphoreStatic ( const UBaseType_t uxMaxCount ,
1491
- const UBaseType_t uxInitialCount ,
1492
- StaticQueue_t * pxStaticQueue ) PRIVILEGED_FUNCTION ;
1490
+
1491
+ #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1492
+ QueueHandle_t xQueueCreateMutexStatic ( const uint8_t ucQueueType ,
1493
+ StaticQueue_t * pxStaticQueue ) PRIVILEGED_FUNCTION ;
1494
+ #endif
1495
+
1496
+ #if ( configUSE_COUNTING_SEMAPHORES == 1 )
1497
+ QueueHandle_t xQueueCreateCountingSemaphore ( const UBaseType_t uxMaxCount ,
1498
+ const UBaseType_t uxInitialCount ) PRIVILEGED_FUNCTION ;
1499
+ #endif
1500
+
1501
+ #if ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
1502
+ QueueHandle_t xQueueCreateCountingSemaphoreStatic ( const UBaseType_t uxMaxCount ,
1503
+ const UBaseType_t uxInitialCount ,
1504
+ StaticQueue_t * pxStaticQueue ) PRIVILEGED_FUNCTION ;
1505
+ #endif
1506
+
1493
1507
BaseType_t xQueueSemaphoreTake ( QueueHandle_t xQueue ,
1494
1508
TickType_t xTicksToWait ) PRIVILEGED_FUNCTION ;
1495
- TaskHandle_t xQueueGetMutexHolder ( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION ;
1496
- TaskHandle_t xQueueGetMutexHolderFromISR ( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION ;
1509
+
1510
+ #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
1511
+ TaskHandle_t xQueueGetMutexHolder ( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION ;
1512
+ TaskHandle_t xQueueGetMutexHolderFromISR ( QueueHandle_t xSemaphore ) PRIVILEGED_FUNCTION ;
1513
+ #endif
1497
1514
1498
1515
/*
1499
1516
* For internal use only. Use xSemaphoreTakeMutexRecursive() or
@@ -1653,7 +1670,9 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
1653
1670
* @return If the queue set is created successfully then a handle to the created
1654
1671
* queue set is returned. Otherwise NULL is returned.
1655
1672
*/
1656
- QueueSetHandle_t xQueueCreateSet ( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION ;
1673
+ #if ( ( configUSE_QUEUE_SETS == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
1674
+ QueueSetHandle_t xQueueCreateSet ( const UBaseType_t uxEventQueueLength ) PRIVILEGED_FUNCTION ;
1675
+ #endif
1657
1676
1658
1677
/*
1659
1678
* Adds a queue or semaphore to a queue set that was previously created by a
@@ -1677,8 +1696,10 @@ QueueSetHandle_t xQueueCreateSet( const UBaseType_t uxEventQueueLength ) PRIVILE
1677
1696
* queue set because it is already a member of a different queue set then pdFAIL
1678
1697
* is returned.
1679
1698
*/
1680
- BaseType_t xQueueAddToSet ( QueueSetMemberHandle_t xQueueOrSemaphore ,
1681
- QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION ;
1699
+ #if ( configUSE_QUEUE_SETS == 1 )
1700
+ BaseType_t xQueueAddToSet ( QueueSetMemberHandle_t xQueueOrSemaphore ,
1701
+ QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION ;
1702
+ #endif
1682
1703
1683
1704
/*
1684
1705
* Removes a queue or semaphore from a queue set. A queue or semaphore can only
@@ -1697,8 +1718,10 @@ BaseType_t xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore,
1697
1718
* then pdPASS is returned. If the queue was not in the queue set, or the
1698
1719
* queue (or semaphore) was not empty, then pdFAIL is returned.
1699
1720
*/
1700
- BaseType_t xQueueRemoveFromSet ( QueueSetMemberHandle_t xQueueOrSemaphore ,
1701
- QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION ;
1721
+ #if ( configUSE_QUEUE_SETS == 1 )
1722
+ BaseType_t xQueueRemoveFromSet ( QueueSetMemberHandle_t xQueueOrSemaphore ,
1723
+ QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION ;
1724
+ #endif
1702
1725
1703
1726
/*
1704
1727
* xQueueSelectFromSet() selects from the members of a queue set a queue or
@@ -1734,24 +1757,38 @@ BaseType_t xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore,
1734
1757
* in the queue set that is available, or NULL if no such queue or semaphore
1735
1758
* exists before before the specified block time expires.
1736
1759
*/
1737
- QueueSetMemberHandle_t xQueueSelectFromSet ( QueueSetHandle_t xQueueSet ,
1738
- const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION ;
1760
+ #if ( configUSE_QUEUE_SETS == 1 )
1761
+ QueueSetMemberHandle_t xQueueSelectFromSet ( QueueSetHandle_t xQueueSet ,
1762
+ const TickType_t xTicksToWait ) PRIVILEGED_FUNCTION ;
1763
+ #endif
1739
1764
1740
1765
/*
1741
1766
* A version of xQueueSelectFromSet() that can be used from an ISR.
1742
1767
*/
1743
- QueueSetMemberHandle_t xQueueSelectFromSetFromISR ( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION ;
1768
+ #if ( configUSE_QUEUE_SETS == 1 )
1769
+ QueueSetMemberHandle_t xQueueSelectFromSetFromISR ( QueueSetHandle_t xQueueSet ) PRIVILEGED_FUNCTION ;
1770
+ #endif
1744
1771
1745
1772
/* Not public API functions. */
1746
1773
void vQueueWaitForMessageRestricted ( QueueHandle_t xQueue ,
1747
1774
TickType_t xTicksToWait ,
1748
1775
const BaseType_t xWaitIndefinitely ) PRIVILEGED_FUNCTION ;
1749
1776
BaseType_t xQueueGenericReset ( QueueHandle_t xQueue ,
1750
1777
BaseType_t xNewQueue ) PRIVILEGED_FUNCTION ;
1751
- void vQueueSetQueueNumber ( QueueHandle_t xQueue ,
1752
- UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION ;
1753
- UBaseType_t uxQueueGetQueueNumber ( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1754
- uint8_t ucQueueGetQueueType ( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1778
+
1779
+ #if ( configUSE_TRACE_FACILITY == 1 )
1780
+ void vQueueSetQueueNumber ( QueueHandle_t xQueue ,
1781
+ UBaseType_t uxQueueNumber ) PRIVILEGED_FUNCTION ;
1782
+ #endif
1783
+
1784
+ #if ( configUSE_TRACE_FACILITY == 1 )
1785
+ UBaseType_t uxQueueGetQueueNumber ( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1786
+ #endif
1787
+
1788
+ #if ( configUSE_TRACE_FACILITY == 1 )
1789
+ uint8_t ucQueueGetQueueType ( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1790
+ #endif
1791
+
1755
1792
UBaseType_t uxQueueGetQueueItemSize ( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1756
1793
UBaseType_t uxQueueGetQueueLength ( QueueHandle_t xQueue ) PRIVILEGED_FUNCTION ;
1757
1794
0 commit comments