projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8bc227
)
raspberry_pi_b: add missing platform name
author
Thomas Ingleby
<thomas.c.ingleby@intel.com>
Wed, 21 Jan 2015 15:43:27 +0000
(15:43 +0000)
committer
Thomas Ingleby
<thomas.c.ingleby@intel.com>
Wed, 21 Jan 2015 15:43:27 +0000
(15:43 +0000)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/arm/raspberry_pi_b.c
patch
|
blob
|
history
diff --git
a/src/arm/raspberry_pi_b.c
b/src/arm/raspberry_pi_b.c
index
c23572d
..
71913c1
100644
(file)
--- a/
src/arm/raspberry_pi_b.c
+++ b/
src/arm/raspberry_pi_b.c
@@
-29,14
+29,17
@@
#include "arm/raspberry_pi_b.h"
#define UART_DEV_PATH "/dev/ttyAMA0"
+#define PLATFORM_NAME "Raspberry Pi B"
mraa_board_t*
mraa_raspberry_pi_b()
{
mraa_board_t* b = (mraa_board_t*) malloc(sizeof(mraa_board_t));
- if (b == NULL)
+ if (b == NULL)
{
return NULL;
+ }
+ b->platform_name = PLATFORM_NAME;
b->phy_pin_count = MRAA_RASPBERRY_PI_B;
b->aio_count = 0;
b->adc_raw = 0;