센서보드 RF IRQ 테스트 중

Fork of stm-spirit1-rf-driver by ST

Committer:
Wolfgang Betz
Date:
Fri Sep 01 08:51:04 2017 +0200
Revision:
75:8dc65c09af67
Parent:
67:93bec0baf1de
Clarification on radio configuration

Who changed what in which revision?

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