From 22abd06132445a55a1a0266897920f26634825c1 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:38:10 +0100 Subject: digital/beacon: remove obsolete bitcloud stack --- .../Components/BSP/MESHBEAN/src/sliders.c | 59 ---------------------- 1 file changed, 59 deletions(-) delete mode 100644 digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/sliders.c (limited to 'digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/sliders.c') diff --git a/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/sliders.c b/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/sliders.c deleted file mode 100644 index db417cdb..00000000 --- a/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/sliders.c +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************************************//** -\file sliders.h - -\brief Implementation of the sliders. - -\author - Atmel Corporation: http://www.atmel.com \n - Support email: avr@atmel.com - - Copyright (c) 2008-2011, Atmel Corporation. All rights reserved. - Licensed under Atmel's Limited License Agreement (BitCloudTM). - -\internal - History: - 29/06/07 E. Ivanov - Created -******************************************************************************/ -#if APP_DISABLE_BSP != 1 - -/****************************************************************************** - Includes section -******************************************************************************/ -#include -#include -#include - -/****************************************************************************** - Implementations section -******************************************************************************/ -/**************************************************************************//** -\brief Reads the sliders. - -\return - state of 3 on­board DIP­switches.User can uses SLIDER0, SLIDER1, SLIDER2 - defines to test state. Value 1 indicates that slider is on. -******************************************************************************/ -uint8_t BSP_ReadSliders(void) -{ - uint8_t result; - - GPIO_3_make_in(); GPIO_3_make_pullup(); - GPIO_4_make_in(); GPIO_4_make_pullup(); - GPIO_5_make_in(); GPIO_5_make_pullup(); - /* NOP was added for correct work on 8 MHz frequency. - clck i\o is not equal clck cpu. - CPU must wait for I\O system 1 clock for synchronization. */ - NOP; - result = GPIO_3_read() * SLIDER0; - result |= GPIO_4_read() * SLIDER1; - result |= GPIO_5_read() * SLIDER2; - GPIO_3_make_in(); - GPIO_4_make_in(); - GPIO_5_make_in(); - - return (~result) & 0x07; -} - -#endif // APP_DISABLE_BSP != 1 - -// end of sliders.c -- cgit v1.2.3