mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Added a hack function called clock_counter() to make the current prototype profiling code run on the MSP430 platform
This commit is contained in:
parent
6b7173809d
commit
f192211444
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: clock.c,v 1.10 2007/10/04 20:45:29 joxe Exp $
|
||||
* @(#)$Id: clock.c,v 1.11 2007/11/12 21:07:39 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -166,8 +166,16 @@ clock_set_seconds(unsigned long sec)
|
||||
{
|
||||
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
unsigned long
|
||||
clock_seconds(void)
|
||||
{
|
||||
return count / CLOCK_SECOND;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
rtimer_clock_t
|
||||
clock_counter(void)
|
||||
{
|
||||
return TAR;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user