From 68c47baf9fce581d0078384ef0fcdb6436292fcb Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 4 Oct 2011 17:08:59 +0000 Subject: ADS7843E driver is code complete git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4018 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/nuttx/input/ads7843e.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx/include') diff --git a/nuttx/include/nuttx/input/ads7843e.h b/nuttx/include/nuttx/input/ads7843e.h index 241abc87a..6b8ef1f9d 100644 --- a/nuttx/include/nuttx/input/ads7843e.h +++ b/nuttx/include/nuttx/input/ads7843e.h @@ -61,10 +61,10 @@ #endif #ifndef CONFIG_ADS7843E_SPIMODE -# define CONFIG_ADS7843E_SPIMODE SPIDEV_MODE0 +# define CONFIG_ADS7843E_SPIMODE SPIDEV_MODE1 #endif - /* Check for some required settings. This can save the user a lot of time +/* Check for some required settings. This can save the user a lot of time * in getting the right configuration. */ @@ -94,7 +94,6 @@ struct ads7843e_config_s { /* Device characterization */ - uint16_t calib; /* Calibration resistance */ uint32_t frequency; /* SPI frequency */ /* If multiple ADS7843E devices are supported, then an IRQ number must @@ -120,6 +119,7 @@ struct ads7843e_config_s int (*attach)(FAR struct ads7843e_config_s *state, xcpt_t isr); void (*enable)(FAR struct ads7843e_config_s *state, bool enable); void (*clear)(FAR struct ads7843e_config_s *state); + bool (*busy)(FAR struct ads7843e_config_s *state); bool (*pendown)(FAR struct ads7843e_config_s *state); }; -- cgit v1.2.3