Fork of my MQTTGateway

Dependencies:   mbed-http

Committer:
vpcola
Date:
Sat Apr 08 14:45:51 2017 +0000
Revision:
0:f1d3878b8dd9
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vpcola 0:f1d3878b8dd9 1 /**
vpcola 0:f1d3878b8dd9 2 ******************************************************************************
vpcola 0:f1d3878b8dd9 3 * @file radio_shield_config.h
vpcola 0:f1d3878b8dd9 4 * @author System Lab - NOIDA
vpcola 0:f1d3878b8dd9 5 * @version V1.0.0
vpcola 0:f1d3878b8dd9 6 * @date 15-May-2014
vpcola 0:f1d3878b8dd9 7 * @brief This file contains definitions for:
vpcola 0:f1d3878b8dd9 8 * - LEDs and push-button available on RF shields
vpcola 0:f1d3878b8dd9 9 ******************************************************************************
vpcola 0:f1d3878b8dd9 10 * @attention
vpcola 0:f1d3878b8dd9 11 *
vpcola 0:f1d3878b8dd9 12 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
vpcola 0:f1d3878b8dd9 13 *
vpcola 0:f1d3878b8dd9 14 * Redistribution and use in source and binary forms, with or without modification,
vpcola 0:f1d3878b8dd9 15 * are permitted provided that the following conditions are met:
vpcola 0:f1d3878b8dd9 16 * 1. Redistributions of source code must retain the above copyright notice,
vpcola 0:f1d3878b8dd9 17 * this list of conditions and the following disclaimer.
vpcola 0:f1d3878b8dd9 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
vpcola 0:f1d3878b8dd9 19 * this list of conditions and the following disclaimer in the documentation
vpcola 0:f1d3878b8dd9 20 * and/or other materials provided with the distribution.
vpcola 0:f1d3878b8dd9 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
vpcola 0:f1d3878b8dd9 22 * may be used to endorse or promote products derived from this software
vpcola 0:f1d3878b8dd9 23 * without specific prior written permission.
vpcola 0:f1d3878b8dd9 24 *
vpcola 0:f1d3878b8dd9 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
vpcola 0:f1d3878b8dd9 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
vpcola 0:f1d3878b8dd9 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
vpcola 0:f1d3878b8dd9 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
vpcola 0:f1d3878b8dd9 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
vpcola 0:f1d3878b8dd9 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
vpcola 0:f1d3878b8dd9 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
vpcola 0:f1d3878b8dd9 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
vpcola 0:f1d3878b8dd9 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
vpcola 0:f1d3878b8dd9 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
vpcola 0:f1d3878b8dd9 35 *
vpcola 0:f1d3878b8dd9 36 ******************************************************************************
vpcola 0:f1d3878b8dd9 37 */
vpcola 0:f1d3878b8dd9 38
vpcola 0:f1d3878b8dd9 39 /* Define to prevent recursive inclusion -------------------------------------*/
vpcola 0:f1d3878b8dd9 40 #ifndef __RADIO_SHIELD_CONFIG_H
vpcola 0:f1d3878b8dd9 41 #define __RADIO_SHIELD_CONFIG_H
vpcola 0:f1d3878b8dd9 42
vpcola 0:f1d3878b8dd9 43 #ifdef __cplusplus
vpcola 0:f1d3878b8dd9 44 extern "C" {
vpcola 0:f1d3878b8dd9 45 #endif
vpcola 0:f1d3878b8dd9 46
vpcola 0:f1d3878b8dd9 47 /* Includes ------------------------------------------------------------------*/
vpcola 0:f1d3878b8dd9 48 #ifdef USE_STM32L1XX_NUCLEO
vpcola 0:f1d3878b8dd9 49 // #include "stm32l1xx_hal.h"
vpcola 0:f1d3878b8dd9 50 #endif
vpcola 0:f1d3878b8dd9 51
vpcola 0:f1d3878b8dd9 52 #ifdef USE_STM32F4XX_NUCLEO
vpcola 0:f1d3878b8dd9 53 // #include "stm32f4xx_hal.h"
vpcola 0:f1d3878b8dd9 54 #endif
vpcola 0:f1d3878b8dd9 55
vpcola 0:f1d3878b8dd9 56 /** @addtogroup BSP
vpcola 0:f1d3878b8dd9 57 * @{
vpcola 0:f1d3878b8dd9 58 */
vpcola 0:f1d3878b8dd9 59
vpcola 0:f1d3878b8dd9 60 /** @addtogroup X-NUCLEO-IDS02Ax
vpcola 0:f1d3878b8dd9 61 * @{
vpcola 0:f1d3878b8dd9 62 */
vpcola 0:f1d3878b8dd9 63
vpcola 0:f1d3878b8dd9 64 /** @addtogroup RADIO_SHILED_LOW_LEVEL
vpcola 0:f1d3878b8dd9 65 * @{
vpcola 0:f1d3878b8dd9 66 */
vpcola 0:f1d3878b8dd9 67
vpcola 0:f1d3878b8dd9 68 /* Exported types ------------------------------------------------------------*/
vpcola 0:f1d3878b8dd9 69 typedef enum
vpcola 0:f1d3878b8dd9 70 {
vpcola 0:f1d3878b8dd9 71 RADIO_SHIELD_LED = 0
vpcola 0:f1d3878b8dd9 72 } Led_t;
vpcola 0:f1d3878b8dd9 73
vpcola 0:f1d3878b8dd9 74
vpcola 0:f1d3878b8dd9 75
vpcola 0:f1d3878b8dd9 76 /* Exported constants --------------------------------------------------------*/
vpcola 0:f1d3878b8dd9 77
vpcola 0:f1d3878b8dd9 78
vpcola 0:f1d3878b8dd9 79 /* Exported macro ------------------------------------------------------------*/
vpcola 0:f1d3878b8dd9 80 /** @addtogroup RF_SHIELD_CONFIG_LOW_LEVEL_LED
vpcola 0:f1d3878b8dd9 81 * @{
vpcola 0:f1d3878b8dd9 82 */
vpcola 0:f1d3878b8dd9 83 #define RADIO_SHIELD_LEDn ((uint8_t)1)
vpcola 0:f1d3878b8dd9 84
vpcola 0:f1d3878b8dd9 85 #define RADIO_SHIELD_LED_GPIO_PIN GPIO_PIN_4 /*Rx Indicator LED*/
vpcola 0:f1d3878b8dd9 86 #define RADIO_SHIELD_LED_GPIO_PORT GPIOB
vpcola 0:f1d3878b8dd9 87 #define RADIO_SHIELD_LED_GPIO_CLK_ENABLE() __GPIOB_CLK_ENABLE()
vpcola 0:f1d3878b8dd9 88 #define RADIO_SHIELD_LED_GPIO_CLK_DISABLE() __GPIOB_CLK_DISABLE()
vpcola 0:f1d3878b8dd9 89
vpcola 0:f1d3878b8dd9 90
vpcola 0:f1d3878b8dd9 91 /* Exported Variables ------------------------------------------------------------*/
vpcola 0:f1d3878b8dd9 92
vpcola 0:f1d3878b8dd9 93
vpcola 0:f1d3878b8dd9 94 /* Exported functions ------------------------------------------------------- */
vpcola 0:f1d3878b8dd9 95 void RadioShieldLedInit(Led_t Led);
vpcola 0:f1d3878b8dd9 96 void RadioShieldLedOn(Led_t Led);
vpcola 0:f1d3878b8dd9 97 void RadioShieldLedOff(Led_t Led);
vpcola 0:f1d3878b8dd9 98 void RadioShieldLedToggle(Led_t Led);
vpcola 0:f1d3878b8dd9 99
vpcola 0:f1d3878b8dd9 100
vpcola 0:f1d3878b8dd9 101
vpcola 0:f1d3878b8dd9 102 #ifdef __cplusplus
vpcola 0:f1d3878b8dd9 103 }
vpcola 0:f1d3878b8dd9 104 #endif
vpcola 0:f1d3878b8dd9 105
vpcola 0:f1d3878b8dd9 106 #endif /* __RADIO_SHIELD_CONFIG_H */
vpcola 0:f1d3878b8dd9 107 /**
vpcola 0:f1d3878b8dd9 108 * @}
vpcola 0:f1d3878b8dd9 109 */
vpcola 0:f1d3878b8dd9 110
vpcola 0:f1d3878b8dd9 111 /**
vpcola 0:f1d3878b8dd9 112 * @}
vpcola 0:f1d3878b8dd9 113 */
vpcola 0:f1d3878b8dd9 114
vpcola 0:f1d3878b8dd9 115 /**
vpcola 0:f1d3878b8dd9 116 * @}
vpcola 0:f1d3878b8dd9 117 */
vpcola 0:f1d3878b8dd9 118
vpcola 0:f1d3878b8dd9 119 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
vpcola 0:f1d3878b8dd9 120