Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
stm32f30x_wwdg.h
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f30x_wwdg.h 00004 * @author MCD Application Team 00005 * @version V1.2.3 00006 * @date 10-July-2015 00007 * @brief This file contains all the functions prototypes for the WWDG 00008 * firmware library. 00009 ****************************************************************************** 00010 * @attention 00011 * 00012 * <h2><center>© COPYRIGHT 2015 STMicroelectronics</center></h2> 00013 * 00014 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00015 * You may not use this file except in compliance with the License. 00016 * You may obtain a copy of the License at: 00017 * 00018 * http://www.st.com/software_license_agreement_liberty_v2 00019 * 00020 * Unless required by applicable law or agreed to in writing, software 00021 * distributed under the License is distributed on an "AS IS" BASIS, 00022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00023 * See the License for the specific language governing permissions and 00024 * limitations under the License. 00025 * 00026 ****************************************************************************** 00027 */ 00028 00029 /* Define to prevent recursive inclusion -------------------------------------*/ 00030 #ifndef __STM32F30x_WWDG_H 00031 #define __STM32F30x_WWDG_H 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 /* Includes ------------------------------------------------------------------*/ 00038 #include "stm32f30x.h" 00039 00040 /** @addtogroup STM32F30x_StdPeriph_Driver 00041 * @{ 00042 */ 00043 00044 /** @addtogroup WWDG 00045 * @{ 00046 */ 00047 /* Exported types ------------------------------------------------------------*/ 00048 /* Exported constants --------------------------------------------------------*/ 00049 00050 /** @defgroup WWDG_Exported_Constants 00051 * @{ 00052 */ 00053 00054 /** @defgroup WWDG_Prescaler 00055 * @{ 00056 */ 00057 00058 #define WWDG_Prescaler_1 ((uint32_t)0x00000000) 00059 #define WWDG_Prescaler_2 ((uint32_t)0x00000080) 00060 #define WWDG_Prescaler_4 ((uint32_t)0x00000100) 00061 #define WWDG_Prescaler_8 ((uint32_t)0x00000180) 00062 #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \ 00063 ((PRESCALER) == WWDG_Prescaler_2) || \ 00064 ((PRESCALER) == WWDG_Prescaler_4) || \ 00065 ((PRESCALER) == WWDG_Prescaler_8)) 00066 #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F) 00067 #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F)) 00068 00069 /** 00070 * @} 00071 */ 00072 00073 /** 00074 * @} 00075 */ 00076 00077 /* Exported macro ------------------------------------------------------------*/ 00078 /* Exported functions ------------------------------------------------------- */ 00079 /* Function used to set the WWDG configuration to the default reset state ****/ 00080 void WWDG_DeInit(void); 00081 00082 /* Prescaler, Refresh window and Counter configuration functions **************/ 00083 void WWDG_SetPrescaler(uint32_t WWDG_Prescaler); 00084 void WWDG_SetWindowValue(uint8_t WindowValue); 00085 void WWDG_EnableIT(void); 00086 void WWDG_SetCounter(uint8_t Counter); 00087 00088 /* WWDG activation functions **************************************************/ 00089 void WWDG_Enable(uint8_t Counter); 00090 00091 /* Interrupts and flags management functions **********************************/ 00092 FlagStatus WWDG_GetFlagStatus(void); 00093 void WWDG_ClearFlag(void); 00094 00095 #ifdef __cplusplus 00096 } 00097 #endif 00098 00099 #endif /* __STM32F30x_WWDG_H */ 00100 00101 /** 00102 * @} 00103 */ 00104 00105 /** 00106 * @} 00107 */ 00108 00109 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 17:34:45 by
