Skip to content

Commit 04b14f3

Browse files
committed
feat: Support RKH_CFG_QUE_PRIORITY_EN conf. opt
1 parent da48de0 commit 04b14f3

File tree

12 files changed

+173
-0
lines changed

12 files changed

+173
-0
lines changed

demo/80x86/ahsm/rkhcfg.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,20 @@
720720

721721
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
722722

723+
/**
724+
* \brief
725+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
726+
* retrieval of elements based on their priority. The priority is
727+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
728+
* numerical values represent higher priorities.
729+
* See rkh_queue_get() function.
730+
*
731+
* \type Boolean
732+
* \range
733+
* \default RKH_DISABLED
734+
*/
735+
736+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
723737

724738
/* --- Configuration options related to fixed-sized memory block facility - */
725739

demo/80x86/blinky/src/rkhcfg.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,21 @@
642642
*/
643643
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_DISABLED
644644

645+
/**
646+
* \brief
647+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
648+
* retrieval of elements based on their priority. The priority is
649+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
650+
* numerical values represent higher priorities.
651+
* See rkh_queue_get() function.
652+
*
653+
* \type Boolean
654+
* \range
655+
* \default RKH_DISABLED
656+
*/
657+
658+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
659+
645660
/* --- Configuration options related to fixed-sized memory block facility - */
646661

647662
/**

demo/80x86/subm/rkhcfg.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,20 @@
720720

721721
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
722722

723+
/**
724+
* \brief
725+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
726+
* retrieval of elements based on their priority. The priority is
727+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
728+
* numerical values represent higher priorities.
729+
* See rkh_queue_get() function.
730+
*
731+
* \type Boolean
732+
* \range
733+
* \default RKH_DISABLED
734+
*/
735+
736+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
723737

724738
/* --- Configuration options related to fixed-sized memory block facility - */
725739

demo/cross/blinky/rkhcfg.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,21 @@
642642
*/
643643
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_DISABLED
644644

645+
/**
646+
* \brief
647+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
648+
* retrieval of elements based on their priority. The priority is
649+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
650+
* numerical values represent higher priorities.
651+
* See rkh_queue_get() function.
652+
*
653+
* \type Boolean
654+
* \range
655+
* \default RKH_DISABLED
656+
*/
657+
658+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
659+
645660
/* --- Configuration options related to fixed-sized memory block facility - */
646661

647662
/**

demo/cross/shared/rkhcfg.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,20 @@
763763

764764
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
765765

766+
/**
767+
* \brief
768+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
769+
* retrieval of elements based on their priority. The priority is
770+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
771+
* numerical values represent higher priorities.
772+
* See rkh_queue_get() function.
773+
*
774+
* \type Boolean
775+
* \range
776+
* \default RKH_DISABLED
777+
*/
778+
779+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
766780

767781
/* --- Configuration options related to fixed-sized memory block facility - */
768782

source/fwk/test/support/rkhcfg.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,20 @@
779779

780780
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
781781

782+
/**
783+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
784+
* retrieval of elements based on their priority. The priority is
785+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
786+
* numerical values represent higher priorities.
787+
*
788+
* If RKH_CFG_QUE_PRIORITY_EN is set to RKH_DISABLED, the queue will not
789+
* support priority-based retrieval, and attempting to use it may result
790+
* in undefined behavior.
791+
*
792+
* See rkh_queue_get() function.
793+
*/
794+
795+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
782796

783797
/* --- Configuration options related to fixed-sized memory block facility - */
784798

source/queue/test/support/rkhcfg.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,21 @@ extern "C" {
778778

779779
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
780780

781+
/**
782+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
783+
* retrieval of elements based on their priority. The priority is
784+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
785+
* numerical values represent higher priorities.
786+
*
787+
* If RKH_CFG_QUE_PRIORITY_EN is set to RKH_DISABLED, the queue will not
788+
* support priority-based retrieval, and attempting to use it may result
789+
* in undefined behavior.
790+
*
791+
* See rkh_queue_get() function.
792+
*/
793+
794+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
795+
781796
/* --- Configuration options related to fixed-sized memory block facility - */
782797

783798
/**

source/sm/test/support/rkhcfg.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,21 @@ extern "C" {
778778

779779
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
780780

781+
/**
782+
* \brief
783+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
784+
* retrieval of elements based on their priority. The priority is
785+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
786+
* numerical values represent higher priorities.
787+
* See rkh_queue_get() function.
788+
*
789+
* \type Boolean
790+
* \range
791+
* \default RKH_DISABLED
792+
*/
793+
794+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
795+
781796
/* --- Configuration options related to fixed-sized memory block facility - */
782797

783798
/**

source/sma/test/support/rkhcfg.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,20 @@
763763

764764
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
765765

766+
/**
767+
* \brief
768+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
769+
* retrieval of elements based on their priority. The priority is
770+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
771+
* numerical values represent higher priorities.
772+
* See rkh_queue_get() function.
773+
*
774+
* \type Boolean
775+
* \range
776+
* \default RKH_DISABLED
777+
*/
778+
779+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
766780

767781
/* --- Configuration options related to fixed-sized memory block facility - */
768782

source/tmr/test/support/rkhcfg.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,21 @@ extern "C" {
778778

779779
#define RKH_CFG_QUE_PUT_LIFO_EN RKH_ENABLED
780780

781+
/**
782+
* \brief
783+
* If the #RKH_CFG_QUE_PRIORITY_EN is set to 1, the queue supports
784+
* retrieval of elements based on their priority. The priority is
785+
* determined by the 'priority' member of the RKH_EVT_T structure. Lower
786+
* numerical values represent higher priorities.
787+
* See rkh_queue_get() function.
788+
*
789+
* \type Boolean
790+
* \range
791+
* \default RKH_DISABLED
792+
*/
793+
794+
#define RKH_CFG_QUE_PRIORITY_EN RKH_ENABLED
795+
781796
/* --- Configuration options related to fixed-sized memory block facility - */
782797

783798
/**

0 commit comments

Comments
 (0)