* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
+
/**
* @author R. Steve McKown <rsmckown@gmail.com>
*/
-
+
#include <UserButton.h>
module UserButtonP {
uses interface Notify<bool> as NotifyLower;
}
implementation {
-
- command button_state_t Get.get() {
+
+ command button_state_t Get.get() {
/* tmirws user button pin is high when released - active low */
if ( call GetLower.get() ) {
return BUTTON_RELEASED;
signal Notify.notify( BUTTON_PRESSED );
}
}
-
+
default event void Notify.notify( button_state_t val ) { }
}