Private
Public Access
2
0

minnowboardmax: Add support for compatible boards

Signed-off-by: Evan Steele <evan.steele@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Evan Steele
2015-09-15 15:35:26 +01:00
committed by Brendan Le Foll
parent 0071039fa0
commit e2aaa349ff
4 changed files with 12 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ extern "C" {
#define MRAA_INTEL_MINNOW_MAX_PINCOUNT (26 + 1)
mraa_board_t*
mraa_intel_minnow_max();
mraa_intel_minnowboard_byt_compatible();
#ifdef __cplusplus
}

View File

@@ -25,7 +25,7 @@ set (mraa_LIB_X86_SRCS_NOAUTO
${PROJECT_SOURCE_DIR}/src/x86/intel_edison_fab_c.c
${PROJECT_SOURCE_DIR}/src/x86/intel_de3815.c
${PROJECT_SOURCE_DIR}/src/x86/intel_nuc5.c
${PROJECT_SOURCE_DIR}/src/x86/intel_minnow_max.c
${PROJECT_SOURCE_DIR}/src/x86/intel_minnow_byt_compatible.c
)
set (mraa_LIB_ARM_SRCS_NOAUTO

View File

@@ -1,5 +1,6 @@
/*
* Author: Henry Bruce <henry.bruce@intel.com>
* Evan Steele <evan.steele@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
@@ -28,7 +29,7 @@
#include <ctype.h>
#include "common.h"
#include "x86/intel_minnow_max.h"
#include "x86/intel_minnow_byt_compatible.h"
#define PLATFORM_NAME "MinnowBoard MAX"
#define I2C_BUS_DEFAULT 7
@@ -83,7 +84,7 @@ mraa_get_pin_index(mraa_board_t* board, char* name, int* pin_index)
}
mraa_board_t*
mraa_intel_minnow_max()
mraa_intel_minnowboard_byt_compatible()
{
mraa_board_t* b = (mraa_board_t*) calloc(1, sizeof(mraa_board_t));

View File

@@ -30,8 +30,8 @@
#include "x86/intel_galileo_rev_g.h"
#include "x86/intel_edison_fab_c.h"
#include "x86/intel_de3815.h"
#include "x86/intel_minnow_max.h"
#include "x86/intel_nuc5.h"
#include "x86/intel_minnow_byt_compatible.h"
mraa_platform_t
mraa_x86_platform()
@@ -60,14 +60,17 @@ mraa_x86_platform()
plat = mraa_intel_nuc5();
} else if (strncmp(line, "NOTEBOOK", 8) == 0) {
platform_type = MRAA_INTEL_MINNOWBOARD_MAX;
plat = mraa_intel_minnow_max();
plat = mraa_intel_minnowboard_byt_compatible();
} else if (strncasecmp(line, "MinnowBoard MAX", 15) == 0) {
platform_type = MRAA_INTEL_MINNOWBOARD_MAX;
plat = mraa_intel_minnow_max();
plat = mraa_intel_minnowboard_byt_compatible();
} else if (strncasecmp(line, "Galileo", 7) == 0) {
platform_type = MRAA_INTEL_GALILEO_GEN1;
plat = mraa_intel_galileo_rev_d();
} else {
} else if (strncasecmp(line, "MinnowBoard Compatible", 22) == 0) {
platform_type = MRAA_INTEL_MINNOWBOARD_MAX;
plat = mraa_intel_minnowboard_byt_compatible();
} else {
syslog(LOG_ERR, "Platform not supported, not initialising");
platform_type = MRAA_UNKNOWN_PLATFORM;
}