Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HelloWorld_IDS01A4 by
stm-spirit1-rf-driver/source/libs/spirit1/SPIRIT1_Library/Inc/SPIRIT_Config.h@13:d802c6ed2e75, 2018-01-17 (annotated)
- Committer:
- jmhong
- Date:
- Wed Jan 17 04:04:16 2018 +0000
- Revision:
- 13:d802c6ed2e75
180117
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmhong | 13:d802c6ed2e75 | 1 | /** |
jmhong | 13:d802c6ed2e75 | 2 | ****************************************************************************** |
jmhong | 13:d802c6ed2e75 | 3 | * @file SPIRIT_Config.h |
jmhong | 13:d802c6ed2e75 | 4 | * @author VMA division - AMS |
jmhong | 13:d802c6ed2e75 | 5 | * @version 3.2.2 |
jmhong | 13:d802c6ed2e75 | 6 | * @date 08-July-2015 |
jmhong | 13:d802c6ed2e75 | 7 | * @brief Spirit Configuration and useful defines |
jmhong | 13:d802c6ed2e75 | 8 | * |
jmhong | 13:d802c6ed2e75 | 9 | * @details |
jmhong | 13:d802c6ed2e75 | 10 | * |
jmhong | 13:d802c6ed2e75 | 11 | * This file is used to include all or a part of the Spirit |
jmhong | 13:d802c6ed2e75 | 12 | * libraries into the application program which will be used. |
jmhong | 13:d802c6ed2e75 | 13 | * Moreover some important parameters are defined here and the |
jmhong | 13:d802c6ed2e75 | 14 | * user is allowed to edit them. |
jmhong | 13:d802c6ed2e75 | 15 | * |
jmhong | 13:d802c6ed2e75 | 16 | * @attention |
jmhong | 13:d802c6ed2e75 | 17 | * |
jmhong | 13:d802c6ed2e75 | 18 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
jmhong | 13:d802c6ed2e75 | 19 | * |
jmhong | 13:d802c6ed2e75 | 20 | * Redistribution and use in source and binary forms, with or without modification, |
jmhong | 13:d802c6ed2e75 | 21 | * are permitted provided that the following conditions are met: |
jmhong | 13:d802c6ed2e75 | 22 | * 1. Redistributions of source code must retain the above copyright notice, |
jmhong | 13:d802c6ed2e75 | 23 | * this list of conditions and the following disclaimer. |
jmhong | 13:d802c6ed2e75 | 24 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
jmhong | 13:d802c6ed2e75 | 25 | * this list of conditions and the following disclaimer in the documentation |
jmhong | 13:d802c6ed2e75 | 26 | * and/or other materials provided with the distribution. |
jmhong | 13:d802c6ed2e75 | 27 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
jmhong | 13:d802c6ed2e75 | 28 | * may be used to endorse or promote products derived from this software |
jmhong | 13:d802c6ed2e75 | 29 | * without specific prior written permission. |
jmhong | 13:d802c6ed2e75 | 30 | * |
jmhong | 13:d802c6ed2e75 | 31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
jmhong | 13:d802c6ed2e75 | 32 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
jmhong | 13:d802c6ed2e75 | 33 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
jmhong | 13:d802c6ed2e75 | 34 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
jmhong | 13:d802c6ed2e75 | 35 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
jmhong | 13:d802c6ed2e75 | 36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
jmhong | 13:d802c6ed2e75 | 37 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
jmhong | 13:d802c6ed2e75 | 38 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
jmhong | 13:d802c6ed2e75 | 39 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
jmhong | 13:d802c6ed2e75 | 40 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
jmhong | 13:d802c6ed2e75 | 41 | * |
jmhong | 13:d802c6ed2e75 | 42 | ****************************************************************************** |
jmhong | 13:d802c6ed2e75 | 43 | */ |
jmhong | 13:d802c6ed2e75 | 44 | |
jmhong | 13:d802c6ed2e75 | 45 | /* Define to prevent recursive inclusion -------------------------------------*/ |
jmhong | 13:d802c6ed2e75 | 46 | #ifndef __SPIRIT_CONFIG_H |
jmhong | 13:d802c6ed2e75 | 47 | #define __SPIRIT_CONFIG_H |
jmhong | 13:d802c6ed2e75 | 48 | |
jmhong | 13:d802c6ed2e75 | 49 | |
jmhong | 13:d802c6ed2e75 | 50 | /* Includes ------------------------------------------------------------------*/ |
jmhong | 13:d802c6ed2e75 | 51 | #include "SPIRIT_Regs.h" |
jmhong | 13:d802c6ed2e75 | 52 | #include "SPIRIT_Aes.h" |
jmhong | 13:d802c6ed2e75 | 53 | #include "SPIRIT_Calibration.h" |
jmhong | 13:d802c6ed2e75 | 54 | #include "SPIRIT_Commands.h" |
jmhong | 13:d802c6ed2e75 | 55 | #include "SPIRIT_Csma.h" |
jmhong | 13:d802c6ed2e75 | 56 | #include "SPIRIT_DirectRF.h" |
jmhong | 13:d802c6ed2e75 | 57 | #include "SPIRIT_General.h" |
jmhong | 13:d802c6ed2e75 | 58 | #include "SPIRIT_Gpio.h" |
jmhong | 13:d802c6ed2e75 | 59 | #include "SPIRIT_Irq.h" |
jmhong | 13:d802c6ed2e75 | 60 | #include "SPIRIT_Timer.h" |
jmhong | 13:d802c6ed2e75 | 61 | #include "SPIRIT_LinearFifo.h" |
jmhong | 13:d802c6ed2e75 | 62 | #include "SPIRIT_PktBasic.h" |
jmhong | 13:d802c6ed2e75 | 63 | #include "SPIRIT_PktMbus.h" |
jmhong | 13:d802c6ed2e75 | 64 | #include "SPIRIT_PktStack.h" |
jmhong | 13:d802c6ed2e75 | 65 | |
jmhong | 13:d802c6ed2e75 | 66 | #include "SPIRIT_Qi.h" |
jmhong | 13:d802c6ed2e75 | 67 | #include "SPIRIT_Radio.h" |
jmhong | 13:d802c6ed2e75 | 68 | #include "MCU_Interface.h" |
jmhong | 13:d802c6ed2e75 | 69 | #include "SPIRIT_Types.h" |
jmhong | 13:d802c6ed2e75 | 70 | #include "SPIRIT_Management.h" |
jmhong | 13:d802c6ed2e75 | 71 | |
jmhong | 13:d802c6ed2e75 | 72 | |
jmhong | 13:d802c6ed2e75 | 73 | #ifdef __cplusplus |
jmhong | 13:d802c6ed2e75 | 74 | extern "C" { |
jmhong | 13:d802c6ed2e75 | 75 | #endif |
jmhong | 13:d802c6ed2e75 | 76 | |
jmhong | 13:d802c6ed2e75 | 77 | |
jmhong | 13:d802c6ed2e75 | 78 | /** @addtogroup SPIRIT_Libraries SPIRIT Libraries |
jmhong | 13:d802c6ed2e75 | 79 | * @brief This firmware implements libraries which allow the user |
jmhong | 13:d802c6ed2e75 | 80 | * to manage the features of Spirit without knowing the hardware details. |
jmhong | 13:d802c6ed2e75 | 81 | * @details The <i>SPIRIT_Libraries</i> modules are totally platform independent. The library provides one |
jmhong | 13:d802c6ed2e75 | 82 | * module for each device feature. Each module refers to some functions whose prototypes are located in the |
jmhong | 13:d802c6ed2e75 | 83 | * header file <i>@ref MCU_Interface.h</i>. The user who want to use these libraries on a particular |
jmhong | 13:d802c6ed2e75 | 84 | * platform has to implement these functions respecting them signatures. |
jmhong | 13:d802c6ed2e75 | 85 | * @{ |
jmhong | 13:d802c6ed2e75 | 86 | */ |
jmhong | 13:d802c6ed2e75 | 87 | |
jmhong | 13:d802c6ed2e75 | 88 | /** @defgroup SPIRIT_Configuration Configuration |
jmhong | 13:d802c6ed2e75 | 89 | * @brief Spirit Configuration and useful defines. |
jmhong | 13:d802c6ed2e75 | 90 | * @details See the file <i>@ref SPIRIT_Config.h</i> for more details. |
jmhong | 13:d802c6ed2e75 | 91 | * @{ |
jmhong | 13:d802c6ed2e75 | 92 | */ |
jmhong | 13:d802c6ed2e75 | 93 | |
jmhong | 13:d802c6ed2e75 | 94 | |
jmhong | 13:d802c6ed2e75 | 95 | /** @defgroup Configuration_Exported_Types Configuration Exported Types |
jmhong | 13:d802c6ed2e75 | 96 | * @{ |
jmhong | 13:d802c6ed2e75 | 97 | */ |
jmhong | 13:d802c6ed2e75 | 98 | |
jmhong | 13:d802c6ed2e75 | 99 | /** |
jmhong | 13:d802c6ed2e75 | 100 | * @} |
jmhong | 13:d802c6ed2e75 | 101 | */ |
jmhong | 13:d802c6ed2e75 | 102 | |
jmhong | 13:d802c6ed2e75 | 103 | |
jmhong | 13:d802c6ed2e75 | 104 | /** @defgroup Configuration_Exported_Constants Configuration Exported Constants |
jmhong | 13:d802c6ed2e75 | 105 | * @{ |
jmhong | 13:d802c6ed2e75 | 106 | */ |
jmhong | 13:d802c6ed2e75 | 107 | #define DOUBLE_XTAL_THR 30000000 |
jmhong | 13:d802c6ed2e75 | 108 | |
jmhong | 13:d802c6ed2e75 | 109 | /** |
jmhong | 13:d802c6ed2e75 | 110 | * @} |
jmhong | 13:d802c6ed2e75 | 111 | */ |
jmhong | 13:d802c6ed2e75 | 112 | |
jmhong | 13:d802c6ed2e75 | 113 | |
jmhong | 13:d802c6ed2e75 | 114 | /** @defgroup Configuration_Exported_Macros Configuration Exported Macros |
jmhong | 13:d802c6ed2e75 | 115 | * @{ |
jmhong | 13:d802c6ed2e75 | 116 | */ |
jmhong | 13:d802c6ed2e75 | 117 | |
jmhong | 13:d802c6ed2e75 | 118 | /** |
jmhong | 13:d802c6ed2e75 | 119 | * @} |
jmhong | 13:d802c6ed2e75 | 120 | */ |
jmhong | 13:d802c6ed2e75 | 121 | |
jmhong | 13:d802c6ed2e75 | 122 | |
jmhong | 13:d802c6ed2e75 | 123 | /** @defgroup Configuration_Exported_Functions Configuration Exported Functions |
jmhong | 13:d802c6ed2e75 | 124 | * @{ |
jmhong | 13:d802c6ed2e75 | 125 | */ |
jmhong | 13:d802c6ed2e75 | 126 | |
jmhong | 13:d802c6ed2e75 | 127 | /** |
jmhong | 13:d802c6ed2e75 | 128 | * @} |
jmhong | 13:d802c6ed2e75 | 129 | */ |
jmhong | 13:d802c6ed2e75 | 130 | |
jmhong | 13:d802c6ed2e75 | 131 | /** |
jmhong | 13:d802c6ed2e75 | 132 | * @} |
jmhong | 13:d802c6ed2e75 | 133 | */ |
jmhong | 13:d802c6ed2e75 | 134 | |
jmhong | 13:d802c6ed2e75 | 135 | |
jmhong | 13:d802c6ed2e75 | 136 | /** |
jmhong | 13:d802c6ed2e75 | 137 | * @} |
jmhong | 13:d802c6ed2e75 | 138 | */ |
jmhong | 13:d802c6ed2e75 | 139 | |
jmhong | 13:d802c6ed2e75 | 140 | |
jmhong | 13:d802c6ed2e75 | 141 | #ifdef __cplusplus |
jmhong | 13:d802c6ed2e75 | 142 | } |
jmhong | 13:d802c6ed2e75 | 143 | #endif |
jmhong | 13:d802c6ed2e75 | 144 | |
jmhong | 13:d802c6ed2e75 | 145 | #endif |
jmhong | 13:d802c6ed2e75 | 146 | |
jmhong | 13:d802c6ed2e75 | 147 | /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/ |