Wiselib
wiselib.testing/external_interface/shawn/shawn_os.h
Go to the documentation of this file.
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 __CONNECTOR_SHAWN_OS_MODEL_H__
00020 #define __CONNECTOR_SHAWN_OS_MODEL_H__
00021 
00022 #include "external_interface/default_return_values.h"
00023 #include "external_interface/shawn/shawn_types.h"
00024 #include "external_interface/shawn/shawn_radio.h"
00025 #include "external_interface/shawn/shawn_tx_radio.h"
00026 #include "external_interface/shawn/shawn_timer.h"
00027 #include "external_interface/shawn/shawn_debug.h"
00028 #include "external_interface/shawn/shawn_position.h"
00029 #include "external_interface/shawn/shawn_rand.h"
00030 #include "external_interface/shawn/shawn_clock.h"
00031 #include "external_interface/shawn/shawn_distance.h"
00032 #include "external_interface/shawn/shawn_dummy_com_uart.h"
00033 #include "external_interface/shawn/shawn_stringtag_uart.h"
00034 #include "util/serialization/endian.h"
00035 #include "shawn_remote_uart_debug.h"
00036 
00037 namespace wiselib
00038 {
00039    extern ShawnOs shawn_os;
00040    // -----------------------------------------------------------------------
00041    class ShawnOsModel
00042       : public DefaultReturnValues<ShawnOsModel>
00043    {
00044    public:
00045       typedef ShawnOs AppMainParameter;
00046 
00047       typedef unsigned int size_t;
00048       typedef uint8_t block_data_t;
00049 
00050       typedef ShawnTimerModel<ShawnOsModel> Timer;
00051       typedef ShawnTxRadioModel<ShawnOsModel> Radio;
00052       typedef ShawnTxRadioModel<ShawnOsModel> TxRadio;
00053       typedef ShawnTxRadioModel<ShawnOsModel> ExtendedRadio;
00054       typedef ShawnDebug<ShawnOsModel> Debug;
00055       typedef ShawnPositionModel<ShawnOsModel, block_data_t> Position;
00056       typedef ShawnRandModel<ShawnOsModel> Rand;
00057 //       typedef ShawnDummyComUartModel<ShawnOsModel,ShawnRemoteUartDebug<ShawnOsModel> > Uart;
00058       typedef ShawnStringTagUartModel<ShawnOsModel> Uart;
00059       typedef ShawnClockModel<ShawnOsModel> Clock;
00060       typedef ShawnDistanceModel<ShawnOsModel> Distance;
00061 
00062       static const Endianness endianness = WISELIB_ENDIANNESS;
00063    };
00064 }
00065 
00066 
00067 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines