From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../stack/Components/BSP/RCB/include/bspLeds.h | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h (limited to 'digital/zigbit/bitcloud/stack/Components/BSP/RCB/include/bspLeds.h') 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 +#include +// \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 -- cgit v1.2.3