version_2.0

Dependents:   cc3000_ping_demo_try_2

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Mon Apr 07 18:28:36 2014 +0100
Revision:
82:6473597d706e
Release 82 of the mbed library

Main changes:

- support for K64F
- Revisited Nordic code structure
- Test infrastructure improvements
- various bug fixes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 82:6473597d706e 1 /**
bogdanm 82:6473597d706e 2 ******************************************************************************
bogdanm 82:6473597d706e 3 * @file stm32f30x_wwdg.h
bogdanm 82:6473597d706e 4 * @author MCD Application Team
bogdanm 82:6473597d706e 5 * @version V1.1.0
bogdanm 82:6473597d706e 6 * @date 27-February-2014
bogdanm 82:6473597d706e 7 * @brief This file contains all the functions prototypes for the WWDG
bogdanm 82:6473597d706e 8 * firmware library.
bogdanm 82:6473597d706e 9 ******************************************************************************
bogdanm 82:6473597d706e 10 * @attention
bogdanm 82:6473597d706e 11 *
bogdanm 82:6473597d706e 12 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
bogdanm 82:6473597d706e 13 *
bogdanm 82:6473597d706e 14 * Redistribution and use in source and binary forms, with or without modification,
bogdanm 82:6473597d706e 15 * are permitted provided that the following conditions are met:
bogdanm 82:6473597d706e 16 * 1. Redistributions of source code must retain the above copyright notice,
bogdanm 82:6473597d706e 17 * this list of conditions and the following disclaimer.
bogdanm 82:6473597d706e 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
bogdanm 82:6473597d706e 19 * this list of conditions and the following disclaimer in the documentation
bogdanm 82:6473597d706e 20 * and/or other materials provided with the distribution.
bogdanm 82:6473597d706e 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bogdanm 82:6473597d706e 22 * may be used to endorse or promote products derived from this software
bogdanm 82:6473597d706e 23 * without specific prior written permission.
bogdanm 82:6473597d706e 24 *
bogdanm 82:6473597d706e 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 82:6473597d706e 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 82:6473597d706e 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bogdanm 82:6473597d706e 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bogdanm 82:6473597d706e 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bogdanm 82:6473597d706e 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bogdanm 82:6473597d706e 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bogdanm 82:6473597d706e 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bogdanm 82:6473597d706e 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bogdanm 82:6473597d706e 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bogdanm 82:6473597d706e 35 *
bogdanm 82:6473597d706e 36 ******************************************************************************
bogdanm 82:6473597d706e 37 */
bogdanm 82:6473597d706e 38
bogdanm 82:6473597d706e 39 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 82:6473597d706e 40 #ifndef __STM32F30x_WWDG_H
bogdanm 82:6473597d706e 41 #define __STM32F30x_WWDG_H
bogdanm 82:6473597d706e 42
bogdanm 82:6473597d706e 43 #ifdef __cplusplus
bogdanm 82:6473597d706e 44 extern "C" {
bogdanm 82:6473597d706e 45 #endif
bogdanm 82:6473597d706e 46
bogdanm 82:6473597d706e 47 /* Includes ------------------------------------------------------------------*/
bogdanm 82:6473597d706e 48 #include "stm32f30x.h"
bogdanm 82:6473597d706e 49
bogdanm 82:6473597d706e 50 /** @addtogroup STM32F30x_StdPeriph_Driver
bogdanm 82:6473597d706e 51 * @{
bogdanm 82:6473597d706e 52 */
bogdanm 82:6473597d706e 53
bogdanm 82:6473597d706e 54 /** @addtogroup WWDG
bogdanm 82:6473597d706e 55 * @{
bogdanm 82:6473597d706e 56 */
bogdanm 82:6473597d706e 57 /* Exported types ------------------------------------------------------------*/
bogdanm 82:6473597d706e 58 /* Exported constants --------------------------------------------------------*/
bogdanm 82:6473597d706e 59
bogdanm 82:6473597d706e 60 /** @defgroup WWDG_Exported_Constants
bogdanm 82:6473597d706e 61 * @{
bogdanm 82:6473597d706e 62 */
bogdanm 82:6473597d706e 63
bogdanm 82:6473597d706e 64 /** @defgroup WWDG_Prescaler
bogdanm 82:6473597d706e 65 * @{
bogdanm 82:6473597d706e 66 */
bogdanm 82:6473597d706e 67
bogdanm 82:6473597d706e 68 #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
bogdanm 82:6473597d706e 69 #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
bogdanm 82:6473597d706e 70 #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
bogdanm 82:6473597d706e 71 #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
bogdanm 82:6473597d706e 72 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
bogdanm 82:6473597d706e 73 ((PRESCALER) == WWDG_Prescaler_2) || \
bogdanm 82:6473597d706e 74 ((PRESCALER) == WWDG_Prescaler_4) || \
bogdanm 82:6473597d706e 75 ((PRESCALER) == WWDG_Prescaler_8))
bogdanm 82:6473597d706e 76 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
bogdanm 82:6473597d706e 77 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
bogdanm 82:6473597d706e 78
bogdanm 82:6473597d706e 79 /**
bogdanm 82:6473597d706e 80 * @}
bogdanm 82:6473597d706e 81 */
bogdanm 82:6473597d706e 82
bogdanm 82:6473597d706e 83 /**
bogdanm 82:6473597d706e 84 * @}
bogdanm 82:6473597d706e 85 */
bogdanm 82:6473597d706e 86
bogdanm 82:6473597d706e 87 /* Exported macro ------------------------------------------------------------*/
bogdanm 82:6473597d706e 88 /* Exported functions ------------------------------------------------------- */
bogdanm 82:6473597d706e 89 /* Function used to set the WWDG configuration to the default reset state ****/
bogdanm 82:6473597d706e 90 void WWDG_DeInit(void);
bogdanm 82:6473597d706e 91
bogdanm 82:6473597d706e 92 /* Prescaler, Refresh window and Counter configuration functions **************/
bogdanm 82:6473597d706e 93 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
bogdanm 82:6473597d706e 94 void WWDG_SetWindowValue(uint8_t WindowValue);
bogdanm 82:6473597d706e 95 void WWDG_EnableIT(void);
bogdanm 82:6473597d706e 96 void WWDG_SetCounter(uint8_t Counter);
bogdanm 82:6473597d706e 97
bogdanm 82:6473597d706e 98 /* WWDG activation functions **************************************************/
bogdanm 82:6473597d706e 99 void WWDG_Enable(uint8_t Counter);
bogdanm 82:6473597d706e 100
bogdanm 82:6473597d706e 101 /* Interrupts and flags management functions **********************************/
bogdanm 82:6473597d706e 102 FlagStatus WWDG_GetFlagStatus(void);
bogdanm 82:6473597d706e 103 void WWDG_ClearFlag(void);
bogdanm 82:6473597d706e 104
bogdanm 82:6473597d706e 105 #ifdef __cplusplus
bogdanm 82:6473597d706e 106 }
bogdanm 82:6473597d706e 107 #endif
bogdanm 82:6473597d706e 108
bogdanm 82:6473597d706e 109 #endif /* __STM32F30x_WWDG_H */
bogdanm 82:6473597d706e 110
bogdanm 82:6473597d706e 111 /**
bogdanm 82:6473597d706e 112 * @}
bogdanm 82:6473597d706e 113 */
bogdanm 82:6473597d706e 114
bogdanm 82:6473597d706e 115 /**
bogdanm 82:6473597d706e 116 * @}
bogdanm 82:6473597d706e 117 */
bogdanm 82:6473597d706e 118
bogdanm 82:6473597d706e 119 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/