Wiselib
|
00001 /*************************************************************************** 00002 ** This file is part of the generic algorithm library Wiselib. ** 00003 ** Copyright (C) 2008,2009 by the Wisebed (www.wisebed.eu) project. ** 00004 ** ** 00005 ** The Wiselib is free software: you can redistribute it and/or modify ** 00006 ** it under the terms of the GNU Lesser General Public License as ** 00007 ** published by the Free Software Foundation, either version 3 of the ** 00008 ** License, or (at your option) any later version. ** 00009 ** ** 00010 ** The Wiselib is distributed in the hope that it will be useful, ** 00011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** 00012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** 00013 ** GNU Lesser General Public License for more details. ** 00014 ** ** 00015 ** You should have received a copy of the GNU Lesser General Public ** 00016 ** License along with the Wiselib. ** 00017 ** If not, see <http://www.gnu.org/licenses/>. ** 00018 ***************************************************************************/ 00019 #ifndef __EXTERNAL_INTERFACE_TINYOS_OS_MODEL_H__ 00020 #define __EXTERNAL_INTERFACE_TINYOS_OS_MODEL_H__ 00021 00022 #include "external_interface/default_return_values.h" 00023 #include "external_interface/tinyos/tinyos_timer.h" 00024 #include "external_interface/tinyos/tinyos_radio.h" 00025 #include "external_interface/tinyos/tinyos_debug.h" 00026 #include "external_interface/tinyos/tinyos_types.h" 00027 #include "external_interface/tinyos/tinyos_position.h" 00028 #include "external_interface/tinyos/tinyos_clock.h" 00029 00030 #ifndef WISELIB_BUILD_ONLY_STABLE 00031 #include "external_interface/tinyos/tinyos_com_uart.h" 00032 #endif 00033 00034 #include "util/serialization/endian.h" 00035 00036 00037 namespace wiselib 00038 { 00039 00046 class TinyOsModel 00047 : public DefaultReturnValues<TinyOsModel> 00048 { 00049 public: 00050 typedef TinyOsModel AppMainParameter; 00051 00052 typedef unsigned int size_t; 00053 typedef uint8_t block_data_t; 00054 00055 typedef TinyOsTimerModel<TinyOsModel> Timer; 00056 typedef TinyOsRadioModel<TinyOsModel> Radio; 00057 typedef TinyOsRadioModel<TinyOsModel> ExtendedRadio; 00058 typedef TinyOsDebug<TinyOsModel> Debug; 00059 typedef TinyOsPositionModel<TinyOsModel, Radio::block_data_t> Position; 00060 typedef TinyOsClockModel<TinyOsModel> Clock; 00061 #ifndef WISELIB_BUILD_ONLY_STABLE 00062 #ifndef TINYOS_TOSSIM 00063 typedef TinyOsComUartModel<TinyOsModel> Uart; 00064 #endif 00065 #endif 00066 00067 static const Endianness endianness = WISELIB_ENDIANNESS; 00068 }; 00069 00070 } 00071 00072 #endif