diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/interrupt_8c-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/interrupt_8c-source.html Fri Jun 08 09:23:56 2007 +0200 @@ -0,0 +1,90 @@ + + +CanFestival: drivers/hcs12/interrupt.c Source File + + + + +
+
+
+
+ +

interrupt.c

Go to the documentation of this file.
00001 /*
+00002 This file is part of CanFestival, a library implementing CanOpen Stack. 
+00003 
+00004 Copyright (C): Edouard TISSERANT and Francis DUPIN
+00005 
+00006 See COPYING file for copyrights details.
+00007 
+00008 This library is free software; you can redistribute it and/or
+00009 modify it under the terms of the GNU Lesser General Public
+00010 License as published by the Free Software Foundation; either
+00011 version 2.1 of the License, or (at your option) any later version.
+00012 
+00013 This library is distributed in the hope that it will be useful,
+00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
+00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+00016 Lesser General Public License for more details.
+00017 
+00018 You should have received a copy of the GNU Lesser General Public
+00019 License along with this library; if not, write to the Free Software
+00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+00021 */
+00022 
+00023 /*
+00024 Functions called by interrupts vectors.
+00025 */
+00026 /*
+00027 This is a part of the driver, of course !
+00028 But you have to put your code in this functions,
+00029 if you plan to use interruptions.
+00030 */
+00031 
+00032 #include "../include/data.h"
+00033 #include "../include/hcs12/applicfg.h"
+00034 #include "../include/hcs12/error.h"
+00035 #include "../include/hcs12/candriver.h"
+00036 #include "../include/hcs12/asm-m68hc12/regs.h"
+00037 #include "../include/hcs12/asm-m68hc12/portsaccess.h"
+00038 #include "../include/hcs12/asm-m68hc12/ports_def.h"
+00039 #include "../include/hcs12/asm-m68hc12/ports.h"
+00040 #include "../include/hcs12/interrupt.h"
+00041 
+00042 extern volatile char msgRecu;
+00043 extern volatile Message canMsgRcv;
+00044 
+00045 
+00046 
+00047 /* Inhibe les interruptions */
+00048 
+00049 void lock (void)
+00050 {
+00051    unsigned short mask;
+00052    __asm__ __volatile__ ("tpa\n\tsei" : "=d"(mask));
+00053 
+00054 }
+00055 
+00056 /* Autorise les interruptions */
+00057 void unlock (void)
+00058 { 
+00059    __asm__ __volatile__ ("cli");
+00060 }
+00061 
+00062 
+00063 
+00064 
+

Generated on Fri Jun 8 08:51:38 2007 for CanFestival by  + +doxygen 1.5.1
+ +