Small indent fixes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9554 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
ffd47e9af7
commit
cd7b086b12
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
#include "l3gd20.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
|
@ -55,7 +54,6 @@
|
|||
#define L3GD20_AD_3 ((uint8_t)0x08)
|
||||
#define L3GD20_AD_4 ((uint8_t)0x10)
|
||||
#define L3GD20_AD_5 ((uint8_t)0x20)
|
||||
|
||||
#define L3GD20_MS ((uint8_t)0x40)
|
||||
#define L3GD20_RW ((uint8_t)0x80)
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
#include "lis302dl.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
|
@ -83,7 +82,6 @@
|
|||
#define LIS302DL_AD_CLICK_LATENCY ((uint8_t)0x3E)
|
||||
#define LIS302DL_AD_CLICK_WINDOW ((uint8_t)0x3F)
|
||||
|
||||
|
||||
#define LIS302DL_CTRL_REG1_FS_MASK ((uint8_t)0x20)
|
||||
#define TO_G ((float)0.001f)
|
||||
#define TO_SI ((float)0.00981f)
|
||||
|
@ -189,7 +187,7 @@ static size_t get_axes_number(void *ip) {
|
|||
static msg_t read_raw(void *ip, int32_t axes[LIS302DL_NUMBER_OF_AXES]) {
|
||||
int8_t tmp;
|
||||
osalDbgCheck((ip != NULL) && (axes != NULL));
|
||||
|
||||
|
||||
osalDbgAssert((((LIS302DLDriver *)ip)->state == LIS302DL_READY),
|
||||
"read_raw(), invalid state");
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
#include "lis3dsh.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
#include "lis3mdl.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
|
@ -59,7 +58,6 @@
|
|||
#define LIS3MDL_AD_4 ((uint8_t)0x10)
|
||||
#define LIS3MDL_AD_5 ((uint8_t)0x20)
|
||||
#define LIS3MDL_AD_6 ((uint8_t)0x40)
|
||||
|
||||
#define LIS3MDL_RW ((uint8_t)0x80)
|
||||
|
||||
#define LIS3MDL_AD_WHO_AM_I ((uint8_t)0x0F)
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
#include "lsm303dlhc.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
|
@ -72,7 +71,6 @@
|
|||
#define LSM303DLHC_AD_4 ((uint8_t)0x10)
|
||||
#define LSM303DLHC_AD_5 ((uint8_t)0x20)
|
||||
#define LSM303DLHC_AD_6 ((uint8_t)0x40)
|
||||
|
||||
#define LSM303DLHC_RW ((uint8_t)0x80)
|
||||
|
||||
#define LSM303DLHC_AD_ACC_CTRL_REG1 ((uint8_t)0x20)
|
||||
|
@ -126,6 +124,7 @@
|
|||
|
||||
#define TO_G ((float)0.001f)
|
||||
#define TO_SI ((float)0.00981f)
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver exported variables. */
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
#endif
|
||||
|
||||
#if LSM303DLHC_SHARED_I2C && !I2C_USE_MUTUAL_EXCLUSION
|
||||
#error "LSM303DLHC_SHARED_SPI requires I2C_USE_MUTUAL_EXCLUSION"
|
||||
#error "LSM303DLHC_SHARED_I2C requires I2C_USE_MUTUAL_EXCLUSION"
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
#include "lsm6ds0.h"
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -45,8 +45,8 @@
|
|||
* @brief BaseSensor specific methods.
|
||||
*/
|
||||
#define _base_sensor_methods_alone \
|
||||
/* Get number of axes.*/ \
|
||||
size_t (*get_axes_number)(void *instance); \
|
||||
/* Get number of channels.*/ \
|
||||
size_t (*get_channels_number)(void *instance); \
|
||||
/* Reads the sensor raw data.*/ \
|
||||
msg_t (*read_raw)(void *instance, int32_t axes[]); \
|
||||
/* Reads the sensor returning normalized data.*/ \
|
||||
|
@ -92,14 +92,14 @@ typedef struct {
|
|||
* @{
|
||||
*/
|
||||
/**
|
||||
* @brief Sensors get axes number.
|
||||
* @brief Sensors get channels number.
|
||||
*
|
||||
* @param[in] ip pointer to a @p BaseSensor or derived class.
|
||||
* @return The number of axes of the BaseSensor
|
||||
* @return The number of channels of the BaseSensor
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
#define sensorGetAxesNumber(ip) (ip)->vmt_basesensor->get_axes_number(ip)
|
||||
#define sensorGetChannelNumber(ip) (ip)->vmt_basesensor->get_channels_number(ip)
|
||||
|
||||
/**
|
||||
* @brief Sensors read raw data.
|
||||
|
|
Loading…
Reference in New Issue