root/nano-RK/src/platform/firefly2_2/include/nrk_platform_time.h
| Revision 236, 1.5 kB (checked in by agr, 10 months ago) |
|---|
| Line | |
|---|---|
| 1 | /****************************************************************************** |
| 2 | * Nano-RK, a real-time operating system for sensor networks. |
| 3 | * Copyright (C) 2007, Real-Time and Multimedia Lab, Carnegie Mellon University |
| 4 | * All rights reserved. |
| 5 | * |
| 6 | * This is the Open Source Version of Nano-RK included as part of a Dual |
| 7 | * Licensing Model. If you are unsure which license to use please refer to: |
| 8 | * http://www.nanork.org/nano-RK/wiki/Licensing |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, version 2.0 of the License. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 21 | * |
| 22 | * Contributing Authors (specific to this file): |
| 23 | * Anthony Rowe |
| 24 | * Zane Starr |
| 25 | * Anand Eswaren |
| 26 | *******************************************************************************/ |
| 27 | |
| 28 | #ifndef NRK_PLATFORM_TIME_H |
| 29 | #define NRK_PLATFORM_TIME_H |
| 30 | |
| 31 | |
| 32 | // External OSC = 32768 Hz |
| 33 | // Divde by 32 prescaler |
| 34 | |
| 35 | #define NANOS_PER_TICK 976563 |
| 36 | #define US_PER_TICK 977 |
| 37 | #define TICKS_PER_SEC 1024 |
| 38 | |
| 39 | // This is the deep sleep wakeup penalty... |
| 40 | #ifndef NRK_SLEEP_WAKEUP_TIME |
| 41 | #define NRK_SLEEP_WAKEUP_TIME 10 |
| 42 | #endif |
| 43 | |
| 44 | |
| 45 | |
| 46 | #endif |
Note: See TracBrowser for help on using the browser.
