Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers arm_uc_mmConfig.h Source File

arm_uc_mmConfig.h

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 #ifndef MANIFEST_MANAGER_CONFIG_H
00020 #define MANIFEST_MANAGER_CONFIG_H
00021 
00022 #include <limits.h>
00023 
00024 #define MAX_HASH_BYTES 32
00025 #define MAX_SYMM_KEY_BYTES 16
00026 // #define ECC_SIG_BYTES 71
00027 #define MAX_URI_BYTES 128
00028 
00029 #define MANIFEST_SUPPORTED_VERSION 1
00030 #define MANIFEST_MANAGER_NO_STORAGE 1
00031 
00032 #ifndef ARM_UC_MM_ENABLE_TEST_VECTORS
00033 #define ARM_UC_MM_ENABLE_TEST_VECTORS 0
00034 #endif
00035 
00036 #ifndef ARM_UC_MM_ENABLE_INSERT_TEST_VECTORS
00037 #define ARM_UC_MM_ENABLE_INSERT_TEST_VECTORS 0
00038 #endif
00039 
00040 #define RFC_4122_BYTES (128/CHAR_BIT)
00041 #define RFC_4122_WORDS (RFC_4122_BYTES/sizeof(uint32_t))
00042 
00043 #define CERT_MAX_STORAGE 1024
00044 #define CA_PREFIX       "com.arm.mbed.update.mm.ca"
00045 #define MANIFEST_PREFIX "com.arm.mbed.update.mm.m"
00046 
00047 #define MANIFEST_ROLLBACK_PROTECTION 0
00048 
00049 #define CFSTORE_HASH_ID_SIZE ((((256 + CHAR_BIT - 1) / CHAR_BIT + 2) / 3) * 4 + 1)
00050 
00051 #define MANIFEST_STORAGE_RETENTION_LEVEL ARM_RETENTION_NVM
00052 // TODO: Enable ACLs for manifest storage
00053 #define MANIFEST_STORAGE_ACLS_ENABLED 0
00054 // TODO: Enable lazy flush
00055 #define MANIFEST_STORAGE_LAZY_FLUSH_ENABLED 0
00056 // TODO: Enable flush-on-close
00057 #define MANIFEST_STORAGE_FLUSH_ON_CLOSE_ENABLED 0
00058 // TODO: Enable storage-detect
00059 #define MANIFEST_STORAGE_STORAGE_DETECT_ENABLED 0
00060 // TODO: Enable async callbacks for config store
00061 #define MFST_ASYNC_KV_ASYNC 1
00062 #endif // MANIFEST_MANAGER_CONFIG_H