include/arm/raspberry_pi.h Added pincount defines for all supported devices
authorMichael Ring <michael.ring@swisscom.com>
Sun, 15 Feb 2015 11:51:45 +0000 (12:51 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Sun, 15 Feb 2015 22:39:56 +0000 (22:39 +0000)
Signed-off-by: Michael Ring <mail@michael-ring.org>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
include/arm/raspberry_pi.h [moved from include/arm/raspberry_pi_b.h with 79% similarity]

similarity index 79%
rename from include/arm/raspberry_pi_b.h
rename to include/arm/raspberry_pi.h
index e82b365..32e3f50 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Author: Thomas Ingleby <thomas.c.ingleby@intel.com>
+ * Author: Michael Ring <mail@michael-ring.org>
  * Copyright (c) 2014 Intel Corporation.
  *
  * Permission is hereby granted, free of charge, to any person obtaining
@@ -30,10 +31,14 @@ extern "C" {
 
 #include "mraa_internal.h"
 
-#define MRAA_RASPBERRY_PI_B 27
+#define MRAA_RASPBERRY_PI_B_REV_1_PINCOUNT 27
+#define MRAA_RASPBERRY_PI_AB_REV_2_PINCOUNT 35
+#define MRAA_RASPBERRY_PI2_B_REV_1_PINCOUNT 41
+#define MRAA_RASPBERRY_PI_AB_PLUS_PINCOUNT 41
+#define MRAA_RASPBERRY_PI_COMPUTE_MODULE_PINCOUNT 41
 
-mraa_board_t*
-mraa_raspberry_pi_b();
+mraa_board_t *
+        mraa_raspberry_pi();
 
 #ifdef __cplusplus
 }