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.
ns_timer_stub.c
00001 /* 00002 * Copyright (c) 2014-2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 #include "ns_types.h" 00018 #include "ns_list.h" 00019 #include "ns_timer.h" 00020 #include "ns_timer_stub.h" 00021 #include "eventOS_callback_timer.h" 00022 #include "platform/arm_hal_interrupt.h" 00023 #include "platform/arm_hal_timer.h" 00024 #include "nsdynmemLIB.h" 00025 00026 ns_timer_stub_def ns_timer_stub; 00027 00028 int8_t ns_timer_init(void) 00029 { 00030 return ns_timer_stub.int8_value; 00031 } 00032 00033 int8_t eventOS_callback_timer_register(void (*timer_interrupt_handler)(int8_t, uint16_t)) 00034 { 00035 ns_timer_stub.cb = timer_interrupt_handler; 00036 return ns_timer_stub.int8_value; 00037 } 00038 00039 int8_t eventOS_callback_timer_unregister(int8_t ns_timer_id) 00040 { 00041 return ns_timer_stub.int8_value; 00042 } 00043 00044 00045 int8_t ns_timer_sleep(void) 00046 { 00047 return ns_timer_stub.int8_value; 00048 } 00049 00050 int8_t eventOS_callback_timer_start(int8_t ns_timer_id, uint16_t slots) 00051 { 00052 return ns_timer_stub.int8_value; 00053 } 00054 00055 int8_t eventOS_callback_timer_stop(int8_t ns_timer_id) 00056 { 00057 return ns_timer_stub.int8_value; 00058 }
Generated on Tue Jul 12 2022 18:18:45 by
