Private
Public Access
2
0

gt: Add module lights to the gpio HAL

Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Bruce Beare
2016-06-29 09:57:19 +01:00
committed by Brendan Le Foll
parent b5b84c6186
commit 5704c15665
2 changed files with 12 additions and 2 deletions

View File

@@ -31,8 +31,8 @@ extern "C" {
#include "mraa_internal.h"
// +1 as pins are "1 indexed"
// we have 20 useless pins then the 4 LEDS
#define MRAA_INTEL_GT_TUCHUCK_PINCOUNT (40*2 + 23 +1)
// we have 20 useless pins then the 4 LEDS and the 2 LEDs on the module.
#define MRAA_INTEL_GT_TUCHUCK_PINCOUNT (40*2 + 23 +1 +2)
mraa_board_t*
mraa_gt_tuchuck_board();

View File

@@ -627,6 +627,16 @@ mraa_gt_tuchuck_board()
b->pins[pos].gpio.pinmap = 340;
pos++;
strncpy(b->pins[pos].name, "LEDWIFI", 8);
b->pins[pos].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
b->pins[pos].gpio.pinmap = 438;
pos++;
strncpy(b->pins[pos].name, "LEDBT", 8);
b->pins[pos].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
b->pins[pos].gpio.pinmap = 439;
pos++;
return b;
error: