The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
emilmont
Date:
Fri Feb 14 14:36:43 2014 +0000
Revision:
77:869cf507173a
Child:
81:7d30d6019079
Release 77 of the mbed library

Main changes:
* Add target NUCLEO_F030R8
* Add target NUCLEO_F401RE
* Add target NUCLEO_F103RB
* Add target NUCLEO_L152RE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 77:869cf507173a 1 /**
emilmont 77:869cf507173a 2 ******************************************************************************
emilmont 77:869cf507173a 3 * @file stm32f0xx_wwdg.h
emilmont 77:869cf507173a 4 * @author MCD Application Team
emilmont 77:869cf507173a 5 * @version V1.3.0
emilmont 77:869cf507173a 6 * @date 16-January-2014
emilmont 77:869cf507173a 7 * @brief This file contains all the functions prototypes for the WWDG
emilmont 77:869cf507173a 8 * firmware library.
emilmont 77:869cf507173a 9 ******************************************************************************
emilmont 77:869cf507173a 10 * @attention
emilmont 77:869cf507173a 11 *
emilmont 77:869cf507173a 12 * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
emilmont 77:869cf507173a 13 *
emilmont 77:869cf507173a 14 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
emilmont 77:869cf507173a 15 * You may not use this file except in compliance with the License.
emilmont 77:869cf507173a 16 * You may obtain a copy of the License at:
emilmont 77:869cf507173a 17 *
emilmont 77:869cf507173a 18 * http://www.st.com/software_license_agreement_liberty_v2
emilmont 77:869cf507173a 19 *
emilmont 77:869cf507173a 20 * Unless required by applicable law or agreed to in writing, software
emilmont 77:869cf507173a 21 * distributed under the License is distributed on an "AS IS" BASIS,
emilmont 77:869cf507173a 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
emilmont 77:869cf507173a 23 * See the License for the specific language governing permissions and
emilmont 77:869cf507173a 24 * limitations under the License.
emilmont 77:869cf507173a 25 *
emilmont 77:869cf507173a 26 ******************************************************************************
emilmont 77:869cf507173a 27 */
emilmont 77:869cf507173a 28
emilmont 77:869cf507173a 29 /* Define to prevent recursive inclusion -------------------------------------*/
emilmont 77:869cf507173a 30 #ifndef __STM32F0XX_WWDG_H
emilmont 77:869cf507173a 31 #define __STM32F0XX_WWDG_H
emilmont 77:869cf507173a 32
emilmont 77:869cf507173a 33 #ifdef __cplusplus
emilmont 77:869cf507173a 34 extern "C" {
emilmont 77:869cf507173a 35 #endif
emilmont 77:869cf507173a 36
emilmont 77:869cf507173a 37 /* Includes ------------------------------------------------------------------*/
emilmont 77:869cf507173a 38 #include "stm32f0xx.h"
emilmont 77:869cf507173a 39
emilmont 77:869cf507173a 40 /** @addtogroup STM32F0xx_StdPeriph_Driver
emilmont 77:869cf507173a 41 * @{
emilmont 77:869cf507173a 42 */
emilmont 77:869cf507173a 43
emilmont 77:869cf507173a 44 /** @addtogroup WWDG
emilmont 77:869cf507173a 45 * @{
emilmont 77:869cf507173a 46 */
emilmont 77:869cf507173a 47 /* Exported types ------------------------------------------------------------*/
emilmont 77:869cf507173a 48 /* Exported constants --------------------------------------------------------*/
emilmont 77:869cf507173a 49
emilmont 77:869cf507173a 50 /** @defgroup WWDG_Exported_Constants
emilmont 77:869cf507173a 51 * @{
emilmont 77:869cf507173a 52 */
emilmont 77:869cf507173a 53
emilmont 77:869cf507173a 54 /** @defgroup WWDG_Prescaler
emilmont 77:869cf507173a 55 * @{
emilmont 77:869cf507173a 56 */
emilmont 77:869cf507173a 57
emilmont 77:869cf507173a 58 #define WWDG_Prescaler_1 ((uint32_t)0x00000000)
emilmont 77:869cf507173a 59 #define WWDG_Prescaler_2 ((uint32_t)0x00000080)
emilmont 77:869cf507173a 60 #define WWDG_Prescaler_4 ((uint32_t)0x00000100)
emilmont 77:869cf507173a 61 #define WWDG_Prescaler_8 ((uint32_t)0x00000180)
emilmont 77:869cf507173a 62 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \
emilmont 77:869cf507173a 63 ((PRESCALER) == WWDG_Prescaler_2) || \
emilmont 77:869cf507173a 64 ((PRESCALER) == WWDG_Prescaler_4) || \
emilmont 77:869cf507173a 65 ((PRESCALER) == WWDG_Prescaler_8))
emilmont 77:869cf507173a 66 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F)
emilmont 77:869cf507173a 67 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F))
emilmont 77:869cf507173a 68
emilmont 77:869cf507173a 69 /**
emilmont 77:869cf507173a 70 * @}
emilmont 77:869cf507173a 71 */
emilmont 77:869cf507173a 72
emilmont 77:869cf507173a 73 /**
emilmont 77:869cf507173a 74 * @}
emilmont 77:869cf507173a 75 */
emilmont 77:869cf507173a 76
emilmont 77:869cf507173a 77 /* Exported macro ------------------------------------------------------------*/
emilmont 77:869cf507173a 78 /* Exported functions ------------------------------------------------------- */
emilmont 77:869cf507173a 79 /* Function used to set the WWDG configuration to the default reset state ****/
emilmont 77:869cf507173a 80 void WWDG_DeInit(void);
emilmont 77:869cf507173a 81
emilmont 77:869cf507173a 82 /* Prescaler, Refresh window and Counter configuration functions **************/
emilmont 77:869cf507173a 83 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler);
emilmont 77:869cf507173a 84 void WWDG_SetWindowValue(uint8_t WindowValue);
emilmont 77:869cf507173a 85 void WWDG_EnableIT(void);
emilmont 77:869cf507173a 86 void WWDG_SetCounter(uint8_t Counter);
emilmont 77:869cf507173a 87
emilmont 77:869cf507173a 88 /* WWDG activation functions **************************************************/
emilmont 77:869cf507173a 89 void WWDG_Enable(uint8_t Counter);
emilmont 77:869cf507173a 90
emilmont 77:869cf507173a 91 /* Interrupts and flags management functions **********************************/
emilmont 77:869cf507173a 92 FlagStatus WWDG_GetFlagStatus(void);
emilmont 77:869cf507173a 93 void WWDG_ClearFlag(void);
emilmont 77:869cf507173a 94
emilmont 77:869cf507173a 95 #ifdef __cplusplus
emilmont 77:869cf507173a 96 }
emilmont 77:869cf507173a 97 #endif
emilmont 77:869cf507173a 98
emilmont 77:869cf507173a 99 #endif /* __STM32F0XX_WWDG_H */
emilmont 77:869cf507173a 100
emilmont 77:869cf507173a 101 /**
emilmont 77:869cf507173a 102 * @}
emilmont 77:869cf507173a 103 */
emilmont 77:869cf507173a 104
emilmont 77:869cf507173a 105 /**
emilmont 77:869cf507173a 106 * @}
emilmont 77:869cf507173a 107 */
emilmont 77:869cf507173a 108
emilmont 77:869cf507173a 109 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/