Fork of the official LoRaWAN example adapted for Future Electronic's Sequana board with SX1272MB2DAS LoRa shield.

Committer:
lru
Date:
Wed Sep 11 16:08:09 2019 +0000
Revision:
58:d86aa57863ed
Parent:
36:08d94248181b
Initial demo version for Sequana board.

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 36:08d94248181b 37
mbed_official 33:3776745e4d93 38 #undef MBEDTLS_GCM_C
mbed_official 36:08d94248181b 39 #undef MBEDTLS_CHACHA20_C
mbed_official 36:08d94248181b 40 #undef MBEDTLS_CHACHAPOLY_C
mbed_official 36:08d94248181b 41 #undef MBEDTLS_POLY1305_C
mbed_official 0:7037ed05f54f 42
mbed_official 0:7037ed05f54f 43 #endif /* MBEDTLS_LORA_CONFIG_H */