ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ns_timer_stub.c Source File

ns_timer_stub.c

00001 /*
00002  * Copyright (c) 2014-2015 ARM Limited. All Rights Reserved.
00003  */
00004 #include "ns_types.h"
00005 #include "ns_list.h"
00006 #include "ns_timer.h"
00007 #include "ns_timer_stub.h"
00008 #include "eventOS_callback_timer.h"
00009 #include "platform/arm_hal_interrupt.h"
00010 #include "platform/arm_hal_timer.h"
00011 #include "nsdynmemLIB.h"
00012 
00013 ns_timer_stub_def ns_timer_stub;
00014 
00015 int8_t ns_timer_init(void)
00016 {
00017     return ns_timer_stub.int8_value;
00018 }
00019 
00020 int8_t eventOS_callback_timer_register(void (*timer_interrupt_handler)(int8_t, uint16_t))
00021 {
00022     ns_timer_stub.cb = timer_interrupt_handler;
00023     return ns_timer_stub.int8_value;
00024 }
00025 
00026 int8_t eventOS_callback_timer_unregister(int8_t ns_timer_id)
00027 {
00028     return ns_timer_stub.int8_value;
00029 }
00030 
00031 
00032 int8_t ns_timer_sleep(void)
00033 {
00034     return ns_timer_stub.int8_value;
00035 }
00036 
00037 int8_t eventOS_callback_timer_start(int8_t ns_timer_id, uint16_t slots)
00038 {
00039     return ns_timer_stub.int8_value;
00040 }
00041 
00042 int8_t eventOS_callback_timer_stop(int8_t ns_timer_id)
00043 {
00044     return ns_timer_stub.int8_value;
00045 }