Marco Zecchini
/
Example_RTOS
Rtos API example
Embed:
(wiki syntax)
Show/hide line numbers
ns_timer.h
00001 /* 00002 * Copyright (c) 2014-2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef NS_TIMER_H_ 00017 #define NS_TIMER_H_ 00018 00019 #include "platform/eventloop_config.h" 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 #ifndef NS_EXCLUDE_HIGHRES_TIMER 00026 extern int8_t ns_timer_sleep(void); 00027 #else 00028 #define ns_timer_sleep() ((int8_t) 0) 00029 #endif 00030 00031 #ifdef __cplusplus 00032 } 00033 #endif 00034 00035 #endif /*NS_TIMER_H_*/
Generated on Sun Jul 17 2022 08:25:28 by 1.7.2