:)

Dependencies:   Servo Cayenne-LPP

Committer:
mbed_official
Date:
Thu Aug 23 07:15:21 2018 +0100
Revision:
33:3776745e4d93
Parent:
0:7037ed05f54f
Child:
36:08d94248181b
Optimize mbedtls config

Reduce ROM usage of this example application by ~7kB by optimizing mbedtls config.

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-lorawan

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:7037ed05f54f 1 /**
mbed_official 33:3776745e4d93 2 * Copyright (c) 2017, Arm Limited and affiliates.
mbed_official 33:3776745e4d93 3 * SPDX-License-Identifier: Apache-2.0
mbed_official 0:7037ed05f54f 4 *
mbed_official 33:3776745e4d93 5 * Licensed under the Apache License, Version 2.0 (the "License");
mbed_official 33:3776745e4d93 6 * you may not use this file except in compliance with the License.
mbed_official 33:3776745e4d93 7 * You may obtain a copy of the License at
mbed_official 0:7037ed05f54f 8 *
mbed_official 33:3776745e4d93 9 * http://www.apache.org/licenses/LICENSE-2.0
mbed_official 0:7037ed05f54f 10 *
mbed_official 33:3776745e4d93 11 * Unless required by applicable law or agreed to in writing, software
mbed_official 33:3776745e4d93 12 * distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 33:3776745e4d93 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 33:3776745e4d93 14 * See the License for the specific language governing permissions and
mbed_official 33:3776745e4d93 15 * limitations under the License.
mbed_official 0:7037ed05f54f 16 */
mbed_official 0:7037ed05f54f 17
mbed_official 0:7037ed05f54f 18 #ifndef MBEDTLS_LORA_CONFIG_H
mbed_official 0:7037ed05f54f 19 #define MBEDTLS_LORA_CONFIG_H
mbed_official 0:7037ed05f54f 20
mbed_official 33:3776745e4d93 21 /*
mbed_official 33:3776745e4d93 22 * Configure mbedtls for LoRa stack.
mbed_official 0:7037ed05f54f 23 *
mbed_official 33:3776745e4d93 24 * These settings are just a customization of the main mbedtls config
mbed_official 33:3776745e4d93 25 * mbed-os/features/mbedtls/inc/mbedtls/config.h
mbed_official 0:7037ed05f54f 26 */
mbed_official 0:7037ed05f54f 27
mbed_official 33:3776745e4d93 28 // Ensure LoRa required ciphers are enabled
mbed_official 33:3776745e4d93 29 #define MBEDTLS_CIPHER_C
mbed_official 0:7037ed05f54f 30 #define MBEDTLS_AES_C
mbed_official 0:7037ed05f54f 31 #define MBEDTLS_CMAC_C
mbed_official 0:7037ed05f54f 32
mbed_official 33:3776745e4d93 33 // Reduce ROM usage by optimizing some mbedtls features.
mbed_official 33:3776745e4d93 34 // These are only reference configurations for this LoRa example application.
mbed_official 33:3776745e4d93 35 // Other LoRa applications might need different configurations.
mbed_official 33:3776745e4d93 36 #define MBEDTLS_AES_FEWER_TABLES
mbed_official 33:3776745e4d93 37 #undef MBEDTLS_GCM_C
mbed_official 0:7037ed05f54f 38
mbed_official 0:7037ed05f54f 39
mbed_official 0:7037ed05f54f 40 #endif /* MBEDTLS_LORA_CONFIG_H */