Browse Source

upm.i: add top level interface file which includes std_string.i

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll 10 years ago
parent
commit
2822d63c9c

+ 2
- 1
docs/max31855.md View File

@@ -31,7 +31,8 @@ change between the javascript & node.js one is the argument to %module.
31 31
 The %include parameter defines which functions will be available to the
32 32
 node/python module created, Whilst the headers inside %{} will be explicitly
33 33
 required during compilation. Typically only the top level header is required in
34
-either of those args.
34
+either of those args. The upm.i is just a shortcut to include some commonly
35
+used swig wrappers for UPM sensors, it's not obligatory but recommended.
35 36
 
36 37
 ### API
37 38
 

+ 1
- 0
src/buzzer/jsupm_buzzer.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_buzzer
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "buzzer.h"

+ 1
- 0
src/buzzer/pyupm_buzzer.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_buzzer
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/grove/jsupm_grove.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_grove
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "grove.h"

+ 1
- 0
src/grove/pyupm_grove.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_grove
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/gy65/jsupm_gy65.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_gy65
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "gy65.h"

+ 1
- 0
src/gy65/pyupm_gy65.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_gy65
2
+%include "../upm.i"
2 3
 
3 4
 %include "stdint.i"
4 5
 

+ 1
- 0
src/hcsr04/jsupm_hcsr04.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_hcsr04
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "hcsr04.h"

+ 1
- 0
src/hcsr04/pyupm_hcsr04.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_hcsr04
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/hmc5883l/jsupm_hmc5883l.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_hmc5883l
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "hmc5883l.h"

+ 1
- 0
src/hmc5883l/pyupm_hmc5883l.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_hmc5883l
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/lcd/jsupm_i2clcd.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_i2clcd
2
+%include "../upm.i"
2 3
 
3 4
 %include "i2clcd.h"
4 5
 %{

+ 1
- 0
src/lcd/pyupm_i2clcd.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_i2clcd
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/max31855/jsupm_max31855.i View File

@@ -1,5 +1,6 @@
1 1
 //! [Interesting]
2 2
 %module jsupm_max31855
3
+%include "../upm.i"
3 4
 
4 5
 %{
5 6
     #include "max31855.h"

+ 1
- 0
src/max31855/pyupm_max31855.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_max31855
2
+%include "../upm.i"
2 3
 
3 4
 %include "stdint.i"
4 5
 

+ 1
- 0
src/max44000/jsupm_max44000.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_max44000
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "max44000.h"

+ 1
- 0
src/max44000/pyupm_max44000.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_max44000
2
+%include "../upm.i"
2 3
 
3 4
 %include "stdint.i"
4 5
 

+ 1
- 0
src/mic/jsupm_mic.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_mic
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "mic.h"

+ 1
- 0
src/mic/pyupm_mic.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_mic
2
+%include "../upm.i"
2 3
 
3 4
 %include "stdint.i"
4 5
 

+ 1
- 0
src/mma7455/jsupm_mma7455.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_mma7455
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "mma7455.h"

+ 1
- 0
src/mma7455/pyupm_mma7455.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_mma7455
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/mpu9150/jsupm_mpu9150.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_mpu9150
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "mpu9150.h"

+ 1
- 0
src/mpu9150/pyupm_mpu9150.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_mpu9150
2
+%include "../upm.i"
2 3
 
3 4
 %include "stdint.i"
4 5
 

+ 1
- 0
src/my9221/jsupm_my9221.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_my9221
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "my9221.h"

+ 1
- 0
src/my9221/pyupm_my9221.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_my9221
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/nrf24l01/jsupm_nrf24l01.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_nrf24l01
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "nrf24l01.h"

+ 1
- 0
src/nrf24l01/pyupm_nrf24l01.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_nrf24l01
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/pulsensor/jsupm_pulsensor.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_pulsensor
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "pulsensor.h"

+ 1
- 0
src/pulsensor/pyupm_pulsensor.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_pulsensor
2
+%include "../upm.i"
2 3
 
3 4
 %include "stdint.i"
4 5
 

+ 1
- 0
src/servo/jsupm_servo.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_servo
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "servo.h"

+ 1
- 0
src/servo/pyupm_servo.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_servo
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/st7735/jsupm_st7735.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_st7735
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "st7735.h"

+ 1
- 0
src/st7735/pyupm_st7735.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_st7735
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 1
- 0
src/stepmotor/jsupm_stepmotor.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_stepmotor
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "stepmotor.h"

+ 1
- 0
src/stepmotor/pyupm_stepmotor.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_stepmotor
2
+%include "../upm.i"
2 3
 
3 4
 %include "stdint.i"
4 5
 

+ 1
- 0
src/tm1637/jsupm_tm1637.i View File

@@ -1,4 +1,5 @@
1 1
 %module jsupm_tm1637
2
+%include "../upm.i"
2 3
 
3 4
 %{
4 5
     #include "tm1637.h"

+ 1
- 0
src/tm1637/pyupm_tm1637.i View File

@@ -1,4 +1,5 @@
1 1
 %module pyupm_tm1637
2
+%include "../upm.i"
2 3
 
3 4
 %feature("autodoc", "3");
4 5
 

+ 3
- 0
src/upm.i View File

@@ -0,0 +1,3 @@
1
+%include "std_string.i"
2
+
3
+%typemap(out) mraa_result_t = int;