[Style] Unified commenting style on F0
This commit is contained in:
committed by
Piotr Esden-Tempski
parent
efc2489d2c
commit
4ff19fa2b4
@@ -22,10 +22,16 @@
|
||||
|
||||
#include <libopencm3/cm3/common.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Module definitions */
|
||||
/*****************************************************************************/
|
||||
|
||||
#define I2C1 I2C1_BASE
|
||||
#define I2C2 I2C2_BASE
|
||||
|
||||
/* I2C Registers ------------------------------------------------------------*/
|
||||
/*****************************************************************************/
|
||||
/* Register definitions */
|
||||
/*****************************************************************************/
|
||||
|
||||
#define I2C_CR1(i2c_base) MMIO32(i2c_base + 0x00)
|
||||
#define I2C1_CR1 I2C_CR1(I2C1)
|
||||
@@ -71,6 +77,10 @@
|
||||
#define I2C1_TXDR I2C_TXDR(I2C1)
|
||||
#define I2C2_TXDR I2C_TXDR(I2C2)
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Register values */
|
||||
/*****************************************************************************/
|
||||
|
||||
/* I2C_CR1 values ---------------------------------------------------------- */
|
||||
|
||||
#define I2C_CR1_PECEN (1 << 23)
|
||||
@@ -221,8 +231,15 @@
|
||||
#define I2C_ICR_NACKCF (1 << 4)
|
||||
#define I2C_ICR_ADDRCF (1 << 3)
|
||||
|
||||
BEGIN_DECLS
|
||||
/*****************************************************************************/
|
||||
/* API definitions */
|
||||
/*****************************************************************************/
|
||||
|
||||
/*****************************************************************************/
|
||||
/* API Functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
END_DECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user