From 88e371c5ebffb47737a14836821498812aa3b0f0 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Thu, 27 Nov 2008 22:12:21 +0100 Subject: Support for thinkpad HDAPS --- src/types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index b864742..eae97b6 100644 --- a/src/types.h +++ b/src/types.h @@ -33,6 +33,7 @@ typedef enum { ACCEL_UNKNOWN, ACCEL_FREERUNNER, /* Openmoko Neo Freerunner */ + ACCEL_HDAPS, /* Thinkpad HDAPS */ } AccelType; typedef struct { -- cgit v1.2.3 From cea996c922b7f9b35ebadb23296561e40991991e Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Thu, 27 Nov 2008 23:39:59 +0100 Subject: Move moo-detection into accel driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Slight refactorization: The decision, whether a moo should happen, is moved to the driver-specific code (because it knows best what kind of device to expect). A member “state” is added to the accel struct which can be used to implement a state machine inside the driver (as was done before with pos). --- src/types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index eae97b6..cc7a227 100644 --- a/src/types.h +++ b/src/types.h @@ -50,6 +50,9 @@ typedef struct { int lx; int ly; int lz; + + /* Current state (driver dependent) */ + int state; } AccelHandle; -- cgit v1.2.3 From 58ba8655997de07f12e6dd3b27ff0bb8cfd79ed9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 28 Nov 2008 00:04:51 +0000 Subject: Add copyright attributions --- src/types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index cc7a227..7870081 100644 --- a/src/types.h +++ b/src/types.h @@ -4,6 +4,7 @@ * Data types * * (c) 2008 Thomas White + * (c) 2008 Joachim Breitner * * This file is part of OpenMooCow - accelerometer moobox simulator * -- cgit v1.2.3