libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
RTC control register (RTC_CR) values

Note: Bits [31:24] are reserved, and must be kept at reset value. More...

Collaboration diagram for RTC control register (RTC_CR) values:

Modules

 RTC_CR_OSEL: Output selection values
 These bits are used to select the flag to be routed to AFO_ALARM RTC output.
 

Macros

#define RTC_CR_COE   (1<<23)
 Calibration output enable. More...
 
#define RTC_CR_OSEL_SHIFT   21
 
#define RTC_CR_OSEL_MASK   (0x3)
 
#define RTC_CR_POL   (1<<20)
 Output polarity. More...
 
#define RTC_CR_COSEL   (1<<19)
 Calibration output selection. More...
 
#define RTC_CR_BKP   (1<<18)
 Backup. More...
 
#define RTC_CR_SUB1H   (1<<17)
 Subtract 1 hour (winter time change) More...
 
#define RTC_CR_ADD1H   (1<<16)
 Add 1 hour (summer time change) More...
 
#define RTC_CR_TSIE   (1<<15)
 Timestamp interrupt enable. More...
 
#define RTC_CR_WUTIE   (1<<14)
 Wakeup timer interrupt enable. More...
 
#define RTC_CR_ALRBIE   (1<<13)
 Alarm B interrupt enable. More...
 
#define RTC_CR_ALRAIE   (1<<12)
 Alarm A interrupt enable. More...
 
#define RTC_CR_TSE   (1<<11)
 Time stamp enable. More...
 
#define RTC_CR_WUTE   (1<<10)
 Wakeup timer enable. More...
 
#define RTC_CR_ALRBE   (1<<9)
 Alarm B enable. More...
 
#define RTC_CR_ALRAE   (1<<8)
 Alarm A enable. More...
 
#define RTC_CR_DCE   (1<<7)
 Course digital calibration enable. More...
 
#define RTC_CR_FMT   (1<<6)
 Hour format. More...
 
#define RTC_CR_BYPSHAD   (1<<5)
 Bypass the shadow registers. More...
 
#define RTC_CR_REFCKON   (1<<4)
 Reference clock detection enable. More...
 
#define RTC_CR_TSEDGE   (1<<3)
 Timestamp event active edge. More...
 
#define RTC_CR_WUCLKSEL_SHIFT   (0)
 
#define RTC_CR_WUCLKSEL_MASK   (0x7)
 
#define RTC_CR_WUCLKSEL_RTC_DIV16   (0x0)
 
#define RTC_CR_WUCLKSEL_RTC_DIV8   (0x1)
 
#define RTC_CR_WUCLKSEL_RTC_DIV4   (0x2)
 
#define RTC_CR_WUCLKSEL_RTC_DIV2   (0x3)
 
#define RTC_CR_WUCLKSEL_SPRE   (0x4)
 
#define RTC_CR_WUCLKSEL_SPRE_216   (0x6)
 

Detailed Description

Note: Bits [31:24] are reserved, and must be kept at reset value.

Note: Bits 7, 6 and 4 of this register can be written in initialization mode only (RTC_ISR/INITF = 1).

Macro Definition Documentation

◆ RTC_CR_ADD1H

#define RTC_CR_ADD1H   (1<<16)

Add 1 hour (summer time change)

Definition at line 205 of file rtc_common_l1f024.h.

◆ RTC_CR_ALRAE

#define RTC_CR_ALRAE   (1<<8)

Alarm A enable.

Definition at line 221 of file rtc_common_l1f024.h.

◆ RTC_CR_ALRAIE

#define RTC_CR_ALRAIE   (1<<12)

Alarm A interrupt enable.

Definition at line 213 of file rtc_common_l1f024.h.

◆ RTC_CR_ALRBE

#define RTC_CR_ALRBE   (1<<9)

Alarm B enable.

Definition at line 219 of file rtc_common_l1f024.h.

◆ RTC_CR_ALRBIE

#define RTC_CR_ALRBIE   (1<<13)

Alarm B interrupt enable.

Definition at line 211 of file rtc_common_l1f024.h.

◆ RTC_CR_BKP

#define RTC_CR_BKP   (1<<18)

Backup.

Definition at line 201 of file rtc_common_l1f024.h.

◆ RTC_CR_BYPSHAD

#define RTC_CR_BYPSHAD   (1<<5)

Bypass the shadow registers.

Definition at line 227 of file rtc_common_l1f024.h.

◆ RTC_CR_COE

#define RTC_CR_COE   (1<<23)

Calibration output enable.

Definition at line 182 of file rtc_common_l1f024.h.

◆ RTC_CR_COSEL

#define RTC_CR_COSEL   (1<<19)

Calibration output selection.

Definition at line 199 of file rtc_common_l1f024.h.

◆ RTC_CR_DCE

#define RTC_CR_DCE   (1<<7)

Course digital calibration enable.

Definition at line 223 of file rtc_common_l1f024.h.

◆ RTC_CR_FMT

#define RTC_CR_FMT   (1<<6)

Hour format.

Definition at line 225 of file rtc_common_l1f024.h.

◆ RTC_CR_OSEL_MASK

#define RTC_CR_OSEL_MASK   (0x3)

Definition at line 185 of file rtc_common_l1f024.h.

◆ RTC_CR_OSEL_SHIFT

#define RTC_CR_OSEL_SHIFT   21

Definition at line 184 of file rtc_common_l1f024.h.

◆ RTC_CR_POL

#define RTC_CR_POL   (1<<20)

Output polarity.

Definition at line 197 of file rtc_common_l1f024.h.

◆ RTC_CR_REFCKON

#define RTC_CR_REFCKON   (1<<4)

Reference clock detection enable.

Definition at line 229 of file rtc_common_l1f024.h.

◆ RTC_CR_SUB1H

#define RTC_CR_SUB1H   (1<<17)

Subtract 1 hour (winter time change)

Definition at line 203 of file rtc_common_l1f024.h.

◆ RTC_CR_TSE

#define RTC_CR_TSE   (1<<11)

Time stamp enable.

Definition at line 215 of file rtc_common_l1f024.h.

◆ RTC_CR_TSEDGE

#define RTC_CR_TSEDGE   (1<<3)

Timestamp event active edge.

Definition at line 231 of file rtc_common_l1f024.h.

◆ RTC_CR_TSIE

#define RTC_CR_TSIE   (1<<15)

Timestamp interrupt enable.

Definition at line 207 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_MASK

#define RTC_CR_WUCLKSEL_MASK   (0x7)

Definition at line 235 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_RTC_DIV16

#define RTC_CR_WUCLKSEL_RTC_DIV16   (0x0)

Definition at line 236 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_RTC_DIV2

#define RTC_CR_WUCLKSEL_RTC_DIV2   (0x3)

Definition at line 239 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_RTC_DIV4

#define RTC_CR_WUCLKSEL_RTC_DIV4   (0x2)

Definition at line 238 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_RTC_DIV8

#define RTC_CR_WUCLKSEL_RTC_DIV8   (0x1)

Definition at line 237 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_SHIFT

#define RTC_CR_WUCLKSEL_SHIFT   (0)

Definition at line 234 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_SPRE

#define RTC_CR_WUCLKSEL_SPRE   (0x4)

Definition at line 240 of file rtc_common_l1f024.h.

◆ RTC_CR_WUCLKSEL_SPRE_216

#define RTC_CR_WUCLKSEL_SPRE_216   (0x6)

Definition at line 241 of file rtc_common_l1f024.h.

◆ RTC_CR_WUTE

#define RTC_CR_WUTE   (1<<10)

Wakeup timer enable.

Definition at line 217 of file rtc_common_l1f024.h.

◆ RTC_CR_WUTIE

#define RTC_CR_WUTIE   (1<<14)

Wakeup timer interrupt enable.

Definition at line 209 of file rtc_common_l1f024.h.