NuMaker mbed OS v5.x LoRaWAN

Committer:
cyliang
Date:
Tue Sep 01 21:06:51 2020 +0800
Revision:
0:895bbd4e6398
Mbed OS v5.x LoRaWAN example for NuMaker platforms based on https://github.com/ARMmbed/mbed-os-example-lorawan.git

Who changed what in which revision?

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