From 5a763ea5f571badfa33b912f790b6a923aa10193 Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Mon, 19 Sep 2016 15:50:37 -0700 Subject: [PATCH] mvs06068: Removed example file This has be implemented in collision.c. Signed-off-by: Noel Eck --- examples/c/main_mvs0608.c | 56 --------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 examples/c/main_mvs0608.c diff --git a/examples/c/main_mvs0608.c b/examples/c/main_mvs0608.c deleted file mode 100644 index 4a056d21..00000000 --- a/examples/c/main_mvs0608.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2012-2014 Wind River Systems, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include -#include -#include -#include - -#define SLEEPTICKS MSEC(200) -#if defined(CONFIG_STDOUT_CONSOLE) -#include -#define PRINT printf -#else -#include -#define PRINT printk -#endif - -/* - * @file - * @brief Hello World demo - * Nanokernel version of hello world demo - */ - - -void main(void) -{ - mraa_init(); - struct nano_timer timer; - void *timer_data[1]; - nano_timer_init(&timer, timer_data); - mvs0608_context dev = mvs0608_init(2); - bool abc = 0; - while(1){ - if(mvs0608_is_colliding(dev, &abc) != UPM_SUCCESS){ - printf("an error has occured\n"); - } - nano_timer_start(&timer, SLEEPTICKS); - nano_timer_test(&timer, TICKS_UNLIMITED); - printf("value retrieved: %d\n", abc); - } - mvs0608_close(dev); -}