NuMaker mbed OS v6.x LoRaWAN

Committer:
cyliang
Date:
Tue Sep 01 20:28:04 2020 +0800
Revision:
0:a160d512fe55
Mbed OS v6.x LoRaWAN example for NuMaker platforms

Who changed what in which revision?

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