1 //***************************************************************************** 2 // 3 // am_reg_macros_asm.h 4 //! @file 5 //! 6 //! @brief Inline assembly macros. Initially for critical section handling in 7 //! protecting hardware registers. 8 // 9 //***************************************************************************** 10 11 //***************************************************************************** 12 // 13 // Copyright (c) 2024, Ambiq Micro, Inc. 14 // All rights reserved. 15 // 16 // Redistribution and use in source and binary forms, with or without 17 // modification, are permitted provided that the following conditions are met: 18 // 19 // 1. Redistributions of source code must retain the above copyright notice, 20 // this list of conditions and the following disclaimer. 21 // 22 // 2. Redistributions in binary form must reproduce the above copyright 23 // notice, this list of conditions and the following disclaimer in the 24 // documentation and/or other materials provided with the distribution. 25 // 26 // 3. Neither the name of the copyright holder nor the names of its 27 // contributors may be used to endorse or promote products derived from this 28 // software without specific prior written permission. 29 // 30 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 31 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 32 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 33 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 34 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 35 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 36 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 37 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 38 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 39 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 40 // POSSIBILITY OF SUCH DAMAGE. 41 // 42 // This is part of revision release_sdk_3_2_0-dd5f40c14b of the AmbiqSuite Development Package. 43 // 44 //***************************************************************************** 45 46 #ifndef AM_REG_MACROS_ASM_H 47 #define AM_REG_MACROS_ASM_H 48 49 #ifdef __cplusplus 50 extern "C" 51 { 52 #endif 53 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #endif // AM_REG_MACROS_ASM_H 60 61