md: move defines/register defs into separate header for SWIG

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2017-03-16 18:14:16 -06:00
committed by Jon Trulson
parent f9b5d7c52c
commit 8779700d82
6 changed files with 47 additions and 12 deletions

View File

@@ -29,6 +29,8 @@
#include <mraa/gpio.h>
#include "uln200xa_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -58,14 +60,6 @@ extern "C" {
} *uln200xa_context;
/**
* Enum to specify the direction of a motor
*/
typedef enum {
ULN200XA_DIR_CW = 0x01,
ULN200XA_DIR_CCW = 0x02
} ULN200XA_DIRECTION_T;
/**
* ULN200XA constructor
*