Fork for workshops

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers arm_uc_mmCommon.c Source File

arm_uc_mmCommon.c

00001 // ----------------------------------------------------------------------------
00002 // Copyright 2016-2017 ARM Ltd.
00003 //
00004 // SPDX-License-Identifier: Apache-2.0
00005 //
00006 // Licensed under the Apache License, Version 2.0 (the "License");
00007 // you may not use this file except in compliance with the License.
00008 // You may obtain a copy of the License at
00009 //
00010 //     http://www.apache.org/licenses/LICENSE-2.0
00011 //
00012 // Unless required by applicable law or agreed to in writing, software
00013 // distributed under the License is distributed on an "AS IS" BASIS,
00014 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 // See the License for the specific language governing permissions and
00016 // limitations under the License.
00017 // ----------------------------------------------------------------------------
00018 
00019 #include "update-client-manifest-manager/update-client-manifest-manager-context.h"
00020 
00021 #include "arm_uc_mmCommon.h"
00022 #include "arm_uc_mmConfig.h"
00023 #include "update-client-manifest-manager/update-client-manifest-types.h"
00024 
00025 #include <string.h>
00026 
00027 // Initialisation with an enum silences a compiler warning for ARM ("188-D: enumerated type mixed with another type").
00028 arm_uc_mmPersistentContext_t arm_uc_mmPersistentContext = { ARM_UC_MM_STATE_INVALID };
00029 const size_t arm_uc_mmDynamicContextSize = sizeof(arm_uc_mmContext_t);
00030 
00031 #if ARM_UC_MANIFEST_MANAGER_TRACE_ENABLE
00032 volatile uint8_t arm_uc_mm_gDebugLevel = 10;
00033 #else
00034 volatile uint8_t arm_uc_mm_gDebugLevel = 0;
00035 #endif