diff options
author | Josef Gajdusek <atx@atx.name> | 2015-05-11 21:11:37 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-05-13 00:12:54 +0100 |
commit | 103d12a877f09e5d812f8c9c1fbf13ddbea4f78c (patch) | |
tree | 6ae6fc565aa5064d270d8254bede2c9d24ec7694 /esp8266/modpybrtc.h | |
parent | b47931978feffc7739fab7261b81caed1622fc9d (diff) | |
download | micropython-103d12a877f09e5d812f8c9c1fbf13ddbea4f78c.tar.gz micropython-103d12a877f09e5d812f8c9c1fbf13ddbea4f78c.zip |
esp8266: Add utime and pyb.RTC
Diffstat (limited to 'esp8266/modpybrtc.h')
-rw-r--r-- | esp8266/modpybrtc.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/esp8266/modpybrtc.h b/esp8266/modpybrtc.h new file mode 100644 index 0000000000..2a982d38fa --- /dev/null +++ b/esp8266/modpybrtc.h @@ -0,0 +1,29 @@ +/* + * This file is part of the Micro Python project, http://micropython.org/ + * + * The MIT License (MIT) + * + * Copyright (c) 2015 Josef Gajdusek + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +void pyb_rtc_set_us_since_2000(uint64_t nowus); + +uint64_t pyb_rtc_get_us_since_2000(); |