Skip to content

Commit f727c01

Browse files
viraniactingleby
authored andcommitted
Add support for Orange Pi Prime
1 parent db1f520 commit f727c01

File tree

10 files changed

+308
-0
lines changed

10 files changed

+308
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ ARM
4949
* [Radxa ROCK 5A](../master/docs/radxa_rock_5a.md)
5050
* [Radxa ROCK 5B](../master/docs/radxa_rock_5b.md)
5151
* [Rock Pi 4](../master/docs/rockpi4.md)
52+
* [Orange Pi Prime](../master/docs/orange_pi_prime.md)
5253

5354
MIPS
5455
---

api/mraa/types.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ typedef enum {
7373
MRAA_VISIONFIVE = 28, /**< StarFive VisionFive board */
7474
MRAA_RADXA_ROCK_5A = 29, /**< Radxa ROCK 5 Model A */
7575
MRAA_RADXA_ROCK_5B = 30, /**< Radxa ROCK 5 Model B */
76+
MRAA_ORANGE_PI_PRIME = 31, /**< Orange Pi Prime board */
7677

7778
// USB platform extenders start at 256
7879
MRAA_FTDI_FT4222 = 256, /**< FTDI FT4222 USB to i2c bridge */
@@ -350,6 +351,40 @@ typedef enum {
350351
MRAA_RASPBERRY_WIRING_PIN29 = 40
351352
} mraa_raspberry_wiring_t;
352353

354+
/**
355+
* Orange Pi Prime GPIO numbering enum
356+
*/
357+
typedef enum {
358+
MRAA_ORANGE_PI_PRIME_PIN3 = 3,
359+
MRAA_ORANGE_PI_PRIME_PIN5 = 5,
360+
MRAA_ORANGE_PI_PRIME_PIN7 = 7,
361+
MRAA_ORANGE_PI_PRIME_PIN8 = 8,
362+
MRAA_ORANGE_PI_PRIME_PIN10 = 10,
363+
MRAA_ORANGE_PI_PRIME_PIN11 = 11,
364+
MRAA_ORANGE_PI_PRIME_PIN12 = 12,
365+
MRAA_ORANGE_PI_PRIME_PIN13 = 13,
366+
MRAA_ORANGE_PI_PRIME_PIN15 = 15,
367+
MRAA_ORANGE_PI_PRIME_PIN16 = 16,
368+
MRAA_ORANGE_PI_PRIME_PIN18 = 18,
369+
MRAA_ORANGE_PI_PRIME_PIN19 = 19,
370+
MRAA_ORANGE_PI_PRIME_PIN21 = 21,
371+
MRAA_ORANGE_PI_PRIME_PIN22 = 22,
372+
MRAA_ORANGE_PI_PRIME_PIN23 = 23,
373+
MRAA_ORANGE_PI_PRIME_PIN24 = 24,
374+
MRAA_ORANGE_PI_PRIME_PIN26 = 26,
375+
MRAA_ORANGE_PI_PRIME_PIN27 = 27,
376+
MRAA_ORANGE_PI_PRIME_PIN28 = 28,
377+
MRAA_ORANGE_PI_PRIME_PIN29 = 29,
378+
MRAA_ORANGE_PI_PRIME_PIN31 = 31,
379+
MRAA_ORANGE_PI_PRIME_PIN32 = 32,
380+
MRAA_ORANGE_PI_PRIME_PIN33 = 33,
381+
MRAA_ORANGE_PI_PRIME_PIN35 = 35,
382+
MRAA_ORANGE_PI_PRIME_PIN36 = 36,
383+
MRAA_ORANGE_PI_PRIME_PIN37 = 37,
384+
MRAA_ORANGE_PI_PRIME_PIN38 = 38,
385+
MRAA_ORANGE_PI_PRIME_PIN40 = 40
386+
} mraa_orange_pi_prime_wiring_t;
387+
353388
/**
354389
* MRAA return codes
355390
*/

api/mraa/types.hpp

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ typedef enum {
6767
VISIONFIVE = 28, /**< StarFive VisionFive board */
6868
RADXA_ROCK_5A = 29, /**< Radxa ROCK 5 Model A */
6969
RADXA_ROCK_5B = 30, /**< Radxa ROCK 5 Model B */
70+
ORANGE_PI_PRIME = 31, /**< Orange Pi Prime board */
7071

7172
FTDI_FT4222 = 256, /**< FTDI FT4222 USB to i2c bridge */
7273

@@ -341,6 +342,40 @@ typedef enum {
341342
RASPBERRY_WIRING_PIN29 = 40
342343
} RaspberryWiring;
343344

345+
/**
346+
* Orange Pi Prime GPIO numbering enum
347+
*/
348+
typedef enum {
349+
ORANGE_PI_PRIME_PIN3 = 3,
350+
ORANGE_PI_PRIME_PIN5 = 5,
351+
ORANGE_PI_PRIME_PIN7 = 7,
352+
ORANGE_PI_PRIME_PIN8 = 8,
353+
ORANGE_PI_PRIME_PIN10 = 10,
354+
ORANGE_PI_PRIME_PIN11 = 11,
355+
ORANGE_PI_PRIME_PIN12 = 12,
356+
ORANGE_PI_PRIME_PIN13 = 13,
357+
ORANGE_PI_PRIME_PIN15 = 15,
358+
ORANGE_PI_PRIME_PIN16 = 16,
359+
ORANGE_PI_PRIME_PIN18 = 18,
360+
ORANGE_PI_PRIME_PIN19 = 19,
361+
ORANGE_PI_PRIME_PIN21 = 21,
362+
ORANGE_PI_PRIME_PIN22 = 22,
363+
ORANGE_PI_PRIME_PIN23 = 23,
364+
ORANGE_PI_PRIME_PIN24 = 24,
365+
ORANGE_PI_PRIME_PIN26 = 26,
366+
ORANGE_PI_PRIME_PIN27 = 27,
367+
ORANGE_PI_PRIME_PIN28 = 28,
368+
ORANGE_PI_PRIME_PIN29 = 29,
369+
ORANGE_PI_PRIME_PIN31 = 31,
370+
ORANGE_PI_PRIME_PIN32 = 32,
371+
ORANGE_PI_PRIME_PIN33 = 33,
372+
ORANGE_PI_PRIME_PIN35 = 35,
373+
ORANGE_PI_PRIME_PIN36 = 36,
374+
ORANGE_PI_PRIME_PIN37 = 37,
375+
ORANGE_PI_PRIME_PIN38 = 38,
376+
ORANGE_PI_PRIME_PIN40 = 40
377+
} OrangePiPrimeWiring;
378+
344379
/**
345380
* MRAA return codes
346381
*/

docs/index.java.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Specific platform information for supported platforms is documented here:
5353
- @ref ft4222
5454
- @ref iei-tank
5555
- @ref up-xtreme
56+
- @ref _orange_pi_prime
5657

5758
## DEBUGGING
5859

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Specific platform information for supported platforms is documented here:
6161
- @ref omega2
6262
- @ref iei-tank
6363
- @ref upXtreme
64+
- @ref _orange_pi_prime
6465

6566
## DEBUGGING
6667

docs/orange_pi_prime.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Orange Pi Prime Single Board Computer {#_orange_pi_prime}
2+
=============================
3+
4+
Orange Pi Prime is a Allwinner H5 based SBC(Single Board Computer) by Orange Pi. It can run android or some Linux distributions. Orange Pi Prime features a quad core ARM processor, 2GB DDR3, HDMI, CSI, 3.5mm jack with CVBS video out, onboard mic, 802.11 b/g/n WIFI, Bluetooth 4.0, USB Port, Ethernet, 40-pin expansion header. Also, Orange Pi Prime supports USB OTG and has barrel jack for power.
5+
6+
Board Support
7+
-------------
8+
9+
- [Orange Pi Prime](http://www.orangepi.org/orangepiwiki/index.php/Orange_Pi_Prime)
10+
11+
Interface notes
12+
---------------
13+
14+
- On Armbian, use armbian-config to enable UART, I2C, PWM and SPI on expansion header.
15+
16+
Pin Mapping
17+
-----------
18+
19+
Orange Pi Prime has a 40-pin expansion header.
20+
21+
|Additional Function | Primary Function| PIN | PIN | Primary Function | Additional Function |
22+
|--------------------|------------------|:------|------:|--------------------|---------------------|
23+
| | +3.3V | 1 | 2 | +5.0V | |
24+
| I2C0_SDA | PA12 | 3 | 4 | +5.0V | |
25+
| I2C0_SCK | PA11 | 5 | 6 | GND | |
26+
| | PA6 | 7 | 8 | PC5 | |
27+
| | GND | 9 | 10 | PC6 | |
28+
| UART2_RX | PA1 | 11 | 12 | PD14 | |
29+
| UART2_TX | PA0 | 13 | 14 | GND | |
30+
| UART2_CTS | PA3 | 15 | 16 | PC4 | |
31+
| | +3.3V | 17 | 18 | PC7 | |
32+
| SPI1_MOSI | PA15 | 19 | 20 | GND | |
33+
| SPI1_MISO | PA16 | 21 | 22 | PA2 | UART2_RTS |
34+
| SPI1_CLK | PA14 | 23 | 24 | PA13 | SPI1_CS |
35+
| | GND | 25 | 26 | PC8 | |
36+
| I2C1_SDA | PA19 | 27 | 28 | PA18 | I2C1_SCK |
37+
| | PA7 | 29 | 30 | GND | |
38+
| | PA8 | 31 | 32 | PC9 | |
39+
| | PA9 | 33 | 34 | GND | |
40+
| | PA10 | 35 | 36 | PC10 | |
41+
| | PD11 | 37 | 38 | PC11 | |
42+
| | GND | 39 | 40 | PC12 | |
43+
44+
Resources
45+
---------
46+
47+
The following links will take you to additional Orange Pi Prime resources
48+
49+
- [Armbian for Orange Pi Prime](https://www.armbian.com/orange-pi-prime/)
50+
- [Armbian forum for Orange Pi Prime](https://forum.armbian.com/forum/136-orange-pi-prime/)
51+
- [Armbian Github Repo](https://github.com/armbian)

include/arm/orange_pi_prime.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Author: Gunjan <[email protected]>
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
7+
#pragma once
8+
9+
#ifdef __cplusplus
10+
extern "C" {
11+
#endif
12+
13+
#include "mraa_internal.h"
14+
15+
#define MRAA_ORANGE_PI_PRIME_GPIO_COUNT 28
16+
#define MRAA_ORANGE_PI_PRIME_I2C_COUNT 2
17+
#define MRAA_ORANGE_PI_PRIME_SPI_COUNT 1
18+
#define MRAA_ORANGE_PI_PRIME_UART_COUNT 1
19+
#define MRAA_ORANGE_PI_PRIME_PIN_COUNT 40
20+
21+
mraa_board_t *
22+
mraa_orange_pi_prime();
23+
24+
#ifdef __cplusplus
25+
}
26+
#endif

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ set (mraa_LIB_ARM_SRCS_NOAUTO
115115
${PROJECT_SOURCE_DIR}/src/arm/siemens/iot2050.c
116116
${PROJECT_SOURCE_DIR}/src/arm/siemens/platform.c
117117
${PROJECT_SOURCE_DIR}/src/arm/siemens/platform_iot2050.c
118+
${PROJECT_SOURCE_DIR}/src/arm/orange_pi_prime.c
118119
)
119120

120121
set (mraa_LIB_MIPS_SRCS_NOAUTO

src/arm/arm.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "arm/raspberry_pi.h"
2222
#include "arm/adlink_ipi.h"
2323
#include "arm/siemens/iot2050.h"
24+
#include "arm/orange_pi_prime.h"
2425
#include "mraa_internal.h"
2526

2627

@@ -111,6 +112,8 @@ mraa_arm_platform()
111112
platform_type = MRAA_ADLINK_IPI;
112113
else if (mraa_file_contains("/proc/device-tree/model", "SIMATIC IOT2050"))
113114
platform_type = MRAA_SIEMENS_IOT2050;
115+
else if (mraa_file_contains("/proc/device-tree/model", "Xunlong Orange Pi Prime"))
116+
platform_type = MRAA_ORANGE_PI_PRIME;
114117
}
115118

116119
switch (platform_type) {
@@ -149,6 +152,9 @@ mraa_arm_platform()
149152
case MRAA_SIEMENS_IOT2050:
150153
plat = mraa_siemens_iot2050();
151154
break;
155+
case MRAA_ORANGE_PI_PRIME:
156+
plat = mraa_orange_pi_prime();
157+
break;
152158
default:
153159
plat = NULL;
154160
syslog(LOG_ERR, "Unknown Platform, currently not supported by MRAA");

src/arm/orange_pi_prime.c

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
/*
2+
* Author: Gunjan <[email protected]>
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*/
6+
7+
#include <mraa/common.h>
8+
#include <stdarg.h>
9+
#include <stdlib.h>
10+
#include <string.h>
11+
#include <sys/mman.h>
12+
13+
#include "arm/orange_pi_prime.h"
14+
#include "common.h"
15+
16+
#define DT_BASE "/proc/device-tree"
17+
18+
#define PLATFORM_NAME_ORANGE_PI_PRIME "Xunlong Orange Pi Prime"
19+
#define MAX_SIZE 64
20+
21+
#define ORANGE_PI_PRIME_SPI_CS_DEV "/dev/spidev1.1"
22+
23+
#define ORANGE_PI_PRIME_SERIALDEV "/dev/ttyS2"
24+
25+
void
26+
mraa_orange_pi_prime_pininfo(mraa_board_t* board, int index, int sysfs_pin, mraa_pincapabilities_t pincapabilities_t, char* fmt, ...)
27+
{
28+
va_list arg_ptr;
29+
if (index > board->phy_pin_count)
30+
return;
31+
32+
mraa_pininfo_t* pininfo = &board->pins[index];
33+
va_start(arg_ptr, fmt);
34+
vsnprintf(pininfo->name, MRAA_PIN_NAME_SIZE, fmt, arg_ptr);
35+
36+
if( pincapabilities_t.gpio == 1 ) {
37+
pininfo->gpio.gpio_chip = 1;
38+
pininfo->gpio.gpio_line = sysfs_pin;
39+
}
40+
41+
pininfo->capabilities = pincapabilities_t;
42+
43+
va_end(arg_ptr);
44+
pininfo->gpio.pinmap = sysfs_pin;
45+
pininfo->gpio.mux_total = 0;
46+
}
47+
48+
mraa_board_t*
49+
mraa_orange_pi_prime()
50+
{
51+
mraa_board_t* b = (mraa_board_t*) calloc(1, sizeof(mraa_board_t));
52+
if (b == NULL) {
53+
return NULL;
54+
}
55+
56+
b->adv_func = (mraa_adv_func_t*) calloc(1, sizeof(mraa_adv_func_t));
57+
if (b->adv_func == NULL) {
58+
free(b);
59+
return NULL;
60+
}
61+
62+
b->chardev_capable = 1;
63+
64+
// pin mux for buses are setup using device tree overlays
65+
// so tell mraa to ignore them
66+
b->no_bus_mux = 1;
67+
b->phy_pin_count = MRAA_ORANGE_PI_PRIME_PIN_COUNT + 1;
68+
b->platform_name = PLATFORM_NAME_ORANGE_PI_PRIME;
69+
70+
// uart2
71+
b->uart_dev_count = MRAA_ORANGE_PI_PRIME_UART_COUNT;
72+
b->def_uart_dev = 0;
73+
b->uart_dev[0].device_path = ORANGE_PI_PRIME_SERIALDEV;
74+
75+
// I2C
76+
b->i2c_bus_count = MRAA_ORANGE_PI_PRIME_I2C_COUNT;
77+
b->def_i2c_bus = 0;
78+
b->i2c_bus[0].bus_id = 0;
79+
b->i2c_bus[1].bus_id = 1;
80+
81+
// SPI
82+
b->spi_bus_count = MRAA_ORANGE_PI_PRIME_SPI_COUNT;
83+
b->def_spi_bus = 0;
84+
b->spi_bus[0].bus_id = 1;
85+
86+
// Depending on the overlay parameter, we might have slave select
87+
if (mraa_file_exist(ORANGE_PI_PRIME_SPI_CS_DEV)) {
88+
b->spi_bus[0].slave_s = 1;
89+
}
90+
91+
b->pins = (mraa_pininfo_t*) malloc(sizeof(mraa_pininfo_t) * b->phy_pin_count);
92+
if (b->pins == NULL) {
93+
free(b->adv_func);
94+
free(b);
95+
return NULL;
96+
}
97+
98+
// no analog I/O
99+
b->aio_count = 0;
100+
b->adc_raw = 0;
101+
b->adc_supported = 0;
102+
103+
// Orange Pi Prime documentation shows pin 7 (PA6) as pwm1 pin
104+
// but Allwinner H5 doesn't list pwm as a function for PA6.
105+
// Hence no PWM for this board
106+
b->pwm_dev_count = 0;
107+
108+
mraa_orange_pi_prime_pininfo(b, 0, -1, (mraa_pincapabilities_t){0,0,0,0,0,0,0,0}, "INVALID");
109+
mraa_orange_pi_prime_pininfo(b, 1, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "3V3");
110+
mraa_orange_pi_prime_pininfo(b, 2, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "5V");
111+
mraa_orange_pi_prime_pininfo(b, 3, 12, (mraa_pincapabilities_t){1,1,0,0,0,1,0,0}, "I2C0_SDA");
112+
mraa_orange_pi_prime_pininfo(b, 4, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "5V");
113+
mraa_orange_pi_prime_pininfo(b, 5, 11, (mraa_pincapabilities_t){1,1,0,0,0,1,0,0}, "I2C0_SCK");
114+
mraa_orange_pi_prime_pininfo(b, 6, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
115+
mraa_orange_pi_prime_pininfo(b, 7, 6, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PA6");
116+
mraa_orange_pi_prime_pininfo(b, 8, 69, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC5");
117+
mraa_orange_pi_prime_pininfo(b, 9, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
118+
mraa_orange_pi_prime_pininfo(b, 10, 70, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC6");
119+
mraa_orange_pi_prime_pininfo(b, 11, 1, (mraa_pincapabilities_t){1,1,0,0,0,0,0,1}, "UART2_RX");
120+
mraa_orange_pi_prime_pininfo(b, 12, 110, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PD14");
121+
mraa_orange_pi_prime_pininfo(b, 13, 0, (mraa_pincapabilities_t){1,1,0,0,0,0,0,1}, "UART2_TX");
122+
mraa_orange_pi_prime_pininfo(b, 14, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
123+
mraa_orange_pi_prime_pininfo(b, 15, 3, (mraa_pincapabilities_t){1,1,0,0,0,0,0,1}, "UART2_CTS");
124+
mraa_orange_pi_prime_pininfo(b, 16, 68, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC4");
125+
mraa_orange_pi_prime_pininfo(b, 17, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "3V3");
126+
mraa_orange_pi_prime_pininfo(b, 18, 71, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC7");
127+
mraa_orange_pi_prime_pininfo(b, 19, 15, (mraa_pincapabilities_t){1,1,0,0,1,0,0,0}, "SPI1_MOSI");
128+
mraa_orange_pi_prime_pininfo(b, 20, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
129+
mraa_orange_pi_prime_pininfo(b, 21, 16, (mraa_pincapabilities_t){1,1,0,0,1,0,0,0}, "SPI1_MISO");
130+
mraa_orange_pi_prime_pininfo(b, 22, 2, (mraa_pincapabilities_t){1,1,0,0,0,0,0,1}, "UART2_RTS");
131+
mraa_orange_pi_prime_pininfo(b, 23, 14, (mraa_pincapabilities_t){1,1,0,0,1,0,0,0}, "SPI1_CLK");
132+
mraa_orange_pi_prime_pininfo(b, 24, 13, (mraa_pincapabilities_t){1,1,0,0,1,0,0,0}, "SPI1_CS");
133+
mraa_orange_pi_prime_pininfo(b, 25, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
134+
mraa_orange_pi_prime_pininfo(b, 26, 72, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC8");
135+
mraa_orange_pi_prime_pininfo(b, 27, 19, (mraa_pincapabilities_t){1,1,0,0,0,1,0,0}, "I2C1_SDA");
136+
mraa_orange_pi_prime_pininfo(b, 28, 18, (mraa_pincapabilities_t){1,1,0,0,0,1,0,0}, "I2C1_SCK");
137+
mraa_orange_pi_prime_pininfo(b, 29, 7, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PA7");
138+
mraa_orange_pi_prime_pininfo(b, 30, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
139+
mraa_orange_pi_prime_pininfo(b, 31, 8, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PA8");
140+
mraa_orange_pi_prime_pininfo(b, 32, 73, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC9");
141+
mraa_orange_pi_prime_pininfo(b, 33, 9, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PA9");
142+
mraa_orange_pi_prime_pininfo(b, 34, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
143+
mraa_orange_pi_prime_pininfo(b, 35, 10, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PA10");
144+
mraa_orange_pi_prime_pininfo(b, 36, 74, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC10");
145+
mraa_orange_pi_prime_pininfo(b, 37, 107, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PD11");
146+
mraa_orange_pi_prime_pininfo(b, 38, 75, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC11");
147+
mraa_orange_pi_prime_pininfo(b, 39, -1, (mraa_pincapabilities_t){1,0,0,0,0,0,0,0}, "GND");
148+
mraa_orange_pi_prime_pininfo(b, 40, 76, (mraa_pincapabilities_t){1,1,0,0,0,0,0,0}, "PC12");
149+
150+
return b;
151+
}

0 commit comments

Comments
 (0)