2017-09-08 12:06:33 +01:00
|
|
|
/*
|
|
|
|
|
* Author: Javier Arteaga <javier@emutex.com>
|
|
|
|
|
* Based on work from: Dan O'Donovan <dan@emutex.com>
|
|
|
|
|
* Nicola Lunghi <nicola.lunghi@emutex.com>
|
|
|
|
|
* Copyright (c) 2017 Emutex Ltd.
|
|
|
|
|
* Copyright (c) 2014 Intel Corporation.
|
|
|
|
|
*
|
2019-05-09 09:47:11 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-09-08 12:06:33 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "mraa_internal.h"
|
|
|
|
|
|
|
|
|
|
// +1 as pins are "1 indexed"
|
|
|
|
|
#define MRAA_UP2_PINCOUNT (40 + 1)
|
|
|
|
|
|
|
|
|
|
mraa_board_t*
|
|
|
|
|
mraa_up2_board();
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|