Minor indent fixes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9044 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Rocco Marco Guglielmi 2016-03-06 18:25:18 +00:00
parent 7d6f337b8c
commit 92c4f97fa4
2 changed files with 57 additions and 58 deletions

View File

@ -101,8 +101,8 @@
* @brief L3GD20 Power Mode
*/
typedef enum {
L3GD20_PM_POWER_DOWN = 0x00,
L3GD20_PM_SLEEP_NORMAL = 0x08
L3GD20_PM_POWER_DOWN = 0x00, /**< Power down enabled. */
L3GD20_PM_SLEEP_NORMAL = 0x08 /**< Normal operation mode. */
}l3gd20_pm_t;
/*===========================================================================*/
@ -183,7 +183,6 @@ static void l3gd20SPIWriteRegister(SPIDriver *spip, uint8_t reg,
/*
* Interface implementation.
*/
static size_t get_axes_number(void *ip) {
osalDbgCheck(ip != NULL);
@ -229,7 +228,6 @@ static msg_t read_raw(void *ip, int32_t axes[L3GD20_NUMBER_OF_AXES]) {
return MSG_OK;
}
static msg_t read_cooked(void *ip, float axes[]) {
uint32_t i;
int32_t raw[L3GD20_NUMBER_OF_AXES];
@ -289,6 +287,7 @@ static const struct L3GD20VMT vmt = {
get_axes_number, read_raw, read_cooked,
reset_calibration, calibrate
};
/*===========================================================================*/
/* Driver exported functions. */
/*===========================================================================*/
@ -384,5 +383,4 @@ void l3gd20Stop(L3GD20Driver *devp) {
#endif /* L3GD20_USE_SPI */
devp->state = L3GD20_STOP;
}
/** @} */

View File

@ -98,6 +98,7 @@
#if L3GD20_USE_I2C && !HAL_USE_I2C
#error "L3GD20_USE_I2C requires HAL_USE_I2C"
#endif
/*===========================================================================*/
/* Driver data structures and types. */
/*===========================================================================*/