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:
committed by
Brendan Le Foll
parent
b5b84c6186
commit
5704c15665
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user