diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-04 17:08:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-04 17:08:59 +0000 |
commit | 68c47baf9fce581d0078384ef0fcdb6436292fcb (patch) | |
tree | 2acea35bd828c7017ca8e48dd2bafc4fe2610c15 /nuttx/include | |
parent | 0eda7244af71108683fb409517ccb18dd78dd65c (diff) | |
download | px4-nuttx-68c47baf9fce581d0078384ef0fcdb6436292fcb.tar.gz px4-nuttx-68c47baf9fce581d0078384ef0fcdb6436292fcb.tar.bz2 px4-nuttx-68c47baf9fce581d0078384ef0fcdb6436292fcb.zip |
ADS7843E driver is code complete
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4018 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/input/ads7843e.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); }; |