added setMillis() definition
Fork of millis by
millis.h@1:7ba60599f9c4, 2016-06-21 (annotated)
- Committer:
- baba
- Date:
- Tue Jun 21 04:14:30 2016 +0000
- Revision:
- 1:7ba60599f9c4
- Parent:
- 0:736e6cc31bcd
added setMillis() definition
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lisper | 0:736e6cc31bcd | 1 | /******************************************************************************* |
lisper | 0:736e6cc31bcd | 2 | * This file is part of the millis library. * |
lisper | 0:736e6cc31bcd | 3 | * * |
lisper | 0:736e6cc31bcd | 4 | * millis is free software: you can redistribute it and/or * |
lisper | 0:736e6cc31bcd | 5 | * modify it under the terms of the GNU General Public License as * |
lisper | 0:736e6cc31bcd | 6 | * published by the Free Software Foundation, either version 3 of * |
lisper | 0:736e6cc31bcd | 7 | * the License, or any later version. * |
lisper | 0:736e6cc31bcd | 8 | * * |
lisper | 0:736e6cc31bcd | 9 | * millis is distributed in the hope that it will be useful, * |
lisper | 0:736e6cc31bcd | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
lisper | 0:736e6cc31bcd | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
lisper | 0:736e6cc31bcd | 12 | * GNU Lesser General Public License for more details. * |
lisper | 0:736e6cc31bcd | 13 | * * |
lisper | 0:736e6cc31bcd | 14 | * millis is distributed in the hope that it will be useful, * |
lisper | 0:736e6cc31bcd | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
lisper | 0:736e6cc31bcd | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
lisper | 0:736e6cc31bcd | 17 | * GNU Lesser General Public License for more details. * |
lisper | 0:736e6cc31bcd | 18 | * * |
lisper | 0:736e6cc31bcd | 19 | * You should have received a copy of the GNU Lesser General Public * |
lisper | 0:736e6cc31bcd | 20 | * License along with millis. If not, see * |
lisper | 0:736e6cc31bcd | 21 | * <http://www.gnu.org/licenses/>. * |
lisper | 0:736e6cc31bcd | 22 | ******************************************************************************/ |
lisper | 0:736e6cc31bcd | 23 | |
lisper | 0:736e6cc31bcd | 24 | /* |
lisper | 0:736e6cc31bcd | 25 | * Copyright: DFRobot |
lisper | 0:736e6cc31bcd | 26 | * name: millis |
lisper | 0:736e6cc31bcd | 27 | * version: 1.0 |
lisper | 0:736e6cc31bcd | 28 | * Author: lisper (lisper.li@dfrobot.com) |
lisper | 0:736e6cc31bcd | 29 | * Date: 2014-10-30 |
lisper | 0:736e6cc31bcd | 30 | * Description: millis library for mbed |
lisper | 0:736e6cc31bcd | 31 | */ |
lisper | 0:736e6cc31bcd | 32 | |
lisper | 0:736e6cc31bcd | 33 | #include "mbed.h" |
lisper | 0:736e6cc31bcd | 34 | |
lisper | 0:736e6cc31bcd | 35 | void millisTicker (); |
lisper | 0:736e6cc31bcd | 36 | |
lisper | 0:736e6cc31bcd | 37 | uint32_t millis (); |
lisper | 0:736e6cc31bcd | 38 | |
lisper | 0:736e6cc31bcd | 39 | void startMillis (); |
lisper | 0:736e6cc31bcd | 40 | |
baba | 1:7ba60599f9c4 | 41 | void stopMillis (); |
baba | 1:7ba60599f9c4 | 42 | |
baba | 1:7ba60599f9c4 | 43 | void setMillis (uint32_t theValue); |