summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h b/digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h
new file mode 100644
index 00000000..8bfb459f
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h
@@ -0,0 +1,68 @@
+/***************************************************************************//**
+\file bspLeds.h
+
+\brief Declaration of leds defines.
+
+\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:
+ 26.08.09 A. Taradov - Created
+*******************************************************************************/
+
+#ifndef _BSPLEDS_H
+#define _BSPLEDS_H
+
+/******************************************************************************
+ Includes section
+******************************************************************************/
+// \cond
+#include <gpio.h>
+#include <leds.h>
+// \endcond
+
+/******************************************************************************
+ Define(s) section
+******************************************************************************/
+
+#define halInitFirstLed() GPIO_E2_make_out()
+#define halUnInitFirstLed() GPIO_E2_make_in()
+#define halOnFirstLed() GPIO_E2_clr()
+#define halOffFirstLed() GPIO_E2_set()
+#define halReadFirstLed() GPIO_E2_read()
+#define halToggleFirstLed() GPIO_E2_toggle()
+
+#define halInitSecondLed() GPIO_E3_make_out()
+#define halUnInitSecondLed() GPIO_E3_make_in()
+#define halOnSecondLed() GPIO_E3_clr()
+#define halOffSecondLed() GPIO_E3_set()
+#define halReadSecondLed() GPIO_E3_read()
+#define halToggleSecondLed() GPIO_E3_toggle()
+
+#if (APP_USART_CHANNEL == USART_CHANNEL_USBFIFO) && defined(ATMEGA128RFA1)
+
+#define halInitThirdLed()
+#define halUnInitThirdLed()
+#define halOnThirdLed()
+#define halOffThirdLed()
+#define halReadThirdLed()
+#define halToggleThirdLed()
+
+#else
+
+#define halInitThirdLed() GPIO_E4_make_out()
+#define halUnInitThirdLed() GPIO_E4_make_in()
+#define halOnThirdLed() GPIO_E4_clr()
+#define halOffThirdLed() GPIO_E4_set()
+#define halReadThirdLed() GPIO_E4_read()
+#define halToggleThirdLed() GPIO_E4_toggle()
+
+#endif // APP_USART_CHANNEL == USART_CHANNEL_USBFIFO
+
+#endif /*_BSPLEDS_H*/
+// eof bspLeds.h