irqHandlers.h
Go to the documentation of this file.
00001 /***********************************************************************/
00012  #ifndef IRQ_HANDLERS_H_
00013  #define IRQ_HANDLERS_H_
00014  
00015  /* Includes */
00016  #include <stdlib.h>
00017  #include <util/delay.h>
00018  
00019  #include "uCmaskFile.h"
00020  #include "functions.h"
00021  #include "MCP2515control.h"
00022  #include "hll.h"
00023 
00024  /* Only for debugging purposes - for msg sending */
00025  #define        TIME_10MS               16
00026  #define        TIME_1000MS             100*TIME_10MS
00027  
00028  
00029  /* Interrupt routines declarations */
00030  #if ( CONFIG_TESTING_HAL )
00031         ISR ( TIMER0_OVF_VECT );        // only for testing purposes
00032  #endif
00033  ISR ( INT0_VECTOR );
00034  ISR ( INT_SENDING );
00035  ISR ( INT_RECEIVING );
00036  ISR ( WDT_VECT );
00037  ISR ( BADISR_vect );
00038  
00039  /* Function declarations */
00040  void clearMCP2515InterruptFlag ( uint8_t reg, uint8_t flag );
00041  void receiveCanMsg ( struct can_msg* msgRec, uint8_t regRec );
00042  //void receiveCanMsg ( uint8_t regRec );
00043  void sendCanMsg ( struct can_msg* msgToSend, uint8_t regToSend );
00044  //void sendCanMsg ( uint8_t regToSend );
00045  void hal_msg_poll ( void );
00046  
00047  #endif
 All Classes Files Functions Enumerations Enumerator Defines