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/leds.c | 139 --------------------- 1 file changed, 139 deletions(-) delete mode 100644 digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/leds.c (limited to 'digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/leds.c') diff --git a/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/leds.c b/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/leds.c deleted file mode 100644 index d03e7154..00000000 --- a/digital/beacon/src/Bitcloud_stack/Components/BSP/MESHBEAN/src/leds.c +++ /dev/null @@ -1,139 +0,0 @@ -/***************************************************************************//** -\file leds.c - -\brief The module to access to the leds. - -\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/05/07 E. Ivanov - Created -*******************************************************************************/ -#if APP_DISABLE_BSP != 1 - -/****************************************************************************** - Includes section -******************************************************************************/ -#include -#include -#include - -/****************************************************************************** - Implementations section -******************************************************************************/ -/**************************************************************************//** -\brief Inits LEDs control module. -******************************************************************************/ -static void initLeds(void) -{ - halInitRedLed(); - halInitYellowLed(); - halInitGreenLed(); -} - -/**************************************************************************//** -\brief Opens leds module to use. - -\return - operation state -******************************************************************************/ -result_t BSP_OpenLeds(void) -{ - initLeds(); -#if BSP_MNZB_EVB_SUPPORT == 1 - bspOnPeriphery(SENSOR_LED); -#endif /* BSP_MNZB_EVB_SUPPORT */ - return BC_SUCCESS; -} - -/**************************************************************************//** -\brief Closes leds module. - -\return - operation state -******************************************************************************/ -result_t BSP_CloseLeds(void) -{ -#if BSP_MNZB_EVB_SUPPORT == 1 - bspOffPeriphery(SENSOR_LED); -#endif /* BSP_MNZB_EVB_SUPPORT */ - halUnInitRedLed(); - halUnInitYellowLed(); - halUnInitGreenLed(); - return BC_SUCCESS; -} - -/**************************************************************************//** -\brief Turns on the LED. - -\param[in] - id - number of led -******************************************************************************/ -void BSP_OnLed(uint8_t id) -{ - switch (id) - { - case LED_RED: - halOnRedLed(); - break; - case LED_GREEN: - halOnGreenLed(); - break; - case LED_YELLOW: - halOnYellowLed(); - break; - } -} - -/**************************************************************************//** -\brief Turns off the LED. - -\param[in] - id - number of led -******************************************************************************/ -void BSP_OffLed(uint8_t id) -{ - switch (id) - { - case LED_RED: - halOffRedLed(); - break; - case LED_GREEN: - halOffGreenLed(); - break; - case LED_YELLOW: - halOffYellowLed(); - break; - } -} - -/**************************************************************************//** -\brief Changes the LED state to opposite. - -\param[in] - id - number of led -******************************************************************************/ -void BSP_ToggleLed(uint8_t id) -{ - switch (id) - { - case LED_RED: - halToggleRedLed(); - break; - case LED_GREEN: - halToggleGreenLed(); - break; - case LED_YELLOW: - halToggleYellowLed(); - break; - } -} - -#endif // APP_DISABLE_BSP != 1 - -// eof leds.c -- cgit v1.2.3