1 /**************************************************************************/ /** 2 * @file 3 * @brief SE Manager configuration options 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b> 7 ******************************************************************************* 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 ******************************************************************************/ 30 31 #ifndef SL_SE_MANAGER_CONFIG_H 32 #define SL_SE_MANAGER_CONFIG_H 33 34 /// This file include the configuration options of the SE Manager. 35 /// For the time being the user should not change the default settings 36 /// of the configuration options in this file. 37 38 #if defined (SL_COMPONENT_CATALOG_PRESENT) 39 #include "sl_component_catalog.h" 40 #endif 41 42 #if defined(SL_CATALOG_MICRIUMOS_KERNEL_PRESENT) || defined(SL_CATALOG_FREERTOS_KERNEL_PRESENT) 43 // Threading support (as opposed to API calls only from a single thread) 44 // is currently required in RTOS mode. 45 #define SL_SE_MANAGER_THREADING 46 47 #if !defined(SL_SE_MANAGER_YIELD_WHILE_WAITING_FOR_COMMAND_COMPLETION) && !defined(SLI_VSE_MAILBOX_COMMAND_SUPPORTED) 48 // Enable yield support. Configure sl_se_command_context_t to yield CPU while waiting for SE commands. 49 // This is not supported on EFR32xG22. 50 #define SL_SE_MANAGER_YIELD_WHILE_WAITING_FOR_COMMAND_COMPLETION 51 #endif 52 #endif 53 54 #ifndef SLI_SE_AES_CTR_NUM_BLOCKS_BUFFERED 55 #define SLI_SE_AES_CTR_NUM_BLOCKS_BUFFERED 1 56 #endif 57 58 // Check consistency of configuration options. 59 // Always include se_manager_check_config.h in order to assert that the 60 // configuration options dependencies and restrictions are ok. 61 #include "sl_se_manager_check_config.h" 62 63 #endif // SL_SE_MANAGER_CONFIG_H 64