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 00026 #include <p33fxxxx.h> 00027 00028 _FWDT(FWDTEN_OFF); // Watchdog Timer disabled 00029 _FOSCSEL(FNOSC_FRCPLL); // override oscillator configuration bits 00030 _FOSC(POSCMD_NONE & OSCIOFNC_ON & FCKSM_CSECMD); 00031 // ICD communicates on PGC1/EMUC1 and disable JTAG 00032 _FICD(ICS_PGD1 & JTAGEN_OFF); 00033 00034 #include <gpio/gpio.h> 00035 #include <clock/clock.h> 00036 #include <error/error.h> 00037 #include <types/types.h> 00038 #include <vm/natives.h> 00039 #include <vm/vm.h> 00040 #include <common/consts.h> 00041 00042 #include <skel.h> 00043 00044 00045 00046 void update_aseba_variables_read(void) { 00047 00048 } 00049 00050 00051 void update_aseba_variables_write(void) { 00052 00053 } 00054 00055 00056 00057 00058 int main(void) { 00059 clock_init_internal_rc_40(); 00060 00061 init_aseba_and_can(); 00062 if( ! load_settings_from_flash()) { 00063 // Todo 00064 } 00065 00066 run_aseba_main_loop(); 00067 } 00068