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 --- .../HAL/avr/atmega1281/common/include/halFCPU.h | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halFCPU.h (limited to 'digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halFCPU.h') diff --git a/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halFCPU.h b/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halFCPU.h new file mode 100644 index 00000000..fe961e60 --- /dev/null +++ b/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halFCPU.h @@ -0,0 +1,36 @@ +/**************************************************************************//** + \file halFCPU.h + + \brief Declaration F_CPU for C code. + + \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: + 6/10/08 A. Khromykh - Created + ******************************************************************************/ +/****************************************************************************** + * WARNING: CHANGING THIS FILE MAY AFFECT CORE FUNCTIONALITY OF THE STACK. * + * EXPERT USERS SHOULD PROCEED WITH CAUTION. * + ******************************************************************************/ + +/****************************************************************************** + Define(s) section +******************************************************************************/ +/* Main clock of CPU in Hz. */ +#if defined(HAL_3d6864MHz) + #define F_CPU 3686400 +#elif defined(HAL_4MHz) + #define F_CPU 4000000 +#elif defined(HAL_7d3728MHz) + #define F_CPU 7372800 +#elif defined(HAL_8MHz) + #define F_CPU 8000000 +#endif + +// eof halFCPU.h -- cgit v1.2.3