add CFDP_DISTRIB and CFDP_HANDLER obj IDs

This commit is contained in:
2022-09-08 16:26:23 +02:00
parent bf36e7f8f9
commit a36d951209
4 changed files with 7 additions and 4 deletions

View File

@ -34,7 +34,7 @@
#include "objects/systemObjectList.h"
#include "tmtc/apid.h"
void ObjectFactory::produceGenericObjects() {
void ObjectFactory::produceGenericObjects(TmFunnel **tmFunnel) {
#if OBSW_ADD_CORE_COMPONENTS == 1
/* Framework objects */
new EventManager(objects::EVENT_MANAGER);
@ -44,7 +44,7 @@ void ObjectFactory::produceGenericObjects() {
new VerificationReporter();
auto *ccsdsDistrib = new CcsdsDistributor(apid::APID, objects::CCSDS_DISTRIBUTOR);
new PusDistributor(apid::APID, objects::PUS_DISTRIBUTOR, ccsdsDistrib);
new TmFunnel(*stamperAndReader, objects::TM_FUNNEL);
*tmFunnel = new TmFunnel(*stamperAndReader, objects::TM_FUNNEL);
#endif /* OBSW_ADD_CORE_COMPONENTS == 1 */
/* PUS stack */

View File

@ -3,13 +3,15 @@
#include <fsfw/objectmanager/SystemObjectIF.h>
class TmFunnel;
namespace ObjectFactory {
/**
* @brief Produce hardware independant objects. Called by bsp specific
* object factory.
*/
void produceGenericObjects();
void produceGenericObjects(TmFunnel** funnel);
} // namespace ObjectFactory