h3lis331dl: Initial implementation

The driver implements support for the Grove 3-Axis Digital
Accelerometer(±400g), using the h3lis331dl chip.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Jon Trulson
2015-04-24 18:53:54 -06:00
committed by Mihai Tudor Panu
parent 5547d99609
commit c8d0aee873
9 changed files with 1468 additions and 0 deletions

View File

@ -0,0 +1,13 @@
%module jsupm_h3lis331dl
%include "../upm.i"
%include "cpointer.i"
/* Send "int *" and "float *" to JavaScript as intp and floatp */
%pointer_functions(int, intp);
%pointer_functions(float, floatp);
%{
#include "h3lis331dl.h"
%}
%include "h3lis331dl.h"