X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmicore%2FUserButtonP.nc;h=42e817efb62f2841be38b227b9e84c2f9bbe94a0;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=bcec89b4b7e6de8f5e4001d9c504b8e83d031619;hpb=67ea6e597465286a923da75687454a88104bd6ef;p=tinyos-2.x.git diff --git a/tos/platforms/tmicore/UserButtonP.nc b/tos/platforms/tmicore/UserButtonP.nc index bcec89b4..42e817ef 100644 --- a/tos/platforms/tmicore/UserButtonP.nc +++ b/tos/platforms/tmicore/UserButtonP.nc @@ -26,11 +26,11 @@ * (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 + * @author R. Steve McKown */ - + #include module UserButtonP { @@ -41,8 +41,8 @@ module UserButtonP { uses interface Notify 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; @@ -67,6 +67,6 @@ implementation { signal Notify.notify( BUTTON_PRESSED ); } } - + default event void Notify.notify( button_state_t val ) { } }