src/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 
00025  /* PRE-PROCESSOR DIRECTIVES =============================== */
00026 
00027  /* Only for debugging purposes - for msg sending */
00028  #define    TIME_PERIOD     16
00029 
00030  
00031 
00032 
00033  /* Interrupt routine declarations ========================= */
00034 
00035  #if ( CONFIG_TESTING_HAL )
00036     ISR ( TIMER0_OVF_VECT );    // only for testing purposes
00037  #endif
00038  ISR ( CONFIG_MCP_INT );
00039  ISR ( CONFIG_INT_SENDING );
00040  ISR ( CONFIG_INT_RECEIVING );
00041  ISR ( WDT_VECT );
00042  ISR ( BADISR_vect );
00043  
00044 
00045 
00046  /* Function declarations ================================== */
00047 
00048  void clearMCP2515InterruptFlag ( uint8_t reg, uint8_t flag );
00049  // void receiveCanMsg ( struct can_msg* msgRec, uint8_t regRec );      // only for HAL testing
00050  void receiveCanMsg ( uint8_t regRec );
00051  void sendCanMsg ( struct can_msg* msgToSend, uint8_t regToSend );
00052  void hal_msg_poll ( void );
00053  
00054  #endif
 All Classes Files Functions Enumerations Enumerator Defines