Version of easy-connect with the u-blox cellular platforms C027 and C030 added.

Dependents:   HelloMQTT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers radio_shield_config.h Source File

radio_shield_config.h

Go to the documentation of this file.
00001 /**
00002 ******************************************************************************
00003 * @file    radio_shield_config.h
00004 * @author  System Lab - NOIDA
00005 * @version V1.0.0
00006 * @date    15-May-2014
00007 * @brief   This file contains definitions for:
00008 *          - LEDs and push-button available on RF shields
00009 ******************************************************************************
00010 * @attention
00011 *
00012 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
00013 *
00014 * Redistribution and use in source and binary forms, with or without modification,
00015 * are permitted provided that the following conditions are met:
00016 *   1. Redistributions of source code must retain the above copyright notice,
00017 *      this list of conditions and the following disclaimer.
00018 *   2. Redistributions in binary form must reproduce the above copyright notice,
00019 *      this list of conditions and the following disclaimer in the documentation
00020 *      and/or other materials provided with the distribution.
00021 *   3. Neither the name of STMicroelectronics nor the names of its contributors
00022 *      may be used to endorse or promote products derived from this software
00023 *       without specific prior written permission.
00024 *
00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00026 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00027 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00028 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00029 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00030 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00031 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00032 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00033 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00034 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00035 *
00036 ******************************************************************************
00037 */ 
00038   
00039 /* Define to prevent recursive inclusion -------------------------------------*/
00040 #ifndef __RADIO_SHIELD_CONFIG_H
00041 #define __RADIO_SHIELD_CONFIG_H
00042 
00043 #ifdef __cplusplus
00044  extern "C" {
00045 #endif
00046 
00047 /* Includes ------------------------------------------------------------------*/
00048 #ifdef USE_STM32L1XX_NUCLEO
00049 // #include "stm32l1xx_hal.h"
00050 #endif
00051 
00052 #ifdef USE_STM32F4XX_NUCLEO
00053 // #include "stm32f4xx_hal.h"
00054 #endif
00055 
00056 /** @addtogroup BSP
00057   * @{
00058   */
00059 
00060 /** @addtogroup X-NUCLEO-IDS02Ax
00061   * @{
00062   */
00063 
00064 /** @addtogroup RADIO_SHILED_LOW_LEVEL
00065   * @{
00066   */   
00067    
00068 /* Exported types ------------------------------------------------------------*/
00069 typedef enum 
00070 {
00071   RADIO_SHIELD_LED = 0
00072 } Led_t;
00073  
00074 
00075 
00076 /* Exported constants --------------------------------------------------------*/
00077 
00078 
00079 /* Exported macro ------------------------------------------------------------*/
00080  /** @addtogroup RF_SHIELD_CONFIG_LOW_LEVEL_LED
00081  * @{
00082  */
00083 #define RADIO_SHIELD_LEDn                               ((uint8_t)1)
00084 
00085 #define RADIO_SHIELD_LED_GPIO_PIN                      GPIO_PIN_4                         /*Rx Indicator LED*/
00086 #define RADIO_SHIELD_LED_GPIO_PORT                     GPIOB
00087 #define RADIO_SHIELD_LED_GPIO_CLK_ENABLE()           __GPIOB_CLK_ENABLE()  
00088 #define RADIO_SHIELD_LED_GPIO_CLK_DISABLE()          __GPIOB_CLK_DISABLE()
00089 
00090 
00091 /* Exported Variables ------------------------------------------------------------*/
00092 
00093 
00094 /* Exported functions ------------------------------------------------------- */
00095 void RadioShieldLedInit(Led_t Led);
00096 void RadioShieldLedOn(Led_t Led);
00097 void RadioShieldLedOff(Led_t Led);
00098 void RadioShieldLedToggle(Led_t Led);                 
00099                 
00100 
00101 
00102 #ifdef __cplusplus
00103 }
00104 #endif
00105 
00106 #endif /* __RADIO_SHIELD_CONFIG_H */
00107 /**
00108   * @}
00109   */ 
00110 
00111 /**
00112   * @}
00113   */
00114 
00115 /**
00116   * @}
00117   */ 
00118     
00119 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
00120