Added support for the WNC M14A2A Cellular LTE Data Module.

Dependencies:   WNC14A2AInterface

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SPIRIT_Gpio.h Source File

SPIRIT_Gpio.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003  * @file    SPIRIT_Gpio.h
00004   * @author  VMA division - AMS
00005   * @version 3.2.2
00006   * @date    08-July-2015
00007   * @brief   This file provides all the low level API to manage SPIRIT GPIO.
00008   * 
00009  * @details
00010  *
00011  * This module can be used to configure the Spirit GPIO pins to perform
00012  * specific functions.
00013  * The structure <i>@ref gpioIRQ</i> can be used to specify these features for
00014  * one of the four Spirit Gpio pin.
00015  * The following example shows how to configure a pin (GPIO 3) to be used as an IRQ source
00016  * for a microcontroller using the <i>@ref SpiritGpioInit()</i> function.
00017  *
00018  * <b>Example:</b>
00019  * @code
00020  *
00021  * SGpioInit gpioIRQ={
00022  *   SPIRIT_GPIO_3,
00023  *   SPIRIT_GPIO_MODE_DIGITAL_OUTPUT_LP,
00024  *   SPIRIT_GPIO_DIG_OUT_IRQ
00025  * };
00026  *
00027  * ...
00028  *
00029  * SpiritGpioInit(&gpioIRQ);
00030  *
00031  * @endcode
00032  *
00033  * @note Please read the functions documentation for the other GPIO features.
00034  *
00035  *
00036   * @attention
00037   *
00038   * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
00039   *
00040   * Redistribution and use in source and binary forms, with or without modification,
00041   * are permitted provided that the following conditions are met:
00042   *   1. Redistributions of source code must retain the above copyright notice,
00043   *      this list of conditions and the following disclaimer.
00044   *   2. Redistributions in binary form must reproduce the above copyright notice,
00045   *      this list of conditions and the following disclaimer in the documentation
00046   *      and/or other materials provided with the distribution.
00047   *   3. Neither the name of STMicroelectronics nor the names of its contributors
00048   *      may be used to endorse or promote products derived from this software
00049   *      without specific prior written permission.
00050   *
00051   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00052   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00053   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00054   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00055   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00056   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00057   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00058   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00059   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00060   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00061  *
00062   ******************************************************************************
00063  */
00064 
00065 /* Define to prevent recursive inclusion -------------------------------------*/
00066 #ifndef __SPIRIT_GPIO_H
00067 #define __SPIRIT_GPIO_H
00068 
00069 
00070 /* Includes ------------------------------------------------------------------*/
00071 
00072 #include "SPIRIT_Regs.h"
00073 #include "SPIRIT_Types.h"
00074 
00075 
00076 #ifdef __cplusplus
00077 extern "C" {
00078 #endif
00079 
00080 
00081 /** @addtogroup SPIRIT_Libraries
00082  * @{
00083  */
00084 
00085 
00086 /** @defgroup SPIRIT_Gpio       GPIO
00087  * @brief Configuration and management of SPIRIT GPIO.
00088  * @details See the file <i>@ref SPIRIT_Gpio.h</i> for more details.
00089  * @{
00090  */
00091 
00092 
00093 
00094 /** @defgroup Gpio_Exported_Types       GPIO Exported Types
00095  * @{
00096  */
00097 
00098 /**
00099  * @brief  SPIRIT GPIO pin enumeration.
00100  */
00101 typedef enum
00102 {
00103   SPIRIT_GPIO_0   = GPIO0_CONF_BASE, /*!< GPIO_0 selected */
00104   SPIRIT_GPIO_1   = GPIO1_CONF_BASE, /*!< GPIO_1 selected */
00105   SPIRIT_GPIO_2   = GPIO2_CONF_BASE, /*!< GPIO_2 selected */
00106   SPIRIT_GPIO_3   = GPIO3_CONF_BASE  /*!< GPIO_3 selected */
00107 }SpiritGpioPin;
00108 
00109 
00110 #define IS_SPIRIT_GPIO(PIN)  ((PIN == SPIRIT_GPIO_0) || \
00111                               (PIN == SPIRIT_GPIO_1) || \
00112                               (PIN == SPIRIT_GPIO_2) || \
00113                               (PIN == SPIRIT_GPIO_3))
00114 
00115 
00116 /**
00117  * @brief  SPIRIT GPIO mode enumeration.
00118  */
00119 typedef enum
00120 {
00121   SPIRIT_GPIO_MODE_DIGITAL_INPUT       = 0x01, /*!< Digital Input on GPIO */
00122   SPIRIT_GPIO_MODE_DIGITAL_OUTPUT_LP   = 0x02, /*!< Digital Output on GPIO (low current) */
00123   SPIRIT_GPIO_MODE_DIGITAL_OUTPUT_HP   = 0x03  /*!< Digital Output on GPIO (high current) */
00124 }SpiritGpioMode;
00125 
00126 #define IS_SPIRIT_GPIO_MODE(MODE)   ((MODE == SPIRIT_GPIO_MODE_DIGITAL_INPUT) || \
00127                                      (MODE == SPIRIT_GPIO_MODE_DIGITAL_OUTPUT_LP) || \
00128                                      (MODE == SPIRIT_GPIO_MODE_DIGITAL_OUTPUT_HP))
00129 
00130 
00131 
00132 /**
00133  * @brief  SPIRIT I/O selection enumeration.
00134  */
00135 typedef enum
00136 {
00137   SPIRIT_GPIO_DIG_OUT_IRQ                                = 0x00, /*!< nIRQ (Interrupt Request, active low) , default configuration after POR */
00138   SPIRIT_GPIO_DIG_OUT_POR_INV                            = 0x08, /*!< POR inverted (active low) */
00139   SPIRIT_GPIO_DIG_OUT_WUT_EXP                            = 0x10, /*!< Wake-Up Timer expiration: "1" when WUT has expired */
00140   SPIRIT_GPIO_DIG_OUT_LBD                                = 0x18, /*!< Low battery detection: "1" when battery is below threshold setting */
00141   SPIRIT_GPIO_DIG_OUT_TX_DATA                            = 0x20, /*!< TX data internal clock output (TX data are sampled on the rising edge of it) */
00142   SPIRIT_GPIO_DIG_OUT_TX_STATE                           = 0x28, /*!< TX state indication: "1" when Spirit1 is passing in the TX state */
00143   SPIRIT_GPIO_DIG_OUT_TX_FIFO_ALMOST_EMPTY               = 0x30, /*!< TX FIFO Almost Empty Flag */
00144   SPIRIT_GPIO_DIG_OUT_TX_FIFO_ALMOST_FULL                = 0x38, /*!< TX FIFO Almost Full Flag */
00145   SPIRIT_GPIO_DIG_OUT_RX_DATA                            = 0x40, /*!< RX data output */
00146   SPIRIT_GPIO_DIG_OUT_RX_CLOCK                           = 0x48, /*!< RX clock output (recovered from received data) */
00147   SPIRIT_GPIO_DIG_OUT_RX_STATE                           = 0x50, /*!< RX state indication: "1" when Spirit1 is passing in the RX state */
00148   SPIRIT_GPIO_DIG_OUT_RX_FIFO_ALMOST_FULL                = 0x58, /*!< RX FIFO Almost Full Flag */
00149   SPIRIT_GPIO_DIG_OUT_RX_FIFO_ALMOST_EMPTY               = 0x60, /*!< RX FIFO Almost Empty Flag */
00150   SPIRIT_GPIO_DIG_OUT_ANTENNA_SWITCH                     = 0x68, /*!< Antenna switch used for antenna diversity  */
00151   SPIRIT_GPIO_DIG_OUT_VALID_PREAMBLE                     = 0x70, /*!< Valid Preamble Detected Flag */
00152   SPIRIT_GPIO_DIG_OUT_SYNC_DETECTED                      = 0x78, /*!< Sync WordSync Word Detected Flag */
00153   SPIRIT_GPIO_DIG_OUT_RSSI_THRESHOLD                     = 0x80, /*!< RSSI above threshold */
00154   SPIRIT_GPIO_DIG_OUT_MCU_CLOCK                          = 0x88, /*!< MCU Clock */
00155   SPIRIT_GPIO_DIG_OUT_TX_RX_MODE                         = 0x90, /*!< TX or RX mode indicator (to enable an external range extender) */
00156   SPIRIT_GPIO_DIG_OUT_VDD                                = 0x98, /*!< VDD (to emulate an additional GPIO of the MCU, programmable by SPI) */
00157   SPIRIT_GPIO_DIG_OUT_GND                                = 0xA0, /*!< GND (to emulate an additional GPIO of the MCU, programmable by SPI) */
00158   SPIRIT_GPIO_DIG_OUT_SMPS_EXT                           = 0xA8, /*!< External SMPS enable signal (active high) */
00159   SPIRIT_GPIO_DIG_OUT_SLEEP_OR_STANDBY                  = 0xB0,
00160   SPIRIT_GPIO_DIG_OUT_READY                             = 0xB8,
00161   SPIRIT_GPIO_DIG_OUT_LOCK                              = 0xC0,
00162   SPIRIT_GPIO_DIG_OUT_WAIT_FOR_LOCK_SIG                 = 0xC8,
00163   SPIRIT_GPIO_DIG_OUT_WAIT_FOR_TIMER_FOR_LOCK           = 0xD0,
00164   SPIRIT_GPIO_DIG_OUT_WAIT_FOR_READY2_SIG               = 0xD8,
00165   SPIRIT_GPIO_DIG_OUT_WAIT_FOR_TIMER_FOR_PM_SET         = 0xE0,
00166   SPIRIT_GPIO_DIG_OUT_WAIT_VCO_CALIBRATION              = 0xE8,
00167   SPIRIT_GPIO_DIG_OUT_ENABLE_SYNTH_FULL_CIRCUIT         = 0xF0,
00168   SPIRIT_GPIO_DIG_OUT_WAIT_FOR_RCCAL_OK_SIG             = 0xFF,
00169 
00170   SPIRIT_GPIO_DIG_IN_TX_COMMAND                         = 0x00,
00171   SPIRIT_GPIO_DIG_IN_RX_COMMAND                         = 0x08,
00172   SPIRIT_GPIO_DIG_IN_TX_DATA_INPUT_FOR_DIRECTRF         = 0x10,
00173   SPIRIT_GPIO_DIG_IN_DATA_WAKEUP                        = 0x18,
00174   SPIRIT_GPIO_DIG_IN_EXT_CLOCK_AT_34_7KHZ               = 0x20
00175 
00176 }SpiritGpioIO;
00177 
00178 #define IS_SPIRIT_GPIO_IO(IO_SEL)        ((IO_SEL == SPIRIT_GPIO_DIG_OUT_IRQ) || \
00179                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_POR_INV) || \
00180                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_WUT_EXP) || \
00181                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_LBD) || \
00182                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_TX_DATA) || \
00183                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_TX_STATE) || \
00184                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_TX_FIFO_ALMOST_EMPTY) || \
00185                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_TX_FIFO_ALMOST_FULL) || \
00186                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_RX_DATA) || \
00187                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_RX_CLOCK) || \
00188                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_RX_STATE) || \
00189                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_RX_FIFO_ALMOST_FULL) || \
00190                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_RX_FIFO_ALMOST_EMPTY) || \
00191                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_ANTENNA_SWITCH) || \
00192                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_VALID_PREAMBLE) || \
00193                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_SYNC_DETECTED) || \
00194                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_RSSI_THRESHOLD) || \
00195                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_MCU_CLOCK) || \
00196                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_TX_RX_MODE) || \
00197                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_VDD) || \
00198                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_GND) || \
00199                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_SMPS_EXT) ||\
00200                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_SLEEP_OR_STANDBY) ||\
00201                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_READY) ||\
00202                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_LOCK) ||\
00203                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_WAIT_FOR_LOCK_SIG) ||\
00204                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_WAIT_FOR_TIMER_FOR_LOCK) ||\
00205                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_WAIT_FOR_READY2_SIG) ||\
00206                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_WAIT_FOR_TIMER_FOR_PM_SET) ||\
00207                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_WAIT_VCO_CALIBRATION) ||\
00208                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_ENABLE_SYNTH_FULL_CIRCUIT) ||\
00209                                           (IO_SEL == SPIRIT_GPIO_DIG_OUT_WAIT_FOR_RCCAL_OK_SIG) ||\
00210                                           (IO_SEL == SPIRIT_GPIO_DIG_IN_TX_COMMAND) ||\
00211                                           (IO_SEL == SPIRIT_GPIO_DIG_IN_RX_COMMAND) ||\
00212                                           (IO_SEL == SPIRIT_GPIO_DIG_IN_TX_DATA_INPUT_FOR_DIRECTRF) ||\
00213                                           (IO_SEL == SPIRIT_GPIO_DIG_IN_DATA_WAKEUP) ||\
00214                                           (IO_SEL == SPIRIT_GPIO_DIG_IN_EXT_CLOCK_AT_34_7KHZ))
00215 
00216 /**
00217  * @brief  SPIRIT OutputLevel enumeration.
00218  */
00219 
00220 typedef enum
00221 {
00222   LOW = 0,
00223   HIGH = !LOW
00224 }OutputLevel;
00225 
00226 #define IS_SPIRIT_GPIO_LEVEL(LEVEL)      ((LEVEL == LOW) || \
00227                                           (LEVEL == HIGH))
00228 
00229 
00230 /**
00231  * @brief  SPIRIT GPIO Init structure definition.
00232  */
00233 typedef struct
00234 {
00235   SpiritGpioPin xSpiritGpioPin;    /*!< Specifies the GPIO pins to be configured.
00236                                         This parameter can be any value of @ref SpiritGpioPin */
00237 
00238   SpiritGpioMode xSpiritGpioMode;  /*!< Specifies the operating mode for the selected pins.
00239                                         This parameter can be a value of @ref SpiritGpioMode */
00240 
00241   SpiritGpioIO xSpiritGpioIO;      /*!< Specifies the I/O selection for the selected pins.
00242                                         This parameter can be a value of @ref SpiritGpioIO */
00243 
00244 }SGpioInit;
00245 
00246 
00247 
00248 /**
00249  * @brief  SPIRIT clock output XO prescaler enumeration.
00250  */
00251 
00252 typedef enum
00253 {
00254  XO_RATIO_1      = 0x00, /*!< XO Clock signal available on the GPIO divided by 1     */
00255  XO_RATIO_2_3    = 0x02, /*!< XO Clock signal available on the GPIO divided by 2/3   */
00256  XO_RATIO_1_2    = 0x04, /*!< XO Clock signal available on the GPIO divided by 1/2   */
00257  XO_RATIO_1_3    = 0x06, /*!< XO Clock signal available on the GPIO divided by 1/3   */
00258  XO_RATIO_1_4    = 0x08, /*!< XO Clock signal available on the GPIO divided by 1/4   */
00259  XO_RATIO_1_6    = 0x0A, /*!< XO Clock signal available on the GPIO divided by 1/6   */
00260  XO_RATIO_1_8    = 0x0C, /*!< XO Clock signal available on the GPIO divided by 1/8   */
00261  XO_RATIO_1_12   = 0x0E, /*!< XO Clock signal available on the GPIO divided by 1/12  */
00262  XO_RATIO_1_16   = 0x10, /*!< XO Clock signal available on the GPIO divided by 1/16  */
00263  XO_RATIO_1_24   = 0x12, /*!< XO Clock signal available on the GPIO divided by 1/24  */
00264  XO_RATIO_1_36   = 0x14, /*!< XO Clock signal available on the GPIO divided by 1/36  */
00265  XO_RATIO_1_48   = 0x16, /*!< XO Clock signal available on the GPIO divided by 1/48  */
00266  XO_RATIO_1_64   = 0x18, /*!< XO Clock signal available on the GPIO divided by 1/64  */
00267  XO_RATIO_1_96   = 0x1A, /*!< XO Clock signal available on the GPIO divided by 1/96  */
00268  XO_RATIO_1_128  = 0x1C, /*!< XO Clock signal available on the GPIO divided by 1/128 */
00269  XO_RATIO_1_192  = 0x1E  /*!< XO Clock signal available on the GPIO divided by 1/196 */
00270 }ClockOutputXOPrescaler;
00271 
00272 #define IS_SPIRIT_CLOCK_OUTPUT_XO(RATIO) ((RATIO == XO_RATIO_1) || \
00273                                            (RATIO == XO_RATIO_2_3) || \
00274                                            (RATIO == XO_RATIO_1_2) || \
00275                                            (RATIO == XO_RATIO_1_3) || \
00276                                            (RATIO == XO_RATIO_1_4) || \
00277                                            (RATIO == XO_RATIO_1_6) || \
00278                                            (RATIO == XO_RATIO_1_8) || \
00279                                            (RATIO == XO_RATIO_1_12) || \
00280                                            (RATIO == XO_RATIO_1_16) || \
00281                                            (RATIO == XO_RATIO_1_24) || \
00282                                            (RATIO == XO_RATIO_1_36) || \
00283                                            (RATIO == XO_RATIO_1_48) || \
00284                                            (RATIO == XO_RATIO_1_64) || \
00285                                            (RATIO == XO_RATIO_1_96) || \
00286                                            (RATIO == XO_RATIO_1_128) || \
00287                                            (RATIO == XO_RATIO_1_192))
00288 
00289 /**
00290  * @brief  SPIRIT Clock Output RCO prescaler enumeration.
00291  */
00292 
00293 typedef enum
00294 {
00295  RCO_RATIO_1               = 0x00, /*!< RCO Clock signal available on the GPIO divided by 1     */
00296  RCO_RATIO_1_128       = 0x01  /*!< RCO Clock signal available on the GPIO divided by 1/128   */
00297 }ClockOutputRCOPrescaler;
00298 
00299 #define IS_SPIRIT_CLOCK_OUTPUT_RCO(RATIO) ((RATIO == RCO_RATIO_1) || \
00300                                            (RATIO == RCO_RATIO_1_128))
00301 
00302 /**
00303  * @brief  SPIRIT ExtraClockCycles enumeration.
00304  */
00305 
00306 typedef enum
00307 {
00308 EXTRA_CLOCK_CYCLES_0     = 0x00, /*!< 0   extra clock cycles provided to the MCU before switching to STANDBY state */
00309 EXTRA_CLOCK_CYCLES_64    = 0x20, /*!< 64  extra clock cycles provided to the MCU before switching to STANDBY state */
00310 EXTRA_CLOCK_CYCLES_256   = 0x40, /*!< 256 extra clock cycles provided to the MCU before switching to STANDBY state */
00311 EXTRA_CLOCK_CYCLES_512   = 0x60  /*!< 512 extra clock cycles provided to the MCU before switching to STANDBY state */
00312 }ExtraClockCycles;
00313 
00314 #define IS_SPIRIT_CLOCK_OUTPUT_EXTRA_CYCLES(CYCLES) ((CYCLES == EXTRA_CLOCK_CYCLES_0) || \
00315                                                       (CYCLES == EXTRA_CLOCK_CYCLES_64) || \
00316                                                       (CYCLES == EXTRA_CLOCK_CYCLES_256) || \
00317                                                       (CYCLES == EXTRA_CLOCK_CYCLES_512))
00318 
00319 
00320 /**
00321  * @brief  SPIRIT Clock Output initialization structure definition.
00322  */
00323 typedef struct
00324 {
00325   ClockOutputXOPrescaler   xClockOutputXOPrescaler;  /*!< Specifies the XO Ratio as clock output.
00326                                                           This parameter can be any value of @ref ClockOutputXOPrescaler */
00327 
00328   ClockOutputRCOPrescaler  xClockOutputRCOPrescaler; /*!< Specifies the RCO Ratio as clock output.
00329                                                           This parameter can be a value of @ref ClockOutputRCOPrescaler */
00330 
00331   ExtraClockCycles         xExtraClockCycles;       /*!< Specifies the Extra Clock Cycles provided before entering in Standby State.
00332                                                           This parameter can be a value of @ref ExtraClockCycles */
00333 
00334 }ClockOutputInit;
00335 
00336 
00337 
00338 /**
00339  * @}
00340  */
00341 
00342 
00343 
00344 /** @defgroup Gpio_Exported_Constants   GPIO Exported Constants
00345  * @{
00346  */
00347 
00348 
00349 /**
00350  * @}
00351  */
00352 
00353 
00354 
00355 /** @defgroup Gpio_Exported_Macros      GPIO Exported Macros
00356  * @{
00357  */
00358 
00359 
00360 /**
00361  * @}
00362  */
00363 
00364 
00365 
00366 /** @defgroup Gpio_Exported_Functions   GPIO Exported Functions
00367  * @{
00368  */
00369 
00370 void SpiritGpioInit(SGpioInit* pxGpioInitStruct);
00371 void SpiritGpioTemperatureSensor(SpiritFunctionalState xNewState);
00372 void SpiritGpioSetLevel(SpiritGpioPin xGpioX, OutputLevel xLevel);
00373 OutputLevel SpiritGpioGetLevel(SpiritGpioPin xGpioX);
00374 void SpiritGpioClockOutput(SpiritFunctionalState xNewState);
00375 void SpiritGpioClockOutputInit(ClockOutputInit* pxClockOutputInitStruct);
00376 void SpiritGpioSetXOPrescaler(ClockOutputXOPrescaler xXOPrescaler);
00377 ClockOutputXOPrescaler SpiritGpioGetXOPrescaler(void);
00378 void SpiritGpioSetRCOPrescaler(ClockOutputRCOPrescaler xRCOPrescaler);
00379 ClockOutputRCOPrescaler SpiritGpioGetRCOPrescaler(void);
00380 void SpiritGpioSetExtraClockCycles(ExtraClockCycles xExtraCycles);
00381 ExtraClockCycles SpiritGpioGetExtraClockCycles(void);
00382 
00383 
00384 /**
00385  * @}
00386  */
00387 
00388 /**
00389  * @}
00390  */
00391 
00392 
00393 /**
00394  * @}
00395  */
00396 
00397 
00398 
00399 #ifdef __cplusplus
00400 }
00401 #endif
00402 
00403 #endif
00404 
00405 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/