mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-05-14 10:19:51 +00:00
When a CAmkES component lacks an outbound connection to send log msgs there will be no logger_log symbol. Use a weak ref here to handle that without resorting to a feature or similar. Mark logger connections as "maybe" so they are optional. Change-Id: I6ecd939014d26a612d115741fd2ac673afa40857 GitOrigin-RevId: 0b1bf2611cbb628500cae37889c6547a996d50e9
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
// Copyright 2022 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
import <LoggerInterface.camkes>;
|
|
import <MemoryInterface.camkes>;
|
|
import <MlCoordinatorInterface.camkes>;
|
|
import <SecurityCoordinatorInterface.camkes>;
|
|
import <TimerServiceInterface.camkes>;
|
|
|
|
component MlCoordinator {
|
|
control;
|
|
|
|
provides MlCoordinatorInterface mlcoord;
|
|
|
|
uses Timer timer;
|
|
|
|
consumes Interrupt host_req;
|
|
consumes Interrupt finish;
|
|
consumes Interrupt instruction_fault;
|
|
consumes Interrupt data_fault;
|
|
|
|
dataport Buf CSR;
|
|
dataport Buf(0x1000000) TCM;
|
|
|
|
maybe uses LoggerInterface logger;
|
|
uses MemoryInterface memory;
|
|
uses SecurityCoordinatorInterface security;
|
|
|
|
// Enable KataOS CAmkES support.
|
|
attribute int kataos = true;
|
|
|
|
// Copyregion for loading bundle images
|
|
has copyregion BUNDLE_IMAGE;
|
|
}
|