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 --- .../drivers/USBFIFO/include/usbFifoVirtualUsart.h | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/HAL/drivers/USBFIFO/include/usbFifoVirtualUsart.h (limited to 'digital/zigbit/bitcloud/stack/Components/HAL/drivers/USBFIFO/include/usbFifoVirtualUsart.h') diff --git a/digital/zigbit/bitcloud/stack/Components/HAL/drivers/USBFIFO/include/usbFifoVirtualUsart.h b/digital/zigbit/bitcloud/stack/Components/HAL/drivers/USBFIFO/include/usbFifoVirtualUsart.h new file mode 100644 index 00000000..7b000818 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/HAL/drivers/USBFIFO/include/usbFifoVirtualUsart.h @@ -0,0 +1,69 @@ +/**************************************************************************//** +\file usbFifoVirtualUsart.h + +\brief The declaration of interfunction interface. + +\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: + 15.07.11 A. Khromykh - Created +*******************************************************************************/ +#ifndef _USBFIFOVIRTUALUSART_H +#define _USBFIFOVIRTUALUSART_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include + +/****************************************************************************** + Prototypes section +******************************************************************************/ +#if defined(ATMEGA128RFA1) + +// the macros for the manipulation by PC6 for binary decoder +HAL_ASSIGN_PIN(PC6, D, 6); +// the macros for the manipulation by PC7 for binary decoder +HAL_ASSIGN_PIN(PC7, D, 7); +// the macros for the manipulation by RD +HAL_ASSIGN_PIN(RD, E, 5); +// the macros for the manipulation by WR +HAL_ASSIGN_PIN(WR, E, 4); + +#elif defined(ATMEGA1281) || defined(ATMEGA2561) + +// the macros for the manipulation by PC6 for binary decoder +HAL_ASSIGN_PIN(PC6, C, 6); +// the macros for the manipulation by PC7 for binary decoder +HAL_ASSIGN_PIN(PC7, C, 7); +// the macros for the manipulation by RD +HAL_ASSIGN_PIN(RD, G, 1); +// the macros for the manipulation by WR +HAL_ASSIGN_PIN(WR, G, 0); + +#else + #error 'USB FIFO is not supported for this mcu.' +#endif + +/**************************************************************************//** +\brief Startup initialization. +******************************************************************************/ +void usbfifoInit(void); + +/**************************************************************************//** +\brief Clear startup initialization parameters +******************************************************************************/ +void usbfifoUnInit(void); + +/**************************************************************************//** +\brief USB FIFO driver task handler. +******************************************************************************/ +void usbfifoHandler(void); + +#endif /* _USBFIFOVIRTUALUSART_H */ -- cgit v1.2.3