Adjust task priorities to fit in supported platforms' priority ranges (#292)

* Adjust task priorities to fit in supported platforms' priority ranges

Darwin's task priority range is most restrictive (15-47); adjusted priorities
to reside within that range.

* Adjust relative task priorities for uplink and downlink

This keeps the cookie-cutters consistent with the analogous change in fprime.
This commit is contained in:
Philip Romano 2025-10-22 15:57:58 -07:00 committed by GitHub
parent 33d61bad50
commit f49f26315b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -29,22 +29,22 @@ module {{cookiecutter.deployment_name}} {
instance rateGroup1: Svc.ActiveRateGroup base id 0x10001000 \
queue size Default.QUEUE_SIZE \
stack size Default.STACK_SIZE \
priority 120
priority 43
instance rateGroup2: Svc.ActiveRateGroup base id 0x10002000 \
queue size Default.QUEUE_SIZE \
stack size Default.STACK_SIZE \
priority 119
priority 42
instance rateGroup3: Svc.ActiveRateGroup base id 0x10003000 \
queue size Default.QUEUE_SIZE \
stack size Default.STACK_SIZE \
priority 118
priority 41
instance cmdSeq: Svc.CmdSequencer base id 0x10004000 \
queue size Default.QUEUE_SIZE \
stack size Default.STACK_SIZE \
priority 117
priority 40
# ----------------------------------------------------------------------
# Queued component instances

View File

@ -27,7 +27,7 @@ U32 rateGroup2Context[Svc::ActiveRateGroup::CONNECTION_COUNT_MAX] = {};
U32 rateGroup3Context[Svc::ActiveRateGroup::CONNECTION_COUNT_MAX] = {};
enum TopologyConstants {
COMM_PRIORITY = 100,
COMM_PRIORITY = 34,
};
/**

View File

@ -17,7 +17,7 @@ module {{cookiecutter.subtopology_name}}Config {
# Priorities for active components
module Priorities {
# Add your component priorities here. For example:
# constant myComponent = 100
# constant myComponent = 23
}
# Additional configuration modules can be added here as needed
@ -25,4 +25,4 @@ module {{cookiecutter.subtopology_name}}Config {
# module BufferSizes {
# constant myBuffer = 1024
# }
}
}