Skip to content

Commit

Permalink
Fixing topology for nasa/fprime#2166
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Oct 12, 2023
1 parent d4f5c39 commit 69523e7
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 69523e7

Please sign in to comment.