From b9ee2110a3f3f2bafc37953bc8cf8cc2b470f2f3 Mon Sep 17 00:00:00 2001 From: M Starch Date: Wed, 11 Oct 2023 20:42:12 -0700 Subject: [PATCH] Fixing topology for nasa/fprime#2166 --- HelloWorldDeployment/Top/HelloWorldDeploymentTopology.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HelloWorldDeployment/Top/HelloWorldDeploymentTopology.cpp b/HelloWorldDeployment/Top/HelloWorldDeploymentTopology.cpp index 8edac16..8dfc510 100644 --- a/HelloWorldDeployment/Top/HelloWorldDeploymentTopology.cpp +++ b/HelloWorldDeployment/Top/HelloWorldDeploymentTopology.cpp @@ -31,7 +31,7 @@ Svc::FprimeFraming framing; Svc::FprimeDeframing deframing; // 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. @@ -81,7 +81,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));