[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/diku/evb13192/tos/chips/hcs08
HPLKBIM.nc, 1.1, 1.2
Marcus Chang
marcus_chang at users.sourceforge.net
Thu Jul 6 01:14:04 PDT 2006
Update of /cvsroot/tinyos/tinyos-1.x/contrib/diku/evb13192/tos/chips/hcs08
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7680/evb13192/tos/chips/hcs08
Modified Files:
HPLKBIM.nc
Log Message:
Updated HPLKBIM to busy-wait instead of using the TOSH_uwait() command
Index: HPLKBIM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/diku/evb13192/tos/chips/hcs08/HPLKBIM.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HPLKBIM.nc 16 Jan 2006 18:43:17 -0000 1.1
--- HPLKBIM.nc 6 Jul 2006 08:14:02 -0000 1.2
***************
*** 3,7 ****
Author: Jacob Munk-Stander <jacobms at diku.dk>
! Last modified: May 24, 2005
*/
module HPLKBIM
--- 3,9 ----
Author: Jacob Munk-Stander <jacobms at diku.dk>
! Modified: May 24, 2005
!
! Last modified: July 6, 2006, marcus at diku.dk
*/
module HPLKBIM
***************
*** 56,63 ****
TOSH_SIGNAL(KEYBOARD)
{
sw = PTAD; // The switch pressed is kept in PTAD, bits 2-5
! // "jitter"-detection, wait 500 microseconds
! TOSH_uwait(500);
if(sw == PTAD)
--- 58,69 ----
TOSH_SIGNAL(KEYBOARD)
{
+ uint8_t i;
+
sw = PTAD; // The switch pressed is kept in PTAD, bits 2-5
! // "jitter"-detection, wait
! for (i = 0; i < 50; i++) {
! asm("NOP");
! }
if(sw == PTAD)
More information about the Tinyos-contrib-commits
mailing list