00001 /* 00002 Aseba - an event-based framework for distributed robot control 00003 Copyright (C) 2006 - 2009: 00004 Philippe Rétornaz <philippe.retornaz at epfl dot ch> 00005 and other contributors, see authors.txt for details 00006 Mobots group, Laboratory of Robotics Systems, EPFL, Lausanne 00007 00008 This program is free software: you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation, either version 3 of the License, or 00011 any other version as decided by the two original authors 00012 Stephane Magnenat and Valentin Longchamp. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program. If not, see <http://www.gnu.org/licenses/>. 00021 */ 00022 00023 00024 00025 /* Descriptors */ 00026 00027 const AsebaVMDescription vmDescription = { 00028 "myasebaname", // Name of the microcontroller 00029 { 00030 { 1, "_id" }, // Do not touch it 00031 { 1, "event.source" }, // nor this one 00032 { VM_VARIABLES_ARG_SIZE, "event.args" }, // neither this one 00033 00034 00035 /****** 00036 ---> PUT YOUR VARIABLES DESCRIPTIONS HERE <--- 00037 first value is the number of element in the array (1 if not an array) 00038 second value is the name of the variable which will be displayed in aseba studio 00039 ******/ 00040 00041 00042 { 0, NULL } // null terminated 00043 } 00044 }; 00045 00046 00047 static const AsebaLocalEventDescription localEvents[] = { 00048 /******* 00049 ---> PUT YOUR EVENT DESCRIPTIONS HERE <--- 00050 First value is event "name" (will be used as "onvent name" in asebastudio 00051 second value is the event description) 00052 *******/ 00053 { NULL, NULL } 00054 }; 00055 00056 static const AsebaNativeFunctionDescription* nativeFunctionsDescription[] = { 00057 &AsebaNativeDescription__system_reboot, 00058 &AsebaNativeDescription__system_settings_read, 00059 &AsebaNativeDescription__system_settings_write, 00060 &AsebaNativeDescription__system_settings_flash, 00061 00062 ASEBA_NATIVES_STD_DESCRIPTIONS, 00063 0 // null terminated 00064 }; 00065 00066 static AsebaNativeFunctionPointer nativeFunctions[] = { 00067 AsebaResetIntoBootloader, 00068 AsebaNative__system_settings_read, 00069 AsebaNative__system_settings_write, 00070 AsebaNative__system_settings_flash, 00071 00072 ASEBA_NATIVES_STD_FUNCTIONS, 00073 }; 00074 00075 00076