Moved the ADC configuration to sky-sensors.c and sensors now only need to specify their sample channel. This helps to avoid conflicts when using multiple sensors.
This commit is contained in:
parent
d06a1ecc0c
commit
198db63c3b
9 changed files with 231 additions and 224 deletions
|
@ -26,14 +26,14 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: acc-sensor.h,v 1.1 2010/05/03 21:57:35 nifi Exp $
|
||||
* $Id: acc-sensor.h,v 1.2 2010/08/25 19:34:42 nifi Exp $
|
||||
*
|
||||
* -----------------------------------------------------------------
|
||||
*
|
||||
* Author : Adam Dunkels, Joakim Eriksson, Niclas Finne
|
||||
* Created : 2005-11-01
|
||||
* Updated : $Date: 2010/05/03 21:57:35 $
|
||||
* $Revision: 1.1 $
|
||||
* Updated : $Date: 2010/08/25 19:34:42 $
|
||||
* $Revision: 1.2 $
|
||||
*/
|
||||
|
||||
#ifndef __ACC_SENSOR_H__
|
||||
|
@ -45,4 +45,18 @@ extern const struct sensors_sensor acc_sensor;
|
|||
|
||||
#define ACC_SENSOR "Acc"
|
||||
|
||||
#define ACC_SENSOR_X 0
|
||||
#define ACC_SENSOR_Y 1
|
||||
#define ACC_SENSOR_Z 2
|
||||
|
||||
/*
|
||||
Sensitivity configuration (g-Select1 and g-Select2)
|
||||
Value g-Range Sensitivity
|
||||
0 1.5g 800mV/g
|
||||
1 2g 600mV/g
|
||||
2 4g 300mV/g
|
||||
3 6g 200mV/g
|
||||
*/
|
||||
#define ACC_SENSOR_SENSITIVITY 10
|
||||
|
||||
#endif /* __ACC_SENSOR_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue