STM32F37 Standard Peripheral bibliotheek
1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Enumerations
Enumerator
Groups
stm32f37x_iwdg.h
Go to the documentation of this file.
1
29
/* Define to prevent recursive inclusion -------------------------------------*/
30
#ifndef __STM32F37X_IWDG_H
31
#define __STM32F37X_IWDG_H
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
/* Includes ------------------------------------------------------------------*/
38
#include "stm32f37x.h"
39
48
/* Exported types ------------------------------------------------------------*/
49
/* Exported constants --------------------------------------------------------*/
50
59
#define IWDG_WriteAccess_Enable ((uint16_t)0x5555)
60
#define IWDG_WriteAccess_Disable ((uint16_t)0x0000)
61
#define IS_IWDG_WRITE_ACCESS(ACCESS) (((ACCESS) == IWDG_WriteAccess_Enable) || \
62
((ACCESS) == IWDG_WriteAccess_Disable))
63
71
#define IWDG_Prescaler_4 ((uint8_t)0x00)
72
#define IWDG_Prescaler_8 ((uint8_t)0x01)
73
#define IWDG_Prescaler_16 ((uint8_t)0x02)
74
#define IWDG_Prescaler_32 ((uint8_t)0x03)
75
#define IWDG_Prescaler_64 ((uint8_t)0x04)
76
#define IWDG_Prescaler_128 ((uint8_t)0x05)
77
#define IWDG_Prescaler_256 ((uint8_t)0x06)
78
#define IS_IWDG_PRESCALER(PRESCALER) (((PRESCALER) == IWDG_Prescaler_4) || \
79
((PRESCALER) == IWDG_Prescaler_8) || \
80
((PRESCALER) == IWDG_Prescaler_16) || \
81
((PRESCALER) == IWDG_Prescaler_32) || \
82
((PRESCALER) == IWDG_Prescaler_64) || \
83
((PRESCALER) == IWDG_Prescaler_128)|| \
84
((PRESCALER) == IWDG_Prescaler_256))
85
93
#define IWDG_FLAG_PVU IWDG_SR_PVU
94
#define IWDG_FLAG_RVU IWDG_SR_RVU
95
#define IWDG_FLAG_WVU IWDG_SR_WVU
96
#define IS_IWDG_FLAG(FLAG) (((FLAG) == IWDG_FLAG_PVU) || ((FLAG) == IWDG_FLAG_RVU) || \
97
((FLAG) == IWDG_FLAG_WVU))
98
99
#define IS_IWDG_RELOAD(RELOAD) ((RELOAD) <= 0xFFF)
100
101
#define IS_IWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0xFFF)
102
110
/* Exported macro ------------------------------------------------------------*/
111
/* Exported functions --------------------------------------------------------*/
112
113
/* Prescaler and Counter configuration functions ******************************/
114
void
IWDG_WriteAccessCmd
(uint16_t IWDG_WriteAccess);
115
void
IWDG_SetPrescaler
(uint8_t IWDG_Prescaler);
116
void
IWDG_SetReload
(uint16_t Reload);
117
void
IWDG_ReloadCounter
(
void
);
118
void
IWDG_SetWindowValue
(uint16_t WindowValue);
119
120
/* IWDG activation function ***************************************************/
121
void
IWDG_Enable
(
void
);
122
123
/* Flag management function ***************************************************/
124
FlagStatus
IWDG_GetFlagStatus
(uint16_t IWDG_FLAG);
125
126
#ifdef __cplusplus
127
}
128
#endif
129
130
#endif
/* __STM32F37X_IWDG_H */
131
140
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
inc
stm32f37x_iwdg.h
Generated on Thu Feb 13 2014 18:57:09 for STM32F37 Standard Peripheral bibliotheek by
1.8.3.1