mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_iwdg.h@52:a51c77007319, 2013-12-02 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Dec 02 11:30:05 2013 +0000
- Revision:
- 52:a51c77007319
- Child:
- 70:c1fbde68b492
Synchronized with git revision 49df530ae72ce97ccc773d1f2c13b38e868e6abd
Full URL: https://github.com/mbedmicro/mbed/commit/49df530ae72ce97ccc773d1f2c13b38e868e6abd/
Add STMicroelectronics NUCLEO_F103RB target
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 52:a51c77007319 | 1 | /** |
mbed_official | 52:a51c77007319 | 2 | ****************************************************************************** |
mbed_official | 52:a51c77007319 | 3 | * @file stm32f10x_iwdg.h |
mbed_official | 52:a51c77007319 | 4 | * @author MCD Application Team |
mbed_official | 52:a51c77007319 | 5 | * @version V3.5.0 |
mbed_official | 52:a51c77007319 | 6 | * @date 11-March-2011 |
mbed_official | 52:a51c77007319 | 7 | * @brief This file contains all the functions prototypes for the IWDG |
mbed_official | 52:a51c77007319 | 8 | * firmware library. |
mbed_official | 52:a51c77007319 | 9 | ****************************************************************************** |
mbed_official | 52:a51c77007319 | 10 | * @attention |
mbed_official | 52:a51c77007319 | 11 | * |
mbed_official | 52:a51c77007319 | 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
mbed_official | 52:a51c77007319 | 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE |
mbed_official | 52:a51c77007319 | 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY |
mbed_official | 52:a51c77007319 | 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING |
mbed_official | 52:a51c77007319 | 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE |
mbed_official | 52:a51c77007319 | 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
mbed_official | 52:a51c77007319 | 18 | * |
mbed_official | 52:a51c77007319 | 19 | * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2> |
mbed_official | 52:a51c77007319 | 20 | ****************************************************************************** |
mbed_official | 52:a51c77007319 | 21 | */ |
mbed_official | 52:a51c77007319 | 22 | |
mbed_official | 52:a51c77007319 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 52:a51c77007319 | 24 | #ifndef __STM32F10x_IWDG_H |
mbed_official | 52:a51c77007319 | 25 | #define __STM32F10x_IWDG_H |
mbed_official | 52:a51c77007319 | 26 | |
mbed_official | 52:a51c77007319 | 27 | #ifdef __cplusplus |
mbed_official | 52:a51c77007319 | 28 | extern "C" { |
mbed_official | 52:a51c77007319 | 29 | #endif |
mbed_official | 52:a51c77007319 | 30 | |
mbed_official | 52:a51c77007319 | 31 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 52:a51c77007319 | 32 | #include "stm32f10x.h" |
mbed_official | 52:a51c77007319 | 33 | |
mbed_official | 52:a51c77007319 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver |
mbed_official | 52:a51c77007319 | 35 | * @{ |
mbed_official | 52:a51c77007319 | 36 | */ |
mbed_official | 52:a51c77007319 | 37 | |
mbed_official | 52:a51c77007319 | 38 | /** @addtogroup IWDG |
mbed_official | 52:a51c77007319 | 39 | * @{ |
mbed_official | 52:a51c77007319 | 40 | */ |
mbed_official | 52:a51c77007319 | 41 | |
mbed_official | 52:a51c77007319 | 42 | /** @defgroup IWDG_Exported_Types |
mbed_official | 52:a51c77007319 | 43 | * @{ |
mbed_official | 52:a51c77007319 | 44 | */ |
mbed_official | 52:a51c77007319 | 45 | |
mbed_official | 52:a51c77007319 | 46 | /** |
mbed_official | 52:a51c77007319 | 47 | * @} |
mbed_official | 52:a51c77007319 | 48 | */ |
mbed_official | 52:a51c77007319 | 49 | |
mbed_official | 52:a51c77007319 | 50 | /** @defgroup IWDG_Exported_Constants |
mbed_official | 52:a51c77007319 | 51 | * @{ |
mbed_official | 52:a51c77007319 | 52 | */ |
mbed_official | 52:a51c77007319 | 53 | |
mbed_official | 52:a51c77007319 | 54 | /** @defgroup IWDG_WriteAccess |
mbed_official | 52:a51c77007319 | 55 | * @{ |
mbed_official | 52:a51c77007319 | 56 | */ |
mbed_official | 52:a51c77007319 | 57 | |
mbed_official | 52:a51c77007319 | 58 | #define IWDG_WriteAccess_Enable ((uint16_t)0x5555) |
mbed_official | 52:a51c77007319 | 59 | #define IWDG_WriteAccess_Disable ((uint16_t)0x0000) |
mbed_official | 52:a51c77007319 | 60 | #define IS_IWDG_WRITE_ACCESS(ACCESS) (((ACCESS) == IWDG_WriteAccess_Enable) || \ |
mbed_official | 52:a51c77007319 | 61 | ((ACCESS) == IWDG_WriteAccess_Disable)) |
mbed_official | 52:a51c77007319 | 62 | /** |
mbed_official | 52:a51c77007319 | 63 | * @} |
mbed_official | 52:a51c77007319 | 64 | */ |
mbed_official | 52:a51c77007319 | 65 | |
mbed_official | 52:a51c77007319 | 66 | /** @defgroup IWDG_prescaler |
mbed_official | 52:a51c77007319 | 67 | * @{ |
mbed_official | 52:a51c77007319 | 68 | */ |
mbed_official | 52:a51c77007319 | 69 | |
mbed_official | 52:a51c77007319 | 70 | #define IWDG_Prescaler_4 ((uint8_t)0x00) |
mbed_official | 52:a51c77007319 | 71 | #define IWDG_Prescaler_8 ((uint8_t)0x01) |
mbed_official | 52:a51c77007319 | 72 | #define IWDG_Prescaler_16 ((uint8_t)0x02) |
mbed_official | 52:a51c77007319 | 73 | #define IWDG_Prescaler_32 ((uint8_t)0x03) |
mbed_official | 52:a51c77007319 | 74 | #define IWDG_Prescaler_64 ((uint8_t)0x04) |
mbed_official | 52:a51c77007319 | 75 | #define IWDG_Prescaler_128 ((uint8_t)0x05) |
mbed_official | 52:a51c77007319 | 76 | #define IWDG_Prescaler_256 ((uint8_t)0x06) |
mbed_official | 52:a51c77007319 | 77 | #define IS_IWDG_PRESCALER(PRESCALER) (((PRESCALER) == IWDG_Prescaler_4) || \ |
mbed_official | 52:a51c77007319 | 78 | ((PRESCALER) == IWDG_Prescaler_8) || \ |
mbed_official | 52:a51c77007319 | 79 | ((PRESCALER) == IWDG_Prescaler_16) || \ |
mbed_official | 52:a51c77007319 | 80 | ((PRESCALER) == IWDG_Prescaler_32) || \ |
mbed_official | 52:a51c77007319 | 81 | ((PRESCALER) == IWDG_Prescaler_64) || \ |
mbed_official | 52:a51c77007319 | 82 | ((PRESCALER) == IWDG_Prescaler_128)|| \ |
mbed_official | 52:a51c77007319 | 83 | ((PRESCALER) == IWDG_Prescaler_256)) |
mbed_official | 52:a51c77007319 | 84 | /** |
mbed_official | 52:a51c77007319 | 85 | * @} |
mbed_official | 52:a51c77007319 | 86 | */ |
mbed_official | 52:a51c77007319 | 87 | |
mbed_official | 52:a51c77007319 | 88 | /** @defgroup IWDG_Flag |
mbed_official | 52:a51c77007319 | 89 | * @{ |
mbed_official | 52:a51c77007319 | 90 | */ |
mbed_official | 52:a51c77007319 | 91 | |
mbed_official | 52:a51c77007319 | 92 | #define IWDG_FLAG_PVU ((uint16_t)0x0001) |
mbed_official | 52:a51c77007319 | 93 | #define IWDG_FLAG_RVU ((uint16_t)0x0002) |
mbed_official | 52:a51c77007319 | 94 | #define IS_IWDG_FLAG(FLAG) (((FLAG) == IWDG_FLAG_PVU) || ((FLAG) == IWDG_FLAG_RVU)) |
mbed_official | 52:a51c77007319 | 95 | #define IS_IWDG_RELOAD(RELOAD) ((RELOAD) <= 0xFFF) |
mbed_official | 52:a51c77007319 | 96 | /** |
mbed_official | 52:a51c77007319 | 97 | * @} |
mbed_official | 52:a51c77007319 | 98 | */ |
mbed_official | 52:a51c77007319 | 99 | |
mbed_official | 52:a51c77007319 | 100 | /** |
mbed_official | 52:a51c77007319 | 101 | * @} |
mbed_official | 52:a51c77007319 | 102 | */ |
mbed_official | 52:a51c77007319 | 103 | |
mbed_official | 52:a51c77007319 | 104 | /** @defgroup IWDG_Exported_Macros |
mbed_official | 52:a51c77007319 | 105 | * @{ |
mbed_official | 52:a51c77007319 | 106 | */ |
mbed_official | 52:a51c77007319 | 107 | |
mbed_official | 52:a51c77007319 | 108 | /** |
mbed_official | 52:a51c77007319 | 109 | * @} |
mbed_official | 52:a51c77007319 | 110 | */ |
mbed_official | 52:a51c77007319 | 111 | |
mbed_official | 52:a51c77007319 | 112 | /** @defgroup IWDG_Exported_Functions |
mbed_official | 52:a51c77007319 | 113 | * @{ |
mbed_official | 52:a51c77007319 | 114 | */ |
mbed_official | 52:a51c77007319 | 115 | |
mbed_official | 52:a51c77007319 | 116 | void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess); |
mbed_official | 52:a51c77007319 | 117 | void IWDG_SetPrescaler(uint8_t IWDG_Prescaler); |
mbed_official | 52:a51c77007319 | 118 | void IWDG_SetReload(uint16_t Reload); |
mbed_official | 52:a51c77007319 | 119 | void IWDG_ReloadCounter(void); |
mbed_official | 52:a51c77007319 | 120 | void IWDG_Enable(void); |
mbed_official | 52:a51c77007319 | 121 | FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG); |
mbed_official | 52:a51c77007319 | 122 | |
mbed_official | 52:a51c77007319 | 123 | #ifdef __cplusplus |
mbed_official | 52:a51c77007319 | 124 | } |
mbed_official | 52:a51c77007319 | 125 | #endif |
mbed_official | 52:a51c77007319 | 126 | |
mbed_official | 52:a51c77007319 | 127 | #endif /* __STM32F10x_IWDG_H */ |
mbed_official | 52:a51c77007319 | 128 | /** |
mbed_official | 52:a51c77007319 | 129 | * @} |
mbed_official | 52:a51c77007319 | 130 | */ |
mbed_official | 52:a51c77007319 | 131 | |
mbed_official | 52:a51c77007319 | 132 | /** |
mbed_official | 52:a51c77007319 | 133 | * @} |
mbed_official | 52:a51c77007319 | 134 | */ |
mbed_official | 52:a51c77007319 | 135 | |
mbed_official | 52:a51c77007319 | 136 | /** |
mbed_official | 52:a51c77007319 | 137 | * @} |
mbed_official | 52:a51c77007319 | 138 | */ |
mbed_official | 52:a51c77007319 | 139 | |
mbed_official | 52:a51c77007319 | 140 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ |