From a54ad9edce697133a024aff096e50f7e4f389d5b Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 18 Mar 2012 12:22:02 +0100 Subject: digital/beacon: import Zigbit stack (bitcloud) & avr sources --- .../Components/BSP/include/hexSwitch.h | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/BSP/include/hexSwitch.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/BSP/include/hexSwitch.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/BSP/include/hexSwitch.h b/digital/beacon/src/Bitcloud_stack/Components/BSP/include/hexSwitch.h new file mode 100644 index 00000000..f052fa83 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/BSP/include/hexSwitch.h @@ -0,0 +1,45 @@ +/**************************************************************************//** + \file hexSwitch.h + + \brief Interface of hex switch. + + \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: + 7/10/08 A. Khromykh - Created +******************************************************************************/ +#ifndef _HEXSWITCH_H +#define _HEXSWITCH_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include + +/****************************************************************************** + Define(s) section +******************************************************************************/ +#define HEX_SWITCH_FIRST 0 +#define HEX_SWITCH_SECOND 1 + +/****************************************************************************** + Prototypes section +******************************************************************************/ +/**************************************************************************//** +\brief Read the hex switch. + +\param[in] + nmSwitch - hex switch number + +\return + hex code. +******************************************************************************/ +uint8_t BSP_ReadHexSwitch(uint8_t nmSwitch); + +#endif /* _HEXSWITCH_H */ -- cgit v1.2.3