diff include/Utilities.h @ 310:02c4ca0e3718 prerelease

Renamed pinModeFrame -> pinMode
author andrewm
date Fri, 27 May 2016 18:29:20 +0100
parents 1feb9c23ac57
children 5c8f46fcd4d0
line wrap: on
line diff
--- a/include/Utilities.h	Fri May 27 18:26:45 2016 +0100
+++ b/include/Utilities.h	Fri May 27 18:29:20 2016 +0100
@@ -225,7 +225,7 @@
  * digital_gpio_mapping.h.
  * \param value Direction of the pin (\c INPUT or \c OUTPUT).
  */
-static inline void pinModeFrame(BelaContext *context, int frame, int channel, int mode);
+static inline void pinMode(BelaContext *context, int frame, int channel, int mode);
 
 /**
  * \brief Set the direction of a digital pin to input or output.
@@ -243,7 +243,7 @@
  * digital_gpio_mapping.h.
  * \param value Direction of the pin (\c INPUT or \c OUTPUT).
  */
-static inline void pinModeFrameOnce(BelaContext *context, int frame, int channel, int mode);
+static inline void pinModeOnce(BelaContext *context, int frame, int channel, int mode);
 
 /** @} */
 
@@ -365,10 +365,10 @@
 		context->digital[frame] &= ~(1 << (channel + 16));
 }
 
-// pinModeFrame()
+// pinMode()
 //
 // Sets the direction of a digital pin for the current frame and all subsequent frames
-static inline void pinModeFrame(BelaContext *context, int frame, int channel, int mode) {
+static inline void pinMode(BelaContext *context, int frame, int channel, int mode) {
 	for(unsigned int f = frame; f < context->digitalFrames; f++) {
 		if(mode == INPUT)
 			context->digital[f] |= (1 << channel);
@@ -377,10 +377,10 @@
 	}
 }
 
-// pinModeFrameOnce()
+// pinModeOnce()
 //
 // Sets the direction of a digital pin for the current frame only
-static inline void pinModeFrameOnce(BelaContext *context, int frame, int channel, int mode) {
+static inline void pinModeOnce(BelaContext *context, int frame, int channel, int mode) {
 	if(mode == INPUT)
 		context->digital[frame] |= (1 << channel);
 	else