Skip to content

Commit

Permalink
RateGroupDriver offset changes for nasa/fprime#2166 (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: M Starch <[email protected]>
  • Loading branch information
thomas-bc and LeStarch authored Oct 26, 2023
1 parent da4b6c4 commit 4b89b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MathDeployment/Top/MathDeploymentTopology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Svc::FprimeDeframing deframing;
Svc::ComQueue::QueueConfigurationTable configurationTable;

// The reference topology divides the incoming clock signal (1Hz) into sub-signals: 1Hz, 1/2Hz, and 1/4Hz
NATIVE_INT_TYPE rateGroupDivisors[Svc::RateGroupDriver::DIVIDER_SIZE] = {1, 2, 4};
Svc::RateGroupDriver::DividerSet rateGroupDivisors = {{{1, 0}, {2, 0}, {4, 0}}};

// Rate groups may supply a context token to each of the attached children whose purpose is set by the project. The
// reference topology sets each token to zero as these contexts are unused in this project.
Expand Down Expand Up @@ -88,7 +88,7 @@ void configureTopology() {
cmdSeq.allocateBuffer(0, mallocator, CMD_SEQ_BUFFER_SIZE);

// Rate group driver needs a divisor list
rateGroupDriver.configure(rateGroupDivisors, FW_NUM_ARRAY_ELEMENTS(rateGroupDivisors));
rateGroupDriver.configure(rateGroupDivisors);

// Rate groups require context arrays.
rateGroup1.configure(rateGroup1Context, FW_NUM_ARRAY_ELEMENTS(rateGroup1Context));
Expand Down

0 comments on commit 4b89b9d

Please sign in to comment.