1 /****************************************************************************** 2 * Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") 3 * All rights reserved. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 *****************************************************************************/ 18 19 /******************************************************************************************************** 20 * @file compiler.h 21 * 22 * @brief This is the header file for B91 23 * 24 * @author Driver Group 25 * 26 *******************************************************************************************************/ 27 #ifndef COMPILER_H_ 28 #define COMPILER_H_ 29 30 #define _attribute_noinline_ __attribute__((noinline)) 31 #define _attribute_ram_code_sec_ __attribute__((section(".ram_code"))) 32 #define _attribute_ram_code_sec_noinline_ __attribute__((section(".ram_code"))) __attribute__((noinline)) 33 #define _attribute_ram_code_ _attribute_ram_code_sec_noinline_ 34 #define _attribute_text_sec_ __attribute__((section(".text"))) 35 #define _attribute_aes_data_sec_ __attribute__((section(".aes_data"))) 36 #define _attribute_data_retention_sec_ __attribute__((section(".retention_data"))) 37 #define _attribute_data_retention_ __attribute__((section(".retention_data"))) 38 #define _attribute_ble_data_retention_ __attribute__((section(".retention_data"))) 39 #define _attribute_aligned_(s) __attribute__((aligned(s))) 40 #define _attribute_no_inline_ __attribute__((noinline)) 41 #define _attribute_data_dlm_ __attribute__((section(".dlm_data"))) 42 #define _attribute_session_(s) __attribute__((section(s))) 43 44 #endif 45