[Style] Unified commenting style on F0

This commit is contained in:
BuFran
2013-07-11 14:18:12 +02:00
committed by Piotr Esden-Tempski
parent efc2489d2c
commit 4ff19fa2b4
15 changed files with 309 additions and 44 deletions

View File

@@ -36,7 +36,13 @@
#include <libopencm3/stm32/memorymap.h>
#include <libopencm3/cm3/common.h>
/* --- RCC registers ------------------------------------------------------- */
/*****************************************************************************/
/* Module definitions */
/*****************************************************************************/
/*****************************************************************************/
/* Register definitions */
/*****************************************************************************/
#define RCC_CR MMIO32(RCC_BASE + 0x00)
#define RCC_CFGR MMIO32(RCC_BASE + 0x04)
@@ -53,6 +59,10 @@
#define RCC_CFGR3 MMIO32(RCC_BASE + 0x30)
#define RCC_CR2 MMIO32(RCC_BASE + 0x32)
/*****************************************************************************/
/* Register values */
/*****************************************************************************/
/* --- RCC_CR values ------------------------------------------------------- */
#define RCC_CR_PLLRDY (1 << 25)
@@ -324,13 +334,14 @@
#define RCC_CR2_HSI14RDY (1 << 1)
#define RCC_CR2_HSI14ON (1 << 0)
/*****************************************************************************/
/* API definitions */
/*****************************************************************************/
/* --- Variable definitions ------------------------------------------------ */
extern uint32_t rcc_core_frequency;
extern uint32_t rcc_ppre_frequency;
/* --- Function prototypes ------------------------------------------------- */
enum rcc_osc {
HSI14, HSI, HSE, PLL, LSI, LSE
};
@@ -418,6 +429,10 @@ enum rcc_periph_rst {
};
#undef _REG_BIT
/*****************************************************************************/
/* API Functions */
/*****************************************************************************/
BEGIN_DECLS
void rcc_osc_ready_int_clear(enum rcc_osc osc);