Erste version der Software für der Prototyp

Committer:
borlanic
Date:
Fri Mar 30 14:07:05 2018 +0000
Revision:
4:75df35ef4fb6
Parent:
0:380207fcb5c1
commentar

Who changed what in which revision?

UserRevisionLine numberNew contents of line
borlanic 0:380207fcb5c1 1 /* mbed Microcontroller Library
borlanic 0:380207fcb5c1 2 * Copyright (c) 2017 ARM Limited
borlanic 0:380207fcb5c1 3 *
borlanic 0:380207fcb5c1 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
borlanic 0:380207fcb5c1 5 * of this software and associated documentation files (the "Software"), to deal
borlanic 0:380207fcb5c1 6 * in the Software without restriction, including without limitation the rights
borlanic 0:380207fcb5c1 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
borlanic 0:380207fcb5c1 8 * copies of the Software, and to permit persons to whom the Software is
borlanic 0:380207fcb5c1 9 * furnished to do so, subject to the following conditions:
borlanic 0:380207fcb5c1 10 *
borlanic 0:380207fcb5c1 11 * The above copyright notice and this permission notice shall be included in
borlanic 0:380207fcb5c1 12 * all copies or substantial portions of the Software.
borlanic 0:380207fcb5c1 13 *
borlanic 0:380207fcb5c1 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
borlanic 0:380207fcb5c1 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
borlanic 0:380207fcb5c1 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
borlanic 0:380207fcb5c1 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
borlanic 0:380207fcb5c1 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
borlanic 0:380207fcb5c1 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
borlanic 0:380207fcb5c1 20 * SOFTWARE.
borlanic 0:380207fcb5c1 21 */
borlanic 0:380207fcb5c1 22 #ifndef KERNEL_H
borlanic 0:380207fcb5c1 23 #define KERNEL_H
borlanic 0:380207fcb5c1 24
borlanic 0:380207fcb5c1 25 #include <stdint.h>
borlanic 0:380207fcb5c1 26
borlanic 0:380207fcb5c1 27 namespace rtos {
borlanic 0:380207fcb5c1 28 /** \addtogroup rtos */
borlanic 0:380207fcb5c1 29 /** @{*/
borlanic 0:380207fcb5c1 30
borlanic 0:380207fcb5c1 31 /** Functions in the Kernel namespace control RTOS kernel information. */
borlanic 0:380207fcb5c1 32 namespace Kernel {
borlanic 0:380207fcb5c1 33
borlanic 0:380207fcb5c1 34 /** Read the current RTOS kernel millisecond tick count.
borlanic 0:380207fcb5c1 35 The tick count corresponds to the tick count used by the RTOS for timing
borlanic 0:380207fcb5c1 36 purposes. It increments monotonically from 0 at boot, hence effectively
borlanic 0:380207fcb5c1 37 never wraps. If the underlying RTOS only provides a 32-bit tick count,
borlanic 0:380207fcb5c1 38 this method expands it to 64 bits.
borlanic 0:380207fcb5c1 39 @return RTOS kernel current tick count
borlanic 0:380207fcb5c1 40 @note mbed OS always uses millisecond RTOS ticks, and this could only wrap
borlanic 0:380207fcb5c1 41 after half a billion years
borlanic 0:380207fcb5c1 42 @note You cannot call this function from ISR context.
borlanic 0:380207fcb5c1 43 */
borlanic 0:380207fcb5c1 44 uint64_t get_ms_count();
borlanic 0:380207fcb5c1 45
borlanic 0:380207fcb5c1 46 } // namespace Kernel
borlanic 0:380207fcb5c1 47
borlanic 0:380207fcb5c1 48 } // namespace rtos
borlanic 0:380207fcb5c1 49 #endif
borlanic 0:380207fcb5c1 50
borlanic 0:380207fcb5c1 51 /** @}*/