main.c
Go to the documentation of this file.
00001 /*
00002         Aseba - an event-based framework for distributed robot control
00003         Copyright (C) 2007--2010:
00004                 Stephane Magnenat <stephane at magnenat dot net>
00005                 (http://stephane.magnenat.net)
00006                 and other contributors, see authors.txt for details
00007         
00008         This program is free software: you can redistribute it and/or modify
00009         it under the terms of the GNU Lesser General Public License as published
00010         by the Free Software Foundation, version 3 of the License.
00011         
00012         This program is distributed in the hope that it will be useful,
00013         but WITHOUT ANY WARRANTY; without even the implied warranty of
00014         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015         GNU Lesser General Public License for more details.
00016         
00017         You should have received a copy of the GNU Lesser General Public License
00018         along with this program. If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 
00022 #include <p33fxxxx.h>
00023 
00024 _FWDT(FWDTEN_OFF);              // Watchdog Timer disabled
00025 _FOSCSEL(FNOSC_FRCPLL); // override oscillator configuration bits
00026 _FOSC(POSCMD_NONE & OSCIOFNC_ON & FCKSM_CSECMD);
00027 // ICD communicates on PGC1/EMUC1 and disable JTAG
00028 _FICD(ICS_PGD1 & JTAGEN_OFF);
00029 
00030 #include <gpio/gpio.h>
00031 #include <clock/clock.h>
00032 #include <error/error.h>
00033 #include <types/types.h>
00034 #include <vm/natives.h>
00035 #include <vm/vm.h>
00036 #include <common/consts.h>
00037 
00038 #include <skel.h>
00039 
00040 
00041 
00042 void update_aseba_variables_read(void) {
00043 
00044 }
00045 
00046 
00047 void update_aseba_variables_write(void) {
00048         
00049 }
00050 
00051 
00052         
00053 
00054 int main(void) {
00055         clock_init_internal_rc_40();
00056         
00057         init_aseba_and_can();
00058         if( ! load_settings_from_flash()) {
00059                 // Todo
00060     }
00061         
00062         run_aseba_main_loop();
00063 }
00064 


aseba
Author(s): Stéphane Magnenat
autogenerated on Thu Jan 2 2014 11:17:16