bma220: Initial implementation

This driver was developed based on the DFRobot Triple Axis
accelerometer BMA220 (Tiny):

http://www.dfrobot.com/index.php?route=product/product&product_id=1085

This device can only run at 3.3v DC.  Do not connect to 5v.

Added a private function definition for the installISR function. Done because C++
wasn't able to find the function definition for the java bindings.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Jon Trulson
2015-10-15 11:39:56 -07:00
committed by Abhishek Malik
parent 53bc249b75
commit db721845db
10 changed files with 1611 additions and 0 deletions

View File

@ -151,6 +151,7 @@ add_executable (xbee-example xbee.cxx)
add_executable (urm37-example urm37.cxx)
add_executable (urm37-uart-example urm37-uart.cxx)
add_executable (adxrs610-example adxrs610.cxx)
add_executable (bma220-example bma220.cxx)
include_directories (${PROJECT_SOURCE_DIR}/src/hmc5883l)
include_directories (${PROJECT_SOURCE_DIR}/src/grove)
@ -266,6 +267,7 @@ include_directories (${PROJECT_SOURCE_DIR}/src/micsv89)
include_directories (${PROJECT_SOURCE_DIR}/src/xbee)
include_directories (${PROJECT_SOURCE_DIR}/src/urm37)
include_directories (${PROJECT_SOURCE_DIR}/src/adxrs610)
include_directories (${PROJECT_SOURCE_DIR}/src/bma220)
target_link_libraries (hmc5883l-example hmc5883l ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (groveled-example grove ${CMAKE_THREAD_LIBS_INIT})
@ -418,3 +420,4 @@ target_link_libraries (xbee-example xbee ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (urm37-example urm37 ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (urm37-uart-example urm37 ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (adxrs610-example adxrs610 ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries (bma220-example bma220 ${CMAKE_THREAD_LIBS_INIT})