diff -r 0d84d95790d9 -r 16c8ceea8f18 drivers/ecos_lpc2138_sja1000/sja1000.c --- a/drivers/ecos_lpc2138_sja1000/sja1000.c Tue Feb 13 17:21:19 2007 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,178 +0,0 @@ -/* -This file is part of CanFestival, a library implementing CanOpen Stack. - - Author: Christian Fortin (canfestival@canopencanada.ca) - -See COPYING file for copyrights details. - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - -#include -#include - -#include "lpc2138_pinout.h" -#include "lpc2138_defs.h" -#include "lpc2138.h" - -#include "sja1000.h" - - -#define CYGNUM_HAL_INTERRUPT_1 CYGNUM_HAL_INTERRUPT_EINT1 -#define CYGNUM_HAL_PRI_HIGH 0 - - -cyg_uint32 interrupt_1_isr(cyg_vector_t vector, cyg_addrword_t data); -void interrupt_1_dsr(cyg_vector_t vector, - cyg_ucount32 count, - cyg_addrword_t data); - - -/* Interrupt for CAN device. */ -static cyg_interrupt interrupt_1; -static cyg_handle_t interrupt_1_handle; - - -void init_sja1000(void) -{ - do - { - sja1000_write(MOD, 1<