2014-04-10 16:53:19 +01:00
|
|
|
%{
|
|
|
|
|
#include "maa.h"
|
2014-05-16 11:56:06 +01:00
|
|
|
#include "gpio.hpp"
|
2014-05-16 11:53:19 +01:00
|
|
|
#include "pwm.hpp"
|
2014-05-16 10:28:26 +01:00
|
|
|
#include "i2c.hpp"
|
2014-05-16 14:10:29 +01:00
|
|
|
#include "spi.hpp"
|
2014-05-15 22:47:38 +01:00
|
|
|
#include "aio.hpp"
|
2014-04-10 16:53:19 +01:00
|
|
|
%}
|
|
|
|
|
|
2014-05-07 17:39:58 +01:00
|
|
|
%init %{
|
2014-05-13 20:45:00 +00:00
|
|
|
//Adding maa_init() to the module initialisation process
|
2014-05-07 17:39:58 +01:00
|
|
|
maa_init();
|
|
|
|
|
%}
|
|
|
|
|
|
2014-05-01 15:27:34 +01:00
|
|
|
%rename(get_version) maa_get_version();
|
2014-05-02 09:52:06 +01:00
|
|
|
const char * maa_get_version();
|
2014-05-01 15:27:34 +01:00
|
|
|
|
2014-05-01 15:42:42 +01:00
|
|
|
#### GPIO ####
|
|
|
|
|
|
2014-05-16 11:56:06 +01:00
|
|
|
%include "gpio.hpp"
|
2014-05-01 15:42:42 +01:00
|
|
|
|
|
|
|
|
#### i2c ####
|
|
|
|
|
|
2014-05-16 10:28:26 +01:00
|
|
|
%include "i2c.hpp"
|
2014-05-01 15:42:42 +01:00
|
|
|
|
|
|
|
|
#### PWM ####
|
|
|
|
|
|
2014-05-16 11:53:19 +01:00
|
|
|
%include "pwm.hpp"
|
2014-05-01 15:42:42 +01:00
|
|
|
|
|
|
|
|
#### SPI ####
|
|
|
|
|
|
2014-05-16 14:10:29 +01:00
|
|
|
%include "spi.hpp"
|
2014-05-01 16:59:54 +01:00
|
|
|
|
|
|
|
|
#### AIO ####
|
|
|
|
|
|
2014-05-15 22:47:38 +01:00
|
|
|
%include "aio.hpp"
|