Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers timeout_stub.c Source File

timeout_stub.c

00001 /*
00002  * Copyright (c) 2016 ARM Limited. All rights reserved.
00003  */
00004 
00005 #include "eventOS_event_timer.h"
00006 
00007 static void (*test_callback)(void *);
00008 static void *test_args;
00009 
00010 timeout_t *eventOS_timeout_ms(void (*callback)(void *), uint32_t ms, void *arg)
00011 {
00012     test_callback = callback;
00013     test_args = arg;
00014     return NULL;
00015 }
00016 
00017 void eventOS_timeout_cancel(timeout_t *t)
00018 {
00019 
00020 }
00021 
00022 void test_eventOS_timeout_trigger() {
00023     test_callback(test_args);
00024 }
00025