mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
move ip initialization into function
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
parent
05f7a03909
commit
7d37c56947
2 changed files with 5 additions and 0 deletions
|
@ -212,6 +212,7 @@ public:
|
|||
static std::list<std::shared_ptr<Core>>
|
||||
configureIps(std::list<IpIdentifier> orderedIps, json_t *json_ips,
|
||||
Card *card);
|
||||
static void initIps(std::list<std::shared_ptr<Core>> orderedIps, Card *card);
|
||||
|
||||
// Returns a running and checked FPGA IP
|
||||
static std::list<std::shared_ptr<Core>> make(Card *card, json_t *json_ips);
|
||||
|
|
|
@ -241,6 +241,9 @@ CoreFactory::configureIps(std::list<IpIdentifier> orderedIps, json_t *json_ips,
|
|||
|
||||
return configuredIps;
|
||||
}
|
||||
void CoreFactory::initIps(std::list<std::shared_ptr<Core>> configuredIps,
|
||||
Card *card) {
|
||||
auto loggerStatic = CoreFactory::getStaticLogger();
|
||||
// Start and check IPs now
|
||||
for (auto &ip : configuredIps) {
|
||||
loggerStatic->info("Initializing {}", *ip);
|
||||
|
@ -284,6 +287,7 @@ CoreFactory::configureIps(std::list<IpIdentifier> orderedIps, json_t *json_ips,
|
|||
for (auto &ip : card->ips) {
|
||||
loggerStatic->debug(" {}", *ip);
|
||||
}
|
||||
}
|
||||
|
||||
return card->ips;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue