diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-19 15:38:49 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-19 18:45:45 -0400 |
commit | 3362e0f206302520e9c0549f4611b55e787e5a0b (patch) | |
tree | 3aeedcdc152323ebf97403edb3d38e8fb7761a1a /libmaple | |
parent | 40ccd775d337ff5381f02dbbf7bafffd38188b88 (diff) | |
download | librambutan-3362e0f206302520e9c0549f4611b55e787e5a0b.tar.gz librambutan-3362e0f206302520e9c0549f4611b55e787e5a0b.zip |
pwr.h: Whitespace/comment cleanups
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/pwr.h | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/libmaple/pwr.h b/libmaple/pwr.h index f473d24..264dfd9 100644 --- a/libmaple/pwr.h +++ b/libmaple/pwr.h @@ -49,18 +49,34 @@ typedef struct pwr_reg_map { */ /* Control register */ -#define PWR_CR_DBP 8 /**< Disable backup domain write protection bit */ -#define PWR_CR_PVDE 4 /**< Power voltage detector enable bit */ -#define PWR_CR_CSBF 3 /**< Clear standby flag bit */ -#define PWR_CR_CWUF 2 /**< Clear wakeup flag bit */ -#define PWR_CR_PDDS 1 /**< Power down deepsleep bit */ -#define PWR_CR_LPDS 0 /**< Low-power deepsleep bit */ + +/** Disable backup domain write protection bit */ +#define PWR_CR_DBP 8 +/** Power voltage detector enable bit */ +#define PWR_CR_PVDE 4 +/** Clear standby flag bit */ +#define PWR_CR_CSBF 3 +/** Clear wakeup flag bit */ +#define PWR_CR_CWUF 2 +/** Power down deepsleep bit */ +#define PWR_CR_PDDS 1 +/** Low-power deepsleep bit */ +#define PWR_CR_LPDS 0 /* Control and status register */ -#define PWR_CSR_EWUP 8 /**< Enable wakeup pin bit */ -#define PWR_CSR_PVDO 2 /**< PVD output bit */ -#define PWR_CSR_SBF 1 /**< Standby flag bit */ -#define PWR_CSR_WUF 0 /**< Wakeup flag bit */ + +/** Enable wakeup pin bit */ +#define PWR_CSR_EWUP 8 +/** PVD output bit */ +#define PWR_CSR_PVDO 2 +/** Standby flag bit */ +#define PWR_CSR_SBF 1 +/** Wakeup flag bit */ +#define PWR_CSR_WUF 0 + +/* + * Convenience functions + */ void pwr_init(void); |