diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-08-20 13:21:11 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-09-19 09:26:13 -0700 |
commit | becbc87fd73c98664b472b4a06c2b54558dd5669 (patch) | |
tree | 44b1e1daaab750fa2c10899bc9c3489ab4ec738f /teensy/timer.h | |
parent | 2842945e760c98793cb0c62a66345ab8850afc1a (diff) | |
download | micropython-becbc87fd73c98664b472b4a06c2b54558dd5669.tar.gz micropython-becbc87fd73c98664b472b4a06c2b54558dd5669.zip |
Add Timer support (PWM, OC, IC) for stmhal and teensy
Diffstat (limited to 'teensy/timer.h')
-rw-r--r-- | teensy/timer.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/teensy/timer.h b/teensy/timer.h new file mode 100644 index 0000000000..a7b2978564 --- /dev/null +++ b/teensy/timer.h @@ -0,0 +1,31 @@ +/* + * This file is part of the Micro Python project, http://micropython.org/ + * + * The MIT License (MIT) + * + * Copyright (c) 2013, 2014 Damien P. George + * + * 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. + */ + +extern const mp_obj_type_t pyb_timer_type; +extern const mp_obj_type_t pyb_timer_channel_type; + +void timer_init0(void); +void timer_deinit(void); |