Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
fnet_timer_prv.h
00001 /************************************************************************** 00002 * 00003 * Copyright 2011-2016 by Andrey Butok. FNET Community. 00004 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc. 00005 * 00006 *************************************************************************** 00007 * 00008 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00009 * not use this file except in compliance with the License. 00010 * You may obtain a copy of the License at 00011 * 00012 * http://www.apache.org/licenses/LICENSE-2.0 00013 * 00014 * Unless required by applicable law or agreed to in writing, software 00015 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00016 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00017 * See the License for the specific language governing permissions and 00018 * limitations under the License. 00019 * 00020 **********************************************************************/ 00021 /*! 00022 * @brief Private. FNET Timers API. 00023 * 00024 ***************************************************************************/ 00025 00026 #ifndef _FNET_TIMER_PRV_H_ 00027 00028 #define _FNET_TIMER_PRV_H_ 00029 00030 #include "fnet_timer.h" 00031 00032 /* SW Timer descriptor.*/ 00033 typedef void *fnet_timer_desc_t; 00034 00035 /************************************************************************ 00036 * Function Prototypes 00037 *************************************************************************/ 00038 #if defined(__cplusplus) 00039 extern "C" { 00040 #endif 00041 00042 fnet_return_t fnet_timer_init( fnet_time_t period_ms ); 00043 void fnet_cpu_timer_release( void ); 00044 void fnet_timer_release( void ); 00045 void fnet_timer_reset_all( void ); 00046 fnet_timer_desc_t fnet_timer_new( fnet_time_t period_ticks, void (*handler)( fnet_uint32_t cookie ), fnet_uint32_t cookie ); 00047 void fnet_timer_free( fnet_timer_desc_t timer ); 00048 void fnet_timer_ticks_inc( void ); 00049 void fnet_timer_handler_bottom(fnet_uint32_t cookie); 00050 fnet_return_t fnet_cpu_timer_init( fnet_time_t period_ms ); 00051 00052 #if defined(__cplusplus) 00053 } 00054 #endif 00055 00056 #endif
Generated on Tue Jul 12 2022 13:54:22 by
