A few more style fixes.
Got rid of some trailing whitespace.
Removed one (1) instance of "not universally accepted language."
Disabled copy and assign ctors in Pin class.
diff --git a/bbb_cape/src/bbb/gpios.h b/bbb_cape/src/bbb/gpios.h
index ba5da00..4925f1b 100644
--- a/bbb_cape/src/bbb/gpios.h
+++ b/bbb_cape/src/bbb/gpios.h
@@ -3,6 +3,8 @@
#include <stdio.h>
+#include "aos/common/macros.h"
+
// As it turns out, controlling the BBB's GPIO pins
// from C++ is kind of a pain. The purpose of this
// code is to provide a simple wrapper that masks
@@ -20,6 +22,10 @@
// Not strictly necessary for this to be virtual,
// but it's a good idea.
virtual ~Pin();
+ // When you don't define this and use the
+ // DISALLOW_COPY_AND_ASSIGN macro, the compiler
+ // doesn't seem to create a default one.
+ Pin();
protected:
// Set the pin direction.
@@ -33,6 +39,8 @@
FILE *handle_ = NULL;
int kernel_pin_ = -1;
+
+ DISALLOW_COPY_AND_ASSIGN(Pin);
};
} // namespace bbb