Lib are now totally independent from PLAY

This commit is contained in:
Rocco Marco 2015-04-13 21:24:47 +02:00
parent c845d1fd34
commit 8b32af98ad
12 changed files with 3 additions and 49 deletions

View File

@ -37,10 +37,8 @@
#include "ch.h"
#include "hal.h"
#include "play.h"
#include "l3gd20.h"
#if (GYRO_USE_L3GD20) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
/*===========================================================================*/
@ -122,7 +120,4 @@ void l3gd20WriteRegister(SPIDriver *spip, uint8_t reg, uint8_t value) {
spiUnselect(spip);
}
}
#endif /* (GYRO_USE_L3GD20) */
/** @} */

View File

@ -36,7 +36,6 @@
#ifndef _L3GD20_H_
#define _L3GD20_H_
#if (GYRO_USE_L3GD20) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@ -240,11 +239,7 @@ extern "C" {
}
#endif
#endif /* GYRO_USE_L3GD20 */
#endif /* _L3GD20_H_ */
/** @} */
/*
* TODO PLAY--> add i2c support, and Multiple reg read.
*/

View File

@ -37,11 +37,8 @@
#include "ch.h"
#include "hal.h"
#include "play.h"
#include "lis3mdl.h"
#if (COMP_USE_LIS3MDL) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
/*===========================================================================*/
@ -151,6 +148,4 @@ void lis3mdlWriteRegister(I2CDriver *i2cp, uint8_t sad, uint8_t sub,
break;
}
}
#endif /* COMP_USE_LIS3MDL */
/** @} */

View File

@ -36,17 +36,14 @@
#ifndef _LIS3MDL_H_
#define _LIS3MDL_H_
#if (COMP_USE_LIS3MDL) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
#if (PLAY_USE_FLOAT) || defined(__DOXYGEN__)
#define LIS3MDL_COMP_SENS_4GA ((float)6842.0f) /*!< compass sensitivity with 4 GA full scale [LSB / Ga] */
#define LIS3MDL_COMP_SENS_8GA ((float)3421.0f) /*!< compass sensitivity with 8 GA full scale [LSB / Ga] */
#define LIS3MDL_COMP_SENS_12GA ((float)2281.0f) /*!< compass sensitivity with 12 GA full scale [LSB / Ga] */
#define LIS3MDL_COMP_SENS_16GA ((float)1711.0f) /*!< compass sensitivity with 16 GA full scale [LSB / Ga] */
#endif /* PLAY_USE_FLOAT */
#define LIS3MDL_COMP_SENS_8GA ((float)3421.0f) /*!< compass sensitivity with 8 GA full scale [LSB / Ga] */
#define LIS3MDL_COMP_SENS_12GA ((float)2281.0f) /*!< compass sensitivity with 12 GA full scale [LSB / Ga] */
#define LIS3MDL_COMP_SENS_16GA ((float)1711.0f) /*!< compass sensitivity with 16 GA full scale [LSB / Ga] */
/**
* @name LIS3MDL register names
* @{
@ -256,7 +253,6 @@ extern "C" {
}
#endif
#endif /* COMP_USE_LIS3MDL */
#endif /* _LIS3MDL_H_ */
/** @} */

View File

@ -37,11 +37,8 @@
#include "ch.h"
#include "hal.h"
#include "play.h"
#include "lsm303dlhc.h"
#if (ACCEL_USE_LSM303DLHC) || (COMP_USE_LSM303DLHC) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
/*===========================================================================*/
@ -205,5 +202,4 @@ void lsm303dlhcWriteRegister(I2CDriver *i2cp,uint8_t sad, uint8_t sub,
}
}
}
#endif /* (ACCEL_USE_LSM303DLHC) || (COMP_USE_LSM303DLHC) */
/** @} */

View File

@ -37,7 +37,6 @@
#ifndef _LSM303DLHC_H_
#define _LSM303DLHC_H_
#if (ACCEL_USE_LSM303DLHC) || (COMP_USE_LSM303DLHC) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@ -350,10 +349,6 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* (ACCEL_USE_LSM303DLHC) || (COMP_USE_LSM303DLHC) */
#endif /* _LSM303DLHC_H_ */
/** @} */
/*
* TODO PLAY--> add spi support, and Multiple reg read.
*/

View File

@ -37,11 +37,8 @@
#include "ch.h"
#include "hal.h"
#include "play.h"
#include "lsm6ds0.h"
#if (ACCEL_USE_LSM6DS0) || (GYRO_USE_LSM6DS0) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
/*===========================================================================*/
@ -184,5 +181,4 @@ void lsm6ds0WriteRegister(I2CDriver *i2cp, uint8_t sad, uint8_t sub,
}
}
#endif /* (ACCEL_USE_LSM6DS0) || (GYRO_USE_LSM6DS0) */
/** @} */

View File

@ -36,7 +36,6 @@
#ifndef _LSM6DS0_H_
#define _LSM6DS0_H_
#if (ACCEL_USE_LSM6DS0) || (GYRO_USE_LSM6DS0) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@ -481,7 +480,6 @@ extern "C" {
}
#endif
#endif /* (ACCEL_USE_LSM6DS0) || (GYRO_USE_LSM6DS0) */
#endif /* _LSM6DS0_H_ */
/** @} */

View File

@ -37,10 +37,8 @@
#include "ch.h"
#include "hal.h"
#include "play.h"
#include "max7219.h"
#if (PLAY_USE_MAX7219) || defined (__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
/*===========================================================================*/
@ -93,5 +91,4 @@ void max7219WriteRegister(SPIDriver *spip, uint16_t adr, uint8_t data) {
spiUnselect(spip);
}
}
#endif /* PLAY_USE_MAX7219 */
/** @} */

View File

@ -36,7 +36,6 @@
#ifndef _MAX7219_H_
#define _MAX7219_H_
#if (PLAY_USE_MAX7219) || defined (__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@ -182,7 +181,6 @@ extern "C" {
#ifdef __cplusplus
}
#endif
#endif /* PLAY_USE_MAX7219 */
#endif /* _MAX7219_H_ */
/** @} */

View File

@ -37,10 +37,8 @@
#include "ch.h"
#include "hal.h"
#include "play.h"
#include "nrf24l01.h"
#if (RF_USE_NRF24L01) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
/*===========================================================================*/
@ -438,6 +436,5 @@ NRF24L01_status_t nrf24l01WriteTxPlNoAck(SPIDriver *spip, uint8_t paylen,
return status;
}
#endif /* NRF24L01_USE_FEATURE */
#endif /* RF_USE_NRF24L01 */
/** @} */

View File

@ -36,9 +36,6 @@
#ifndef _NRF24L01_H_
#define _NRF24L01_H_
#include "playconf.h"
#if (RF_USE_NRF24L01) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@ -573,7 +570,6 @@ NRF24L01_status_t nrf24l01WriteTxPlNoAck(SPIDriver *spip, uint8_t paylen,
}
#endif
#endif /* RF_USE_NRF24L01 */
#endif /* _NRF24L01_H_ */
/** @} */