From 581184d8fda4c23c7c11b4c3b7fd26bc92a2968d Mon Sep 17 00:00:00 2001 From: Michael Ring Date: Sun, 15 Feb 2015 12:51:45 +0100 Subject: [PATCH] include/arm/raspberry_pi.h Added pincount defines for all supported devices Signed-off-by: Michael Ring Signed-off-by: Brendan Le Foll --- include/arm/{raspberry_pi_b.h => raspberry_pi.h} | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) rename include/arm/{raspberry_pi_b.h => raspberry_pi.h} (79%) diff --git a/include/arm/raspberry_pi_b.h b/include/arm/raspberry_pi.h similarity index 79% rename from include/arm/raspberry_pi_b.h rename to include/arm/raspberry_pi.h index e82b365..32e3f50 100644 --- a/include/arm/raspberry_pi_b.h +++ b/include/arm/raspberry_pi.h @@ -1,5 +1,6 @@ /* * Author: Thomas Ingleby + * Author: Michael Ring * 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 }