Skip to content

Commit

Permalink
minnowboardmax
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruradovici committed Jan 22, 2016
1 parent 0c4a3aa commit e2a65f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ option (RASPBERRYPI "Build for the RaspberryPi." OFF)
option (GALILEO "Build for the Intel Galileo." OFF)
option (EDISON "Build for the Intel Galileo." OFF)
option (BEAGLEBONE "Build for the Beaglebone." OFF)
option (MINNOWBOARDMAX "Build for the Minnowboard Max." OFF)
option (REDPITAYA "Build for the RedPitaya." OFF)
option (UDOONEO "Build for the UDOO NEO." OFF)
option (SERVER "Build for the Server." OFF)
Expand All @@ -53,6 +54,12 @@ elseif (EDISON)
message (INFO "found libmraa version: ${MRAA_VERSION}")
set(FLAGS "-DEDISON")

elseif (MINNOWBOARDMAX)
add_definitions (-DMINNOWBOARDMAX)
pkg_check_modules (MRAA REQUIRED mraa>=0.4.0)
message (INFO "found libmraa version: ${MRAA_VERSION}")
set(FLAGS "-DMINNOWBOARDMAX")

elseif (RASPBERRYPI)
add_definitions (-DRASPBERRYPI)
find_package (Wiringpi REQUIRED)
Expand Down
5 changes: 4 additions & 1 deletion src/wiring/arduinogalileo.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#if defined(ARDUINOGALILEO) || defined (EDISON)
#if defined(ARDUINOGALILEO) || defined (EDISON) || defined (MINNOWBOARDMAX)

#include "wiring.h"
#include <pthread.h>
Expand Down Expand Up @@ -512,6 +512,9 @@ int i2c_openadapter(uint8_t i2c_bus)
#ifdef EDISON
i2c_bus = 6;
#endif
#ifdef MINNOWBOARDMAX
i2c_bus = 0;
#endif
}
i2c_buses[i2cId] = mraa_i2c_init (i2c_bus);
}
Expand Down

0 comments on commit e2a65f5

Please sign in to comment.